문서의 선택한 두 판 사이의 차이를 보여줍니다.
양쪽 이전 판 이전 판 다음 판 | 이전 판 | ||
gant [2012/10/17 19:20] kwon37xi |
gant [2012/10/30 13:42] (현재) kwon37xi [Gant] |
||
---|---|---|---|
줄 1: | 줄 1: | ||
====== Gant ====== | ====== Gant ====== | ||
* http:// | * http:// | ||
- | * [[http:// | + | * [[http:// |
* [[http:// | * [[http:// | ||
+ | * [[http:// | ||
===== 기본 ===== | ===== 기본 ===== | ||
* Gant는 [[http:// | * Gant는 [[http:// | ||
+ | * [[http:// | ||
* Gant는 Ant 스크립팅 프레임워크이지 프로젝트 관리/ | * Gant는 Ant 스크립팅 프레임워크이지 프로젝트 관리/ | ||
* '' | * '' | ||
줄 11: | 줄 13: | ||
* '' | * '' | ||
* '' | * '' | ||
- | * '' | + | * '' |
===== 설치 ===== | ===== 설치 ===== | ||
줄 18: | 줄 20: | ||
* '' | * '' | ||
* '' | * '' | ||
- | * MS-윈도우에서는 | + | * MS-Window의 경우 '' |
set STARTER_CLASSPATH=%GROOVY_HOME%\embeddable\groovy-all-2.0.0.jar; | set STARTER_CLASSPATH=%GROOVY_HOME%\embeddable\groovy-all-2.0.0.jar; | ||
+ | </ | ||
+ | * Linux의 경우 gant 파일들에 "'' | ||
+ | * [[http:// | ||
+ | |||
+ | ===== 기본 Ant 태스크와 기타 태스크 ===== | ||
+ | Groovy는 기본적으로 Ant와 JUnit을 내장하고 있다. 따라서 Gant는 어떠한 추가 없이 Ant와 JUnit 태스크를 실행할 수 있다. 기타 직접 태스크 라이브러리를 추가하고자 할 때는 다음과 같이 클래스패스를 지정한다. | ||
+ | |||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | |||
+ | ===== Ant Properties ===== | ||
+ | * [[http:// | ||
+ | * '' | ||
+ | * Ant 태스크들은 들어온 문자열에 '' | ||
+ | <code groovy> | ||
+ | // 프라퍼티 파일에서 읽어오기 | ||
+ | ant.property(file: | ||
+ | |||
+ | // 값넣기 | ||
+ | ant.property(name: | ||
+ | |||
+ | // 값 읽기 | ||
+ | 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 : ' | ||
</ | </ | ||
줄 28: | 줄 83: | ||
- [[gatn: | - [[gatn: | ||
- [[gant: | - [[gant: | ||
+ | - [[gant: | ||
+ | - [[gant: | ||
+ | - [[gant: | ||
+ | - [[gant: |