[CUBBY-170] Archetypeで作成した雛形にMavenからWarのビルド時にenv.txtを置き換えるMaven2設定を追加 Created: 2008-08-24 Updated: 2008-08-27 Resolved: 2008-08-26 |
|
Status: | Closed |
Project: | Cubby |
Component/s: | Archetype |
Affects Version/s: | None |
Fix Version/s: | 1.1.0 |
Type: | Task | Priority: | Major |
Reporter: | agata | Assignee: | Unassigned |
Resolution: | Fixed | Votes: | 0 |
Labels: | None |
Description |
HotDeployのまま本番リリースするミスを防止したいので。 |
Comments |
Comment by agata [ 2008-08-27 ] |
プロファイルで対応することにしました。 詳細は以下 http://cubby.seasar.org/setup.html#Maven2_によるプロジェクトの雛形作成 |
Comment by agata [ 2008-08-26 ] |
antはやめて、profileで切り替える方式にしました。 <profiles> <profile> <id>release</id> <build> <resources> <resource> <directory>src/release/resources</directory> </resource> <resource> <directory>src/main/resources</directory> </resource> </resources> </build> </profile> </profiles> |
Comment by agata [ 2008-08-26 ] |
以下の処理を追加。 <plugin> <artifactId>maven-antrun-plugin</artifactId> <executions> <execution> <phase>process-resources</phase> <configuration> <tasks> <delete file="${project.build.outputDirectory}/env.txt"/> </tasks> </configuration> <goals> <goal>run</goal> </goals> </execution> </executions> </plugin> |