문서의 선택한 두 판 사이의 차이를 보여줍니다.
양쪽 이전 판 이전 판 다음 판 | 이전 판 다음 판 양쪽 다음 판 | ||
gant [2012/10/18 16:58] kwon37xi |
gant [2012/10/22 11:27] kwon37xi [Ant Properties] |
||
---|---|---|---|
줄 3: | 줄 3: | ||
* [[http:// | * [[http:// | ||
* [[http:// | * [[http:// | ||
- | * TODO : [[gant: | + | |
+ | | ||
===== 기본 ===== | ===== 기본 ===== | ||
* Gant는 [[http:// | * Gant는 [[http:// | ||
줄 12: | 줄 14: | ||
* '' | * '' | ||
* '' | * '' | ||
- | * '' | + | * '' |
===== 설치 ===== | ===== 설치 ===== | ||
줄 22: | 줄 24: | ||
set STARTER_CLASSPATH=%GROOVY_HOME%\embeddable\groovy-all-2.0.0.jar; | set STARTER_CLASSPATH=%GROOVY_HOME%\embeddable\groovy-all-2.0.0.jar; | ||
</ | </ | ||
+ | * [[http:// | ||
===== Ant Properties ===== | ===== Ant Properties ===== | ||
+ | * [[http:// | ||
+ | * '' | ||
+ | * Ant 태스크들은 들어온 문자열에 '' | ||
<code groovy> | <code groovy> | ||
// 프라퍼티 파일에서 읽어오기 | // 프라퍼티 파일에서 읽어오기 | ||
- | Ant.property(file: | + | ant.property(file: |
// 값넣기 | // 값넣기 | ||
- | Ant.property(name: | + | ant.property(name: |
// 값 읽기 | // 값 읽기 | ||
- | logkitVersion = Ant.project.properties.' | + | logkitVersion = ant.project.properties.' |
+ | |||
+ | // ant task에 프라퍼티 전달 | ||
+ | ant.echo(message: | ||
+ | </ | ||
+ | |||
+ | ===== 환경 변수 ===== | ||
+ | 환경 변수를 읽어오고 그것을, Ant 태스크에 넘길 때는 GString을 사용하지 말 것. | ||
+ | <code groovy> | ||
+ | // 환경 변수의 값들을 ' | ||
+ | ant.property(environment:' | ||
+ | ... | ||
+ | ant.echo(" | ||
+ | -> ant.echo(' | ||
+ | </ | ||
+ | |||
+ | ===== Path 지정해서 넘기기 ===== | ||
+ | Classpath 등을 지정해서 레퍼런스를 넘기는 방법 | ||
+ | <code groovy> | ||
+ | ant.path(id : ' | ||
+ | | ||
+ | } | ||
+ | |||
+ | // 어느 타겟에선가... | ||
+ | ant.javac(srcdir : ' | ||
</ | </ | ||
줄 43: | 줄 72: | ||
- [[gant: | - [[gant: | ||
- [[gant: | - [[gant: | ||
+ | - [[gant: |