Author: tchemit Date: 2008-03-15 20:53:27 +0000 (Sat, 15 Mar 2008) New Revision: 1351 Modified: branches/20080315_before_commandline_split/simexplorer-is/simexplorer-is-swing-jaxx/pom.xml Log: add a clean ant run task to delete generated java sources + format Modified: branches/20080315_before_commandline_split/simexplorer-is/simexplorer-is-swing-jaxx/pom.xml =================================================================== --- branches/20080315_before_commandline_split/simexplorer-is/simexplorer-is-swing-jaxx/pom.xml 2008-03-15 03:01:04 UTC (rev 1350) +++ branches/20080315_before_commandline_split/simexplorer-is/simexplorer-is-swing-jaxx/pom.xml 2008-03-15 20:53:27 UTC (rev 1351) @@ -1,8 +1,8 @@ <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> - + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> + <modelVersion>4.0.0</modelVersion> <artifactId>simexplorer-is-swing-jaxx</artifactId> @@ -18,37 +18,58 @@ <version>0.1-SNAPSHOT</version> </parent> - <profiles> - <profile> - <id>project</id> - <activation> - <activeByDefault>true</activeByDefault> - </activation> - <properties> - <maven.verbose>false</maven.verbose> - </properties> - </profile> - </profiles> - + <profiles> + <profile> + <id>project</id> + <activation> + <activeByDefault>true</activeByDefault> + </activation> + <properties> + <maven.verbose>false</maven.verbose> + <maven.java.src.dir>${maven.src.dir}/java</maven.java.src.dir> + </properties> + </profile> + </profiles> + <build> <plugins> + <plugin> + <!--- Clean phase : we must clean also src/java files --> + <artifactId>maven-antrun-plugin</artifactId> + <executions> + <execution> + <phase>clean</phase> + <configuration> + <tasks> + <delete includeemptydirs="true"> + <fileset dir="${maven.java.src.dir}" includes="**/*"/> + </delete> + </tasks> + </configuration> + <goals> + <goal>run</goal> + </goals> + </execution> + </executions> + </plugin> + <!-- Generate phase : this is a fully generated module - At checkout, there is no source java files, and the - ${maven.src.dir}/java directory is svn ignored. + At checkout, there is no source java files, and the + ${maven.src.dir}/java directory is svn ignored. - The jaxx generator will generate java source files in this - directory, after this, maven compiles as normal and use an unique - source directory, with no trick for generation. + The jaxx generator will generate java source files in this + directory, after this, maven compiles as normal and use an unique + source directory, with no trick for generation. - We use now a fully compiliance maven process:) - --> + We use now a fully compiliance maven process:) + --> <plugin> <groupId>lutinplugin</groupId> <artifactId>maven-jaxx-plugin</artifactId> <version>0.2-SNAPSHOT</version> - <configuration> - <out>${maven.src.dir}/java</out> - </configuration> + <configuration> + <out>${maven.java.src.dir}</out> + </configuration> <executions> <execution> <goals> @@ -73,19 +94,17 @@ <bundles> <param>fr_FR</param> <param>en_GB</param> - </bundles> + </bundles> </configuration> - <executions> + <executions> <execution> - <phase>compile</phase> - <!--id>java</id--> <goals> - <goal>parserJaxx</goal> + <goal>parserJaxx</goal> <goal>gen</goal> - </goals> + </goals> </execution> </executions> - </plugin> + </plugin> </plugins> </build> @@ -103,6 +122,6 @@ <artifactId>jaxx</artifactId> <version>1.0.4-SNAPSHOT</version> <scope>compile</scope> - </dependency> + </dependency> </dependencies> </project>