123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- <project
- xmlns:j="jelly:core"
- xmlns:ant="jelly:ant"
- xmlns:artifact="artifact"
- xmlns:maven="jelly:maven">
- <preGoal name="java:compile">
- <path id="additional.src.path">
- <pathelement location="../contacts/src/main/java"/>
- </path>
- <maven:addPath id="maven.compile.src.set" refid="additional.src.path"/>
- </preGoal>
-
- <goal name="war">
- <echo>The "war" goal is deprecated. Use "multiwar:multiwar" instead.</echo>
- </goal>
-
- <goal name="multiwar:multiwar">
- <!-- needed otherwise first custom artifact (cas) doesn't get built) -->
- <attainGoal name="acegisecurity:war"/>
- <!-- filter war -->
- <j:set var="webapp" value="filter"/>
- <attainGoal name="acegisecurity:war"/>
-
- <!-- delete generic artifact (we only want our three custom WARs) -->
- <ant:delete file="${maven.war.build.dir}/${pom.artifactId}.war"/>
- </goal>
-
- <goal name="acegisecurity:war">
- <maven:set plugin="maven-war-plugin"
- property="maven.war.webapp.dir"
- value="${maven.war.build.dir}/${pom.artifactId}-${webapp}"/>
- <maven:set plugin="maven-war-plugin"
- property="maven.war.final.name"
- value="${pom.artifactId}-${webapp}.war"/>
- <attainGoal name="war:war"/>
- </goal>
- <goal name="multiwar:install">
- <attainGoal name="multiwar:multiwar"/>
- <echo>multiproject:install doesn't install Contacts Samples WARs to local repo</echo>
- </goal>
- <postGoal name="war:war-resources">
- <maven:get plugin="maven-war-plugin"
- property="maven.war.webapp.dir"
- var="maven.war.webapp.dir"/>
- <ant:copy todir="${maven.war.webapp.dir}" preservelastmodified="true">
- <ant:fileset dir="${maven.war.src}/../${webapp}"/>
- </ant:copy>
- </postGoal>
- </project>
|