Apache buildr을 사용하기 시작합니다. 내가 이해하는 한, 나는 항상 내 자신의 기본 폴더 구조 (src/main/java 등)를 만들어야 만한다. buildr에게이 일을 맡길 방법이 있습니까?buildr가 폴더 구조를 생성합니다.
감사합니다,
Apache buildr을 사용하기 시작합니다. 내가 이해하는 한, 나는 항상 내 자신의 기본 폴더 구조 (src/main/java 등)를 만들어야 만한다. buildr에게이 일을 맡길 방법이 있습니까?buildr가 폴더 구조를 생성합니다.
감사합니다,
buildr 단지 빌드 도구, 원형을 생성하는 것은 아닙니다거나 웹 사이트를 구축하십시오.
하지만 당신이 맞을 때가 있습니다. 새 프로젝트를 생성해야하기 때문에 작은 쉘 스크립트 (you can find the gist here)를 작성했습니다. 여기
그것이 작동하는 방법이다 :
$ ./createBuildrProject.sh jptest
Please answer '1' to the next question
To use Buildr you need a buildfile. Do you want me to create one?:
1. From directory structure
2. Cancel
? 1
Created /home/jp/src/perso/774597/jptest/buildfile
(in /home/jp/src/perso/774597/jptest, development)
Building jptest
Compiling jptest into /home/jp/src/perso/774597/jptest/target/classes
Compiling jptest:test into /home/jp/src/perso/774597/jptest/target/test/classes
Completed in 2.130s
./createBuildrProject.sh: ligne 17 : cd: jptest: Aucun fichier ou dossier de ce type
(in /home/jp/src/perso/774597/jptest, development)
Generating Eclipse project for jptest
Writing /home/jp/src/perso/774597/jptest/.classpath
Writing /home/jp/src/perso/774597/jptest/.project
Completed in 0.025s
출력 디렉토리는 다음과 같습니다
$ tree jptest/
jptest/
├── buildfile
├── reports
│ └── junit
│ └── last_successful_run
├── src
│ ├── main
│ │ └── java
│ │ └── Empty.java
│ └── test
│ └── java
│ └── EmptyTest.java
└── target
├── classes
│ └── Empty.class
├── jptest-1.0.0.pom
└── test
└── classes
└── EmptyTest.class
11 directories, 7 files
희망이 도움이됩니다.