Author: tchemit Date: 2008-03-15 20:59:39 +0000 (Sat, 15 Mar 2008) New Revision: 1352 Modified: branches/20080315_before_commandline_split/simexplorer-is/simexplorer-is-swing-commandline/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-commandline/pom.xml =================================================================== --- branches/20080315_before_commandline_split/simexplorer-is/simexplorer-is-swing-commandline/pom.xml 2008-03-15 20:53:27 UTC (rev 1351) +++ branches/20080315_before_commandline_split/simexplorer-is/simexplorer-is-swing-commandline/pom.xml 2008-03-15 20:59:39 UTC (rev 1352) @@ -1,15 +1,15 @@ <?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-commandline</artifactId> - <name>Swing</name> + <name>Swing-commandline</name> <version>0.1-SNAPSHOT</version> - <description>Java Swing commandline SimExplorer-is application</description> + <description>Java Swing commandline module</description> <packaging>jar</packaging> <parent> @@ -18,20 +18,38 @@ <version>0.1-SNAPSHOT</version> </parent> - <profiles> - <profile> - <id>project</id> + <profiles> + <profile> + <id>project</id> <activation> - <activeByDefault>true</activeByDefault> - </activation> + <activeByDefault>true</activeByDefault> + </activation> <properties> - <maven.verbose>false</maven.verbose> - </properties> - </profile> - </profiles> - + <maven.verbose>true</maven.verbose> + </properties> + </profile> + </profiles> + <build> <plugins> + <plugin> + <artifactId>maven-antrun-plugin</artifactId> + <executions> + <execution> + <phase>clean</phase> + <configuration> + <tasks> + <delete includeemptydirs="true"> + <fileset dir="${maven.src.dir}/java" 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. @@ -42,6 +60,7 @@ We use now a fully compiliance maven process:) --> + <!--value>fr.cemagref.simexplorer.is.ui.swing.commandline.actions.SimExplorerCommonActions</value--> <plugin> <groupId>lutinplugin</groupId> <artifactId>maven-commandline-plugin</artifactId> @@ -54,10 +73,11 @@ <parserPackageName>fr.cemagref.simexplorer.is.ui.swing.commandline</parserPackageName> <abstractConfigOptionKey>CONFIG_OPTION_KEY</abstractConfigOptionKey> <abstractConfigFileOptionKey>CONFIG_FILE_OPTION_KEY</abstractConfigFileOptionKey> - <abstractConfigFilenameConfigKey>fr.cemagref.simexplorer.is.ui.swing.commandline.configs.SimExplorerConfigMain.CONFIG_FILE_NAME_PROPERTY_KEY</abstractConfigFilenameConfigKey> + <abstractConfigFilenameConfigKey> + fr.cemagref.simexplorer.is.ui.swing.commandline.configs.SimExplorerConfigMain.CONFIG_FILE_NAME_PROPERTY_KEY + </abstractConfigFilenameConfigKey> <concreteConfig>true</concreteConfig> <actionImplementations> - <!--value>fr.cemagref.simexplorer.is.ui.swing.commandline.actions.SimExplorerCommonActions</value--> </actionImplementations> <configImplementations> <value>fr.cemagref.simexplorer.is.ui.swing.commandline.configs.SimExplorerConfigMain</value> @@ -70,9 +90,8 @@ <goals> <goal>genJava</goal> </goals> - </execution> + </execution> </executions> - </plugin> <!-- Compile phase --> <plugin> @@ -84,64 +103,16 @@ <param>fr_FR</param> <param>en_GB</param> </bundles> - <configuration> - <entries> - <entry> - <!--specificGoal>parserJava</specificGoal--> - <basedir>${maven.src.dir}/java/fr/cemagref/simexplorer/is/ui/swing/commandline</basedir> - <!--includes> - <param>**\/*Option*.java</param> - <param>**\/*Config*.java</param> - </includes--> - </entry> - </entries> - </configuration> </configuration> <executions> <execution> - <phase>compile</phase> - <!--id>java</id--> <goals> <goal>parserJava</goal> <goal>gen</goal> </goals> - </execution> </executions> </plugin> - <!-- Package phase --> - <!--plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-dependency-plugin</artifactId> - <configuration> - <outputDirectory>${project.build.directory}/dependency</outputDirectory> - <overWriteReleases>false</overWriteReleases> - <overWriteSnapshots>false</overWriteSnapshots> - <overWriteIfNewer>true</overWriteIfNewer> - </configuration> - <executions> - <execution> - <phase>package</phase> - <goals> - <goal>copy-dependencies</goal> - </goals> - </execution> - </executions> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-jar-plugin</artifactId> - <configuration> - <archive> - <manifest> - <mainClass>${maven.jar.main.class}</mainClass> - <addClasspath>true</addClasspath> - <addExtensions /> - <classpathPrefix>./dependency/</classpathPrefix> - </manifest> - </archive> - </configuration> - </plugin--> </plugins> </build>