티스토리 뷰
## Ant manual
http://ant.apache.org/manual/index.html
## ant 설치
## path설정
ANT_HOME=D:\dev\build\apache-ant-1.9.7
PATH=%ANT_HOME%\bin;
## ant-contrib 설치 (파일 읽기)
http://ant-contrib.sourceforge.net/
- build.properties -
sourcePath = /dev/worksspace/Solution
bashPath = C:\\Program Files\\Git\\bin\\bash
- javaToClass.sh -
cat filelist | sed 's/\\/\//g' | sed 's/src\//bin\//g' | sed 's/\.java/\*\.class/g' > filelist2
- build.xml -
<project name="Class Extraction" default="export:class" basedir="D:\dev\build">
<description>Test</description>
<property file="${basedir}/build.properties"/>
<echo message="${sourcePath}"/>
<taskdef resource="net/sf/antcontrib/antcontrib.properties">
<classpath>
<pathelement location="ant-contrib-0.6-bin/lib/ant-contrib-0.6.jar"/>
</classpath>
</taskdef>
<target name="runShell">
<exec executable="${bashPath}">
<arg value="javaToClass.sh"/>
</exec>
</target>
<target name="clear">
<delete dir="result"/>
<mkdir dir="result"/>
</target>
<target name="loadfile:class">
<loadfile property="filelist" srcfile="filelist2"/>
</target>
<target name="loadfile:java">
<loadfile property="filelist" srcfile="filelist"/>
</target>
<target name="filecopy">
<for param="line" list="${filelist}" delimiter="${line.separator}">
<sequential>
<copy todir="result">
<fileset dir="${sourcePath}">
<include name="@{line}"/>
</fileset>
</copy>
</sequential>
</for>
<resourcecount property="count">
<fileset dir="result"/>
</resourcecount>
<echo message="------------------------------------------ "/>
<echo message="---------------- ${count} files ----------------"/>
</target>
<target name="export:class" depends="runShell,loadfile:class,clear,filecopy"/>
<target name="export:java" depends="loadfile:java,clear,filecopy"/>
</project>
'Programming > Etc..' 카테고리의 다른 글
[생활코딩] 정규표현식 (1311) | 2017.02.22 |
---|---|
[Axis2] Eclipse 에서 WebService 만들기 (958) | 2017.02.21 |
[apache,mysql,php] 웹 애플리케이션 만들기 (생활코딩) (583) | 2017.01.23 |
[SublimeText] C++ build 설정 (568) | 2017.01.02 |
[GIT] commit 가이드 및 사이트 (10616) | 2016.09.18 |
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- 혁오
- 로꼬
- 뒤꿈치 건조함
- Bitnami
- 10cm
- ES6
- AWS npm
- Axis2
- s9+
- 생활코딩
- 자금조달계획서
- 프리티어
- 웰빙헬스
- 서머너즈워
- 크러쉬
- 노브랜드
- 알고리즘
- 중국어강의
- 수미네 반찬
- GraphQL
- 중국어공부
- Git
- 부동신 계약시 주의사항
- 프렌즈
- AWS nodejs
- 존맛탱
- 부동산거래계약신고필증
- 중국어정리
- 마시내 탕수육
- 고운발크림
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
글 보관함