私は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
は、この情報がお役に立てば幸いです。