[결과]
BuildDeploy/scripts$ ant -buildfile build_test.xml Buildfile:
/BuildDeploy/scripts/build_test.xml hello: [echo] Hello, World BUILD SUCCESSFUL
Total time: 0 seconds
소스
<project default="hello">
<target name="hello">
<echo message="Hello, World"/>
</target>
</project>
정말 쉽다!
자 여기서 이제는 for를 돌려보자!! for loop~!!!!
1] for 사용
- 결과
BUILD FAILED
/BuildDeploy/scripts/build_test.xml:44: Problem: failed to create task or type for
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.
Total time: 0 seconds
2] antc 사용
소스
- 결과
/BuildDeploy/scripts$ ant -buildfile build_test.xml
Buildfile: /BuildDeploy/scripts/build_test.xml
BUILD FAILED
/BuildDeploy/scripts/build_test.xml:45: The prefix "antc" for element "antc:for" is not bound.
Total time: 0 seconds
모두 실패..!!!!!
어떻게 하면 ant build.xml에 루프를 돌릴수 있을까??!!!
ant의 플로그인이라고 할까나..
http://sourceforge.net/projects/ant-contrib/files/ant-contrib/
참고할만한 사이트 :
1) http://ant-contrib.sourceforge.net/tasks/tasks/index.html
2) http://ant-contrib.sourceforge.net/tasks/tasks/for.html
3) http://oak.cs.ucla.edu/cs144/projects/ant/tutorial.html
'CM > Ant' 카테고리의 다른 글
[문법] 개미 잡자~!! (0) | 2012.10.05 |
---|---|
ANT 셋팅 (0) | 2012.02.15 |
tar.gz 압축 풀기 (4) | 2012.02.15 |