Author: tchemit Date: 2009-01-21 22:26:14 +0000 (Wed, 21 Jan 2009) New Revision: 1547 Modified: branches/migration-200901/simexplorer-is/ branches/migration-200901/simexplorer-is/pom.xml branches/migration-200901/simexplorer-is/simexplorer-is-ear/pom.xml branches/migration-200901/simexplorer-is/simexplorer-is-entities/pom.xml branches/migration-200901/simexplorer-is/simexplorer-is-entities/src/java/fr/cemagref/simexplorer/is/entities/SimExplorerPage.java branches/migration-200901/simexplorer-is/simexplorer-is-entities/src/java/fr/cemagref/simexplorer/is/entities/attachment/RawType.java branches/migration-200901/simexplorer-is/simexplorer-is-security/pom.xml branches/migration-200901/simexplorer-is/simexplorer-is-service/pom.xml branches/migration-200901/simexplorer-is/simexplorer-is-service/src/java/fr/cemagref/simexplorer/is/service/StorageServiceClient.java branches/migration-200901/simexplorer-is/simexplorer-is-service/src/java/fr/cemagref/simexplorer/is/service/StorageServiceCommon.java branches/migration-200901/simexplorer-is/simexplorer-is-storage/pom.xml branches/migration-200901/simexplorer-is/simexplorer-is-swing/pom.xml branches/migration-200901/simexplorer-is/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/SimExplorerContext.java branches/migration-200901/simexplorer-is/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/ShowDetailTabAction.java branches/migration-200901/simexplorer-is/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/util/SimExplorerAbstractTabAction.java branches/migration-200901/simexplorer-is/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/util/SimExplorerBaseAction.java branches/migration-200901/simexplorer-is/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/ui/SimExplorerMainUI.java branches/migration-200901/simexplorer-is/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/ui/SimExplorerTab.java branches/migration-200901/simexplorer-is/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/ui/SimExplorerUI.jaxx branches/migration-200901/simexplorer-is/simexplorer-is-swing/src/resources/i18n/simexplorer-is-swing-en_GB.properties branches/migration-200901/simexplorer-is/simexplorer-is-swing/src/resources/i18n/simexplorer-is-swing-fr_FR.properties branches/migration-200901/simexplorer-is/simexplorer-is-web/pom.xml branches/migration-200901/simexplorer-is/src/site/fr/rst/devel/migration2009.rst Log: - suppression annotation org.codelutin.i18n.I18nable pour utilisation de lutinutil:1.0.3 - reusinage des poms - utilisation Jaxx > 1.0 - utilisation commandline 1.0 Property changes on: branches/migration-200901/simexplorer-is ___________________________________________________________________ Name: svn:ignore - target .project *.iml *.ipr *.iws .classpath + target .project *.iml *.ipr *.iws .classpath *.log Modified: branches/migration-200901/simexplorer-is/pom.xml =================================================================== --- branches/migration-200901/simexplorer-is/pom.xml 2009-01-21 22:23:13 UTC (rev 1546) +++ branches/migration-200901/simexplorer-is/pom.xml 2009-01-21 22:26:14 UTC (rev 1547) @@ -35,6 +35,225 @@ </dependency> </dependencies> + <dependencyManagement> + <dependencies> + + <!-- librairies lutin --> + <dependency> + <groupId>lutinlib</groupId> + <artifactId>lutinutil</artifactId> + <version>${lutinutil.version}</version> + </dependency> + + <dependency> + <groupId>lutinlib</groupId> + <artifactId>lutinwidget</artifactId> + <version>${lutinwidget.version}</version> + <scope>compile</scope> + <exclusions> + <exclusion> + <groupId>sdoc</groupId> + <artifactId>sdoc</artifactId> + </exclusion> + <exclusion> + <groupId>javax.mail</groupId> + <artifactId>mail</artifactId> + </exclusion> + <exclusion> + <groupId>externallib</groupId> + <artifactId>l2fprod-common</artifactId> + </exclusion> + <exclusion> + <groupId>jgoodies</groupId> + <artifactId>looks</artifactId> + </exclusion> + </exclusions> + </dependency> + + <!-- librairie Jaxx --> + <dependency> + <groupId>org.codelutin.jaxx</groupId> + <artifactId>jaxx-util</artifactId> + <version>${jaxx.version}</version> + <scope>compile</scope> + </dependency> + <dependency> + <groupId>org.codelutin.jaxx</groupId> + <artifactId>jaxx-runtime-swing</artifactId> + <version>${jaxx.version}</version> + <scope>compile</scope> + <exclusions> + <exclusion> + <groupId>javax.help</groupId> + <artifactId>javahelp</artifactId> + </exclusion> + <exclusion> + <groupId>org.swinglabs</groupId> + <artifactId>jxlayer</artifactId> + </exclusion> + <exclusion> + <groupId>commons-jxpath</groupId> + <artifactId>commons-jxpath</artifactId> + </exclusion> + </exclusions> + </dependency> + <dependency> + <groupId>org.codelutin.jaxx</groupId> + <artifactId>jaxx-swing-action</artifactId> + <version>${jaxx.version}</version> + <scope>compile</scope> + </dependency> + + <!-- librairie commandline --> + <dependency> + <groupId>org.codelutin.commandline</groupId> + <artifactId>commandline-core</artifactId> + <version>${commandline.version}</version> + <scope>compile</scope> + </dependency> + <dependency> + <groupId>org.codelutin.commandline</groupId> + <artifactId>commandline-ui</artifactId> + <version>${commandline.version}</version> + <scope>compile</scope> + </dependency> + <dependency> + <groupId>org.codelutin.commandline</groupId> + <artifactId>commandline-ui-action</artifactId> + <version>${commandline.version}</version> + <scope>compile</scope> + </dependency> + + <!-- libraires commons --> + <dependency> + <groupId>commons-lang</groupId> + <artifactId>commons-lang</artifactId> + <version>2.3</version> + </dependency> + + <!-- todo a supprimer car dans lutinproject --> + <dependency> + <groupId>commons-logging</groupId> + <artifactId>commons-logging</artifactId> + <version>1.1</version> + </dependency> + + <!-- librairie jboss --> + <dependency> + <groupId>jboss</groupId> + <artifactId>jbossall-client</artifactId> + <version>${jboss.version}</version> + <scope>provided</scope> + </dependency> + <dependency> + <groupId>jboss</groupId> + <artifactId>jboss-ejb3x</artifactId> + <version>${jboss.version}</version> + <scope>provided</scope> + </dependency> + <dependency> + <groupId>jboss</groupId> + <artifactId>jboss-annotations-ejb3</artifactId> + <version>${jboss.version}</version> + <scope>provided</scope> + </dependency> + + <dependency> + <groupId>jboss</groupId> + <artifactId>javassist</artifactId> + <version>3.7.ga</version> + </dependency> + + <!-- librairie tapestry --> + <dependency> + <groupId>tapestry5-treegrid</groupId> + <artifactId>tapestry5-treegrid</artifactId> + <version>${tapestry.version}.1</version> + </dependency> + <dependency> + <groupId>org.apache.tapestry</groupId> + <artifactId>tapestry-upload</artifactId> + <version>${tapestry.version}</version> + </dependency> + <dependency> + <groupId>org.apache.tapestry</groupId> + <artifactId>tapestry-core</artifactId> + <version>${tapestry.version}</version> + </dependency> + <dependency> + <groupId>org.apache.tapestry</groupId> + <artifactId>tapestry-ioc</artifactId> + <version>${tapestry.version}</version> + </dependency> + <dependency> + <groupId>org.apache.tapestry</groupId> + <artifactId>t5c-commons</artifactId> + <version>0.5.11</version> + </dependency> + + <!-- autres librairies --> + + <dependency> + <groupId>com.h2database</groupId> + <artifactId>h2</artifactId> + <version>1.0.64</version> + </dependency> + + <dependency> + <groupId>org.apache.lucene</groupId> + <artifactId>lucene-core</artifactId> + <version>2.3.1</version> + </dependency> + + <dependency> + <groupId>com.thoughtworks.xstream</groupId> + <artifactId>xstream</artifactId> + <version>1.3</version> + </dependency> + + <dependency> + <groupId>javax.mail</groupId> + <artifactId>mail</artifactId> + <version>1.4</version> + </dependency> + + <dependency> + <groupId>javax.persistence</groupId> + <artifactId>persistence-api</artifactId> + <version>1.0</version> + <scope>provided</scope> + </dependency> + + <dependency> + <groupId>org.testng</groupId> + <artifactId>testng</artifactId> + <version>5.1</version> + <classifier>jdk15</classifier> + <scope>test</scope> + </dependency> + + <!--dependency> + <groupId>com.bm</groupId> + <artifactId>ejb3unit</artifactId> + <version>2.0.0-RC-1</version> + <scope>test</scope> + <exclusions> + <exclusion> + <groupId>jboss</groupId> + <artifactId>javassist</artifactId> + </exclusion> + </exclusions> + </dependency--> + + <!--dependency> + <groupId>com.healthmarketscience.rmiio</groupId> + <artifactId>rmiio</artifactId> + <version>2.0.1</version> + </dependency--> + + </dependencies> + </dependencyManagement> + <!-- ************************************************************* --> <!-- *** Project Information ************************************* --> <!-- ************************************************************* --> @@ -44,7 +263,6 @@ <description>SimExplorer Information System</description> <inceptionYear>2008</inceptionYear> - <licenses> <license> <name>GPL</name> @@ -58,6 +276,20 @@ <url>http://www.cemagref.fr/</url> </organization> + <developers> + <developer> + <id>glandais</id> + <name>Gabriel Landais</name> + <email>landais at codelutin.com</email> + <organization>Code Lutin</organization> + <organizationUrl>http://www.codelutin.com</organizationUrl> + <timezone>+2</timezone> + <roles> + <role>Développeur</role> + </roles> + </developer> + </developers> + <!-- ************************************************************* --> <!-- *** Build Settings ****************************************** --> <!-- ************************************************************* --> @@ -66,22 +298,37 @@ <properties> + <!-- labs project number --> <labs.id>130</labs.id> + <!-- labs project name --> <labs.project>simexplorer-si</labs.project> <current.version.released>1.0-SNAPSHOT</current.version.released> <!-- jaxx version --> - <jaxx.version>0.2-SNAPSHOT</jaxx.version> + <jaxx.version>1.1-SNAPSHOT</jaxx.version> <!-- commandline version --> - <commandline.version>0.7-SNAPSHOT</commandline.version> + <commandline.version>1.0-SNAPSHOT</commandline.version> + <!-- i18n version --> + <i18n.version>0.3</i18n.version> + <!-- Tapestry version --> <tapestry.version>5.0.11</tapestry.version> + <!-- jboss version --> + <jboss.version>4.2.2.GA</jboss.version> + <!-- lutinutil version todo use 1.0.3 --> + <lutinutil.version>0.29.1</lutinutil.version> + + <!-- lutinwidget version todo use 0.12 --> + <lutinwidget.version>0.10-SNAPSHOT</lutinwidget.version> + + <!-- todo remove this, already in lutinproject 3.3 --> + <!-- source base dir (ne respecte pas la convention maven2) --> <maven.src.dir>${basedir}/src</maven.src.dir> @@ -94,14 +341,60 @@ </properties> <build> + + <defaultGoal>install</defaultGoal> + + <pluginManagement> + <plugins> + + <plugin> + <artifactId>maven-ejb-plugin</artifactId> + <configuration> + <ejbVersion>3.0</ejbVersion> + </configuration> + </plugin> + + <plugin> + <artifactId>maven-surefire-plugin</artifactId> + <configuration> + <skip>${maven.test.skip}</skip> + <excludes> + <exclude>**/*MassTestCase.java</exclude> + </excludes> + </configuration> + </plugin> + + <plugin> + <artifactId>maven-compiler-plugin</artifactId> + <configuration> + <source>${maven.compile.source}</source> + <target>${maven.compile.target}</target> + <encoding>${maven.compile.encoding}</encoding> + </configuration> + </plugin> + + <plugin> + <groupId>lutinplugin</groupId> + <artifactId>maven-i18n-plugin</artifactId> + <version>${i18n.version}</version> + <configuration> + <bundles> + <param>fr_FR</param> + <param>en_GB</param> + </bundles> + <keepBackup>false</keepBackup> + </configuration> + </plugin> + </plugins> + </pluginManagement> + <plugins> - <plugin> + <!--plugin> <groupId>org.codelutin</groupId> <artifactId>maven-jrst-plugin</artifactId> <version>0.8.4-SNAPSHOT</version> <executions> <execution> - <!-- test works better than pre:site --> <phase>test</phase> <goals> <goal>jrst</goal> @@ -122,8 +415,8 @@ <verbose>${maven.verbose}</verbose> <overwrite>true</overwrite> </configuration> - </plugin> - <plugin> + </plugin--> + <!--plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-site-plugin</artifactId> <configuration> @@ -137,14 +430,14 @@ ${basedir}/target/generated-site/xdoc/fr/rst </xdocDirectory> </configuration> - </plugin> - <plugin> + </plugin--> + <!--plugin> <artifactId>maven-ejb-plugin</artifactId> <configuration> <ejbVersion>3.0</ejbVersion> </configuration> - </plugin> - <plugin> + </plugin--> + <!--plugin> <artifactId>maven-surefire-plugin</artifactId> <configuration> <skip>${maven.test.skip}</skip> @@ -152,15 +445,15 @@ <exclude>**/*MassTestCase.java</exclude> </excludes> </configuration> - </plugin> - <plugin> + </plugin--> + <!--plugin> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>${maven.compile.source}</source> <target>${maven.compile.target}</target> <encoding>${maven.compile.encoding}</encoding> </configuration> - </plugin> + </plugin--> <!-- NO remove this ide plugin :) no IDE config in project --> <!--plugin> @@ -170,8 +463,7 @@ </configuration> </plugin--> - - <plugin> + <!--plugin> <groupId>lutinplugin</groupId> <artifactId>maven-i18n-plugin</artifactId> <version>0.3</version> @@ -181,227 +473,32 @@ <param>en_GB</param> </bundles> <keepBackup>false</keepBackup> - <!--ea>true</ea--> - <!--detectea>true</detectea--> </configuration> - </plugin> + </plugin--> </plugins> </build> - - <dependencyManagement> - <dependencies> - - <dependency> - <groupId>lutinlib</groupId> - <artifactId>lutinutil</artifactId> - <version>0.29.1</version> - </dependency> - - <dependency> - <groupId>com.h2database</groupId> - <artifactId>h2</artifactId> - <version>1.0.64</version> - </dependency> - <dependency> - <groupId>org.apache.lucene</groupId> - <artifactId>lucene-core</artifactId> - <version>2.3.1</version> - </dependency> - <dependency> - <groupId>com.thoughtworks.xstream</groupId> - <artifactId>xstream</artifactId> - <version>1.3</version> - </dependency> - - <dependency> - <groupId>commons-lang</groupId> - <artifactId>commons-lang</artifactId> - <version>2.3</version> - </dependency> - <dependency> - <groupId>commons-logging</groupId> - <artifactId>commons-logging</artifactId> - <version>1.1</version> - </dependency> - - <!-- librairie des widgets lutin --> - <dependency> - <groupId>lutinlib</groupId> - <artifactId>lutinwidget</artifactId> - <version>0.10-SNAPSHOT</version> - <scope>compile</scope> - </dependency> - - <!-- librairie Jaxx --> - <dependency> - <groupId>org.codelutin.jaxx</groupId> - <artifactId>util</artifactId> - <version>${jaxx.version}</version> - <scope>compile</scope> - </dependency> - - <dependency> - <groupId>org.codelutin.jaxx</groupId> - <artifactId>jaxx-swing</artifactId> - <version>${jaxx.version}</version> - <scope>compile</scope> - </dependency> - - <dependency> - <groupId>org.codelutin.jaxx</groupId> - <artifactId>jaxx-swing-action</artifactId> - <version>${jaxx.version}</version> - <scope>compile</scope> - </dependency> - - <dependency> - <groupId>org.codelutin.jaxx</groupId> - <artifactId>jaxx-swing-tab</artifactId> - <version>${jaxx.version}</version> - <scope>compile</scope> - </dependency> - - <!-- librairie commandline --> - <dependency> - <groupId>org.codelutin.commandline</groupId> - <artifactId>commandline-core</artifactId> - <version>${commandline.version}</version> - <scope>compile</scope> - </dependency> - <dependency> - <groupId>org.codelutin.commandline</groupId> - <artifactId>commandline-ui</artifactId> - <version>${commandline.version}</version> - <scope>compile</scope> - </dependency> - <dependency> - <groupId>org.codelutin.commandline</groupId> - <artifactId>commandline-ui-action</artifactId> - <version>${commandline.version}</version> - <scope>compile</scope> - </dependency> - - <dependency> - <groupId>javax.persistence</groupId> - <artifactId>persistence-api</artifactId> - <version>1.0</version> - <scope>provided</scope> - </dependency> - - <dependency> - <groupId>jboss</groupId> - <artifactId>jbossall-client</artifactId> - <version>4.2.2.GA</version> - <scope>provided</scope> - </dependency> - <dependency> - <groupId>jboss</groupId> - <artifactId>jboss-ejb3x</artifactId> - <version>4.2.2.GA</version> - <scope>provided</scope> - </dependency> - <dependency> - <groupId>jboss</groupId> - <artifactId>jboss-annotations-ejb3</artifactId> - <version>4.2.2.GA</version> - <scope>provided</scope> - </dependency> - - <!--dependency> - <groupId>com.bm</groupId> - <artifactId>ejb3unit</artifactId> - <version>2.0.0-RC-1</version> - <scope>test</scope> - <exclusions> - <exclusion> - <groupId>jboss</groupId> - <artifactId>javassist</artifactId> - </exclusion> - </exclusions> - </dependency--> - - <dependency> - <groupId>jboss</groupId> - <artifactId>javassist</artifactId> - <version>3.7.ga</version> - </dependency> - - - <!--dependency> - <groupId>com.healthmarketscience.rmiio</groupId> - <artifactId>rmiio</artifactId> - <version>2.0.1</version> - </dependency--> - - <dependency> - <groupId>javax.mail</groupId> - <artifactId>mail</artifactId> - <version>1.4</version> - </dependency> - - <dependency> - <groupId>tapestry5-treegrid</groupId> - <artifactId>tapestry5-treegrid</artifactId> - <version>${tapestry.version}.1</version> - </dependency> - <dependency> - <groupId>org.apache.tapestry</groupId> - <artifactId>tapestry-upload</artifactId> - <version>${tapestry.version}</version> - </dependency> - <dependency> - <groupId>org.apache.tapestry</groupId> - <artifactId>tapestry-core</artifactId> - <version>${tapestry.version}</version> - </dependency> - <dependency> - <groupId>org.apache.tapestry</groupId> - <artifactId>tapestry-ioc</artifactId> - <version>${tapestry.version}</version> - </dependency> - <dependency> - <groupId>org.apache.tapestry</groupId> - <artifactId>t5c-commons</artifactId> - <version>0.5.11</version> - </dependency> - - <dependency> - <groupId>org.testng</groupId> - <artifactId>testng</artifactId> - <version>5.1</version> - <classifier>jdk15</classifier> - <scope>test</scope> - </dependency> - - <!-- Plugins --> - - - <dependency> - <groupId>lutinplugin</groupId> - <artifactId>maven-i18n-plugin</artifactId> - <version>0.3</version> - </dependency> - - </dependencies> - </dependencyManagement> - <!-- ************************************************************* --> <!-- *** Build Environment ************************************** --> <!-- ************************************************************* --> - <prerequisites> - <maven>2.0.8</maven> - </prerequisites> - <scm> + <url>${maven.scm.url}</url> + <connection>${maven.scm.connection}</connection> + <developerConnection>${maven.scm.developerConnection}</developerConnection> + </scm> + <!--scm> <connection>scm:svn:svn://labs.libre-entreprise.org/svnroot/simexplorer-si</connection> <developerConnection>scm:svn:svn+ssh://${username}@labs.libre-entreprise.org/svnroot/simexplorer-si </developerConnection> <url>https://labs.libre-entreprise.org/plugins/scmsvn/viewcvs.php/?root=simexplorer-si</url> - </scm> + </scm--> + <prerequisites> + <maven>2.0.8</maven> + </prerequisites> + <repositories> <!-- no this repo is by default in maven ? --> <repository> @@ -428,18 +525,4 @@ </repositories> - <developers> - <developer> - <id>glandais</id> - <name>Gabriel Landais</name> - <email>landais at codelutin.com</email> - <organization>Code Lutin</organization> - <organizationUrl>http://www.codelutin.com</organizationUrl> - <timezone>+2</timezone> - <roles> - <role>Développeur</role> - </roles> - </developer> - </developers> - </project> Modified: branches/migration-200901/simexplorer-is/simexplorer-is-ear/pom.xml =================================================================== --- branches/migration-200901/simexplorer-is/simexplorer-is-ear/pom.xml 2009-01-21 22:23:13 UTC (rev 1546) +++ branches/migration-200901/simexplorer-is/simexplorer-is-ear/pom.xml 2009-01-21 22:26:14 UTC (rev 1547) @@ -16,9 +16,11 @@ </parent> <artifactId>simexplorer-is-ear</artifactId> - + <version>${current.version.released}</version> <dependencies> + <!-- sibling dependencies --> + <dependency> <groupId>${project.groupId}</groupId> <artifactId>simexplorer-is-service</artifactId> @@ -40,7 +42,8 @@ <type>war</type> </dependency> - <!-- WAR specific depedencies --> + <!-- WAR specific tapestry depedencies --> + <dependency> <groupId>tapestry5-treegrid</groupId> <artifactId>tapestry5-treegrid</artifactId> @@ -71,25 +74,32 @@ <name>EAR service</name> <description>simexplore-is ear module</description> - <!-- no, this is not a really good idea to use a such use of version --> - <!--version>${current.version.released}</version--> - <!-- ************************************************************* --> <!-- *** Build Settings ****************************************** --> <!-- ************************************************************* --> <packaging>ear</packaging> + <properties> + <jboss.home>/opt/java/jboss-4.2.2.GA/</jboss.home> + <jboss.servername>simexplorer</jboss.servername> + </properties> + <build> <plugins> + + <!-- run jboss ? or deploy to jboss --> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>jboss-maven-plugin</artifactId> + <version>1.3.1</version> <configuration> - <jbossHome>/opt/java/jboss-4.2.2.GA/</jbossHome> - <serverName>simexplorer</serverName> + <jbossHome>${jboss.home}</jbossHome> + <serverName>${jboss.servername}</serverName> </configuration> </plugin> + + <!-- build ear --> <plugin> <artifactId>maven-ear-plugin</artifactId> <configuration> @@ -103,7 +113,19 @@ </modules> </configuration> </plugin> + </plugins> </build> + + <!-- ************************************************************* --> + <!-- *** Build Environment ************************************** --> + <!-- ************************************************************* --> + + <scm> + <url>${maven.scm.url.child}</url> + <connection>${maven.scm.connection.child}</connection> + <developerConnection>${maven.scm.developerConnection.child}</developerConnection> + </scm> + </project> Modified: branches/migration-200901/simexplorer-is/simexplorer-is-entities/pom.xml =================================================================== --- branches/migration-200901/simexplorer-is/simexplorer-is-entities/pom.xml 2009-01-21 22:23:13 UTC (rev 1546) +++ branches/migration-200901/simexplorer-is/simexplorer-is-entities/pom.xml 2009-01-21 22:26:14 UTC (rev 1547) @@ -41,7 +41,6 @@ <plugin> <groupId>lutinplugin</groupId> <artifactId>maven-i18n-plugin</artifactId> - <version>0.3</version> <executions> <execution> <phase>process-classes</phase> @@ -55,4 +54,14 @@ </plugins> </build> + <!-- ************************************************************* --> + <!-- *** Build Environment ************************************** --> + <!-- ************************************************************* --> + + <scm> + <url>${maven.scm.url.child}</url> + <connection>${maven.scm.connection.child}</connection> + <developerConnection>${maven.scm.developerConnection.child}</developerConnection> + </scm> + </project> Modified: branches/migration-200901/simexplorer-is/simexplorer-is-entities/src/java/fr/cemagref/simexplorer/is/entities/SimExplorerPage.java =================================================================== --- branches/migration-200901/simexplorer-is/simexplorer-is-entities/src/java/fr/cemagref/simexplorer/is/entities/SimExplorerPage.java 2009-01-21 22:23:13 UTC (rev 1546) +++ branches/migration-200901/simexplorer-is/simexplorer-is-entities/src/java/fr/cemagref/simexplorer/is/entities/SimExplorerPage.java 2009-01-21 22:26:14 UTC (rev 1547) @@ -22,7 +22,6 @@ * The Enum SimExplorerPage. * @author Code Lutin, Landais Gabriel, Chemit Tony */ - at org.codelutin.i18n.I18nable public enum SimExplorerPage { /** The Element delete. */ Modified: branches/migration-200901/simexplorer-is/simexplorer-is-entities/src/java/fr/cemagref/simexplorer/is/entities/attachment/RawType.java =================================================================== --- branches/migration-200901/simexplorer-is/simexplorer-is-entities/src/java/fr/cemagref/simexplorer/is/entities/attachment/RawType.java 2009-01-21 22:23:13 UTC (rev 1546) +++ branches/migration-200901/simexplorer-is/simexplorer-is-entities/src/java/fr/cemagref/simexplorer/is/entities/attachment/RawType.java 2009-01-21 22:26:14 UTC (rev 1547) @@ -27,7 +27,6 @@ * * @author Code Lutin, Landais Gabriel, Chemit Tony */ - at org.codelutin.i18n.I18nable public class RawType implements ContentType { /** The Constant serialVersionUID. */ Modified: branches/migration-200901/simexplorer-is/simexplorer-is-security/pom.xml =================================================================== --- branches/migration-200901/simexplorer-is/simexplorer-is-security/pom.xml 2009-01-21 22:23:13 UTC (rev 1546) +++ branches/migration-200901/simexplorer-is/simexplorer-is-security/pom.xml 2009-01-21 22:26:14 UTC (rev 1547) @@ -17,37 +17,61 @@ <artifactId>simexplorer-is-security</artifactId> + <dependencyManagement> + <dependencies> + <dependency> + <groupId>com.bm</groupId> + <artifactId>ejb3unit</artifactId> + <version>1.2</version> + <scope>test</scope> + <exclusions> + <exclusion> + <groupId>jboss</groupId> + <artifactId>javassist</artifactId> + </exclusion> + </exclusions> + </dependency> + </dependencies> + </dependencyManagement> + <dependencies> + + <!-- jboss dependencies --> + <dependency> + <groupId>jboss</groupId> + <artifactId>jboss-ejb3x</artifactId> + </dependency> + <dependency> + <groupId>jboss</groupId> + <artifactId>jboss-annotations-ejb3</artifactId> + </dependency> + + <!-- other dependencies --> + + <dependency> <groupId>commons-lang</groupId> <artifactId>commons-lang</artifactId> </dependency> + <dependency> <groupId>javax.persistence</groupId> <artifactId>persistence-api</artifactId> </dependency> + <dependency> - <groupId>jboss</groupId> - <artifactId>jboss-ejb3x</artifactId> - </dependency> - <dependency> - <groupId>jboss</groupId> - <artifactId>jboss-annotations-ejb3</artifactId> - </dependency> - <dependency> <groupId>com.h2database</groupId> <artifactId>h2</artifactId> </dependency> + + <!-- test dependencies --> + <dependency> <groupId>com.bm</groupId> <artifactId>ejb3unit</artifactId> + <scope>test</scope> </dependency> - <!--dependency> - <groupId>com.bm</groupId> - <artifactId>ejb3unit</artifactId> - <scope>test</scope> - </dependency--> <dependency> <groupId>jboss</groupId> <artifactId>javassist</artifactId> @@ -55,7 +79,6 @@ </dependency> </dependencies> - <!-- ************************************************************* --> <!-- *** Project Information ************************************* --> <!-- ************************************************************* --> @@ -70,6 +93,7 @@ <packaging>ejb</packaging> <properties> + <!-- fixme test should be ok and not be skipped --> <maven.test.skip>true</maven.test.skip> </properties> @@ -77,22 +101,11 @@ <!-- *** Build Environment ************************************** --> <!-- ************************************************************* --> - <dependencyManagement> - <dependencies> - <dependency> - <groupId>com.bm</groupId> - <artifactId>ejb3unit</artifactId> - <version>1.2</version> - <scope>test</scope> - <exclusions> - <exclusion> - <groupId>jboss</groupId> - <artifactId>javassist</artifactId> - </exclusion> - </exclusions> - </dependency> - </dependencies> - </dependencyManagement> + <scm> + <url>${maven.scm.url.child}</url> + <connection>${maven.scm.connection.child}</connection> + <developerConnection>${maven.scm.developerConnection.child}</developerConnection> + </scm> <repositories> <repository> Modified: branches/migration-200901/simexplorer-is/simexplorer-is-service/pom.xml =================================================================== --- branches/migration-200901/simexplorer-is/simexplorer-is-service/pom.xml 2009-01-21 22:23:13 UTC (rev 1546) +++ branches/migration-200901/simexplorer-is/simexplorer-is-service/pom.xml 2009-01-21 22:26:14 UTC (rev 1547) @@ -18,6 +18,9 @@ <artifactId>simexplorer-is-service</artifactId> <dependencies> + + <!-- sibling dependencies --> + <dependency> <groupId>${project.groupId}</groupId> <artifactId>simexplorer-is-storage</artifactId> @@ -29,11 +32,7 @@ <version>${project.version}</version> </dependency> - <dependency> - <groupId>com.healthmarketscience.rmiio</groupId> - <artifactId>rmiio</artifactId> - <version>2.0.1</version> - </dependency> + <!-- jboss dependencies --> <dependency> <groupId>jboss</groupId> @@ -47,7 +46,16 @@ <groupId>jboss</groupId> <artifactId>jbossall-client</artifactId> </dependency> + + <!-- other dependencies --> + <dependency> + <groupId>com.healthmarketscience.rmiio</groupId> + <artifactId>rmiio</artifactId> + <version>2.0.1</version> + </dependency> + + <dependency> <groupId>javax.persistence</groupId> <artifactId>persistence-api</artifactId> </dependency> @@ -56,6 +64,8 @@ <artifactId>mail</artifactId> </dependency> + <!-- test dependencies --> + <dependency> <groupId>com.bm</groupId> <artifactId>ejb3unit</artifactId> @@ -86,6 +96,7 @@ <packaging>ejb</packaging> <properties> + <!-- fixme test should be ok and not be skipped --> <maven.test.skip>true</maven.test.skip> </properties> @@ -111,6 +122,12 @@ <!-- *** Build Environment ************************************** --> <!-- ************************************************************* --> + <scm> + <url>${maven.scm.url.child}</url> + <connection>${maven.scm.connection.child}</connection> + <developerConnection>${maven.scm.developerConnection.child}</developerConnection> + </scm> + <repositories> <!-- pour la dependance rmiio --> <repository> Modified: branches/migration-200901/simexplorer-is/simexplorer-is-service/src/java/fr/cemagref/simexplorer/is/service/StorageServiceClient.java =================================================================== --- branches/migration-200901/simexplorer-is/simexplorer-is-service/src/java/fr/cemagref/simexplorer/is/service/StorageServiceClient.java 2009-01-21 22:23:13 UTC (rev 1546) +++ branches/migration-200901/simexplorer-is/simexplorer-is-service/src/java/fr/cemagref/simexplorer/is/service/StorageServiceClient.java 2009-01-21 22:26:14 UTC (rev 1547) @@ -28,7 +28,6 @@ * * @author Code Lutin, Landais Gabriel, Chemit Tony */ - at org.codelutin.i18n.I18nable public class StorageServiceClient extends StorageServiceCommon { /** The Constant log. */ Modified: branches/migration-200901/simexplorer-is/simexplorer-is-service/src/java/fr/cemagref/simexplorer/is/service/StorageServiceCommon.java =================================================================== --- branches/migration-200901/simexplorer-is/simexplorer-is-service/src/java/fr/cemagref/simexplorer/is/service/StorageServiceCommon.java 2009-01-21 22:23:13 UTC (rev 1546) +++ branches/migration-200901/simexplorer-is/simexplorer-is-service/src/java/fr/cemagref/simexplorer/is/service/StorageServiceCommon.java 2009-01-21 22:26:14 UTC (rev 1547) @@ -61,7 +61,6 @@ * * @author Code Lutin, Landais Gabriel, Chemit Tony */ - at org.codelutin.i18n.I18nable public abstract class StorageServiceCommon implements StorageService { /** The Constant FILE_XML. */ Modified: branches/migration-200901/simexplorer-is/simexplorer-is-storage/pom.xml =================================================================== --- branches/migration-200901/simexplorer-is/simexplorer-is-storage/pom.xml 2009-01-21 22:23:13 UTC (rev 1546) +++ branches/migration-200901/simexplorer-is/simexplorer-is-storage/pom.xml 2009-01-21 22:26:14 UTC (rev 1547) @@ -18,12 +18,16 @@ <dependencies> + <!-- sibling dependencies --> + <dependency> <groupId>${project.groupId}</groupId> <artifactId>simexplorer-is-entities</artifactId> <version>${project.version}</version> </dependency> + <!-- other dependencies --> + <dependency> <groupId>com.thoughtworks.xstream</groupId> <artifactId>xstream</artifactId> @@ -58,9 +62,19 @@ <properties> - <!-- why ? --> + <!-- fixme test should be ok and not be skipped --> <maven.test.skip>true</maven.test.skip> </properties> + <!-- ************************************************************* --> + <!-- *** Build Environment ************************************** --> + <!-- ************************************************************* --> + + <scm> + <url>${maven.scm.url.child}</url> + <connection>${maven.scm.connection.child}</connection> + <developerConnection>${maven.scm.developerConnection.child}</developerConnection> + </scm> + </project> \ No newline at end of file Modified: branches/migration-200901/simexplorer-is/simexplorer-is-swing/pom.xml =================================================================== --- branches/migration-200901/simexplorer-is/simexplorer-is-swing/pom.xml 2009-01-21 22:23:13 UTC (rev 1546) +++ branches/migration-200901/simexplorer-is/simexplorer-is-swing/pom.xml 2009-01-21 22:26:14 UTC (rev 1547) @@ -17,41 +17,46 @@ <artifactId>simexplorer-is-swing</artifactId> + <!-- todo finir de supprimer les dependences des services no utilisés par le client lourd : + lucene? , javax.servlet ? h2 ? javassist ?, xpp3 ? avalon ? + --> <dependencies> - <!-- pour obtenir les services de simexplorer-is --> + + <!-- sibling dependencies --> + <dependency> <groupId>${project.groupId}</groupId> <artifactId>simexplorer-is-service</artifactId> <version>${project.version}</version> + <exclusions> + <exclusion> + <groupId>javax.mail</groupId> + <artifactId>mail</artifactId> + </exclusion> + </exclusions> </dependency> - <!--dependency> - <groupId>${project.groupId}</groupId> - <artifactId>simexplorer-is-swing-generated</artifactId> - <version>${project.version}</version> - </dependency--> + <!-- Jaxx dependencies --> - <!-- librairie des widgets lutin --> <dependency> - <groupId>lutinlib</groupId> - <artifactId>lutinwidget</artifactId> + <groupId>org.codelutin.jaxx</groupId> + <artifactId>jaxx-runtime-swing</artifactId> </dependency> - <!-- librairie Jaxx --> <dependency> <groupId>org.codelutin.jaxx</groupId> - <artifactId>jaxx-swing</artifactId> + <artifactId>jaxx-util</artifactId> </dependency> <dependency> <groupId>org.codelutin.jaxx</groupId> - <artifactId>util</artifactId> + <artifactId>jaxx-swing-action</artifactId> </dependency> - <!-- librairie commandline --> + + <!-- commandline dependencies --> + <dependency> <groupId>org.codelutin.commandline</groupId> <artifactId>commandline-core</artifactId> </dependency> - - <!-- librairie commandline-ui --> <dependency> <groupId>org.codelutin.commandline</groupId> <artifactId>commandline-ui</artifactId> @@ -60,23 +65,21 @@ <groupId>org.codelutin.commandline</groupId> <artifactId>commandline-ui-action</artifactId> </dependency> - <!-- librairie jaxx --> + + <!-- other dependencies --> + <dependency> - <groupId>org.codelutin.jaxx</groupId> - <artifactId>jaxx-swing-action</artifactId> - </dependency> - <dependency> - <groupId>org.codelutin.jaxx</groupId> - <artifactId>jaxx-swing-tab</artifactId> - </dependency> - <!-- pour avoir les ejb jboss --> - <dependency> <groupId>jboss</groupId> <artifactId>jbossall-client</artifactId> </dependency> - </dependencies> + <dependency> + <groupId>lutinlib</groupId> + <artifactId>lutinwidget</artifactId> + </dependency> + </dependencies> + <!-- ************************************************************* --> <!-- *** Project Information ************************************* --> <!-- ************************************************************* --> @@ -153,9 +156,6 @@ <artifactId>maven-jaxx-plugin</artifactId> <version>${jaxx.version}</version> <configuration> - <copyToCP>true</copyToCP> - <actionsFile>/jaxx/simexplorer-actions.properties</actionsFile> - <baseResource>${basedir}/src/resources</baseResource> <src>${basedir}/src/java</src> </configuration> <executions> @@ -164,54 +164,18 @@ <goal>generate</goal> </goals> </execution> - <execution> - <id>jaxx-generate-actions-provider</id> - <goals> - <goal>generate-actions-provider</goal> - </goals> - <configuration> - <fqn>fr.cemagref.simexplorer.is.ui.swing.SimExplorerActionProvider</fqn> - <fqnAction>fr.cemagref.simexplorer.is.ui.swing.actions.util.SimExplorerBaseAction - </fqnAction> - <providerName>simexplorer</providerName> - </configuration> - </execution> - <execution> - <id>jaxx-generate-actions</id> - <goals> - <goal>generate-actions-properties</goal> - </goals> - <configuration> - <includes> - <param> - fr\/cemagref\/simexplorer\/is\/ui\/swing\/actions\/**\/*Action.java - </param> - </includes> - <excludes> - <param> - fr\/cemagref\/simexplorer\/is\/ui\/swing\/actions\/**\/*AbstractAction.java - </param> - </excludes> - </configuration> - </execution> </executions> <dependencies> <dependency> <groupId>lutinlib</groupId> <artifactId>lutinwidget</artifactId> - <version>0.10-SNAPSHOT</version> + <version>${lutinwidget.version}</version> </dependency> <dependency> <groupId>lutinlib</groupId> <artifactId>lutinutil</artifactId> - <version>0.29.1</version> + <version>${lutinutil.version}</version> </dependency> - <dependency> - <groupId>org.codelutin.jaxx</groupId> - <artifactId>jaxx-swing</artifactId> - <scope>compile</scope> - <version>${jaxx.version}</version> - </dependency> </dependencies> </plugin> @@ -274,7 +238,6 @@ </configuration> </execution> <execution> - <!--phase>compile</phase--> <phase>process-classes</phase> <id>java</id> <goals> @@ -292,26 +255,26 @@ </executions> </plugin> + <!-- Package phase --> <plugin> - <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> <configuration> <overWriteReleases>false</overWriteReleases> <overWriteSnapshots>false</overWriteSnapshots> <overWriteIfNewer>true</overWriteIfNewer> + <outputDirectory>${project.build.directory}/lib</outputDirectory> </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> @@ -319,7 +282,7 @@ <mainClass>${maven.jar.main.class}</mainClass> <addClasspath>true</addClasspath> <addExtensions/> - <classpathPrefix>./dependency/</classpathPrefix> + <classpathPrefix>lib/</classpathPrefix> </manifest> </archive> </configuration> @@ -343,12 +306,19 @@ </plugin> </plugins> + </build> <!-- ************************************************************* --> <!-- *** Build Environment ************************************** --> <!-- ************************************************************* --> + <scm> + <url>${maven.scm.url.child}</url> + <connection>${maven.scm.connection.child}</connection> + <developerConnection>${maven.scm.developerConnection.child}</developerConnection> + </scm> + <pluginRepositories> <pluginRepository> <id>evolvis-release-repository</id> Modified: branches/migration-200901/simexplorer-is/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/SimExplorerContext.java =================================================================== --- branches/migration-200901/simexplorer-is/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/SimExplorerContext.java 2009-01-21 22:23:13 UTC (rev 1546) +++ branches/migration-200901/simexplorer-is/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/SimExplorerContext.java 2009-01-21 22:26:14 UTC (rev 1547) @@ -36,7 +36,8 @@ import fr.cemagref.simexplorer.is.ui.swing.ui.SimExplorerTab; import fr.cemagref.simexplorer.is.ui.swing.ui.util.ErrorDialog; import org.codelutin.i18n.I18n; -import org.codelutin.jaxx.action.factory.ActionFactory; +import org.codelutin.jaxx.action.ActionFactory; +import org.codelutin.jaxx.action.ActionFactoryFromProvider; /** * Le context de l'application, implanté en singleton. @@ -76,7 +77,7 @@ public ActionFactory<SimExplorerBaseAction> getActionFactory() { if (actionFactory == null) { // used a simple factory implementation - actionFactory = org.codelutin.jaxx.action.factory.ActionFactoryFromProvider.newInstance(SimExplorerBaseAction.class); + actionFactory = ActionFactoryFromProvider.newInstance(SimExplorerBaseAction.class); } return actionFactory; } Modified: branches/migration-200901/simexplorer-is/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/ShowDetailTabAction.java =================================================================== --- branches/migration-200901/simexplorer-is/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/ShowDetailTabAction.java 2009-01-21 22:23:13 UTC (rev 1546) +++ branches/migration-200901/simexplorer-is/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/ShowDetailTabAction.java 2009-01-21 22:26:14 UTC (rev 1547) @@ -54,7 +54,7 @@ smallIcon = "action/show-tab-detail.png", mnemonic = 'd', hideActionText = true, - multiNames = {"showTab_detail", "showTabLocal_detail", "showTabRemote_detail"} + actionCommands = {"showTab_detail", "showTabLocal_detail", "showTabRemote_detail"} ) public class ShowDetailTabAction extends ShowTabAbstractAction<JDetailTab, DetailTabModel> implements SelectedAction { Modified: branches/migration-200901/simexplorer-is/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/util/SimExplorerAbstractTabAction.java =================================================================== --- branches/migration-200901/simexplorer-is/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/util/SimExplorerAbstractTabAction.java 2009-01-21 22:23:13 UTC (rev 1546) +++ branches/migration-200901/simexplorer-is/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/util/SimExplorerAbstractTabAction.java 2009-01-21 22:26:14 UTC (rev 1547) @@ -41,7 +41,6 @@ * * @author Code Lutin, Landais Gabriel, Chemit Tony */ - at org.codelutin.i18n.I18nable public abstract class SimExplorerAbstractTabAction extends SimExplorerBaseAction { private SimExplorerTab tab; Modified: branches/migration-200901/simexplorer-is/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/util/SimExplorerBaseAction.java =================================================================== --- branches/migration-200901/simexplorer-is/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/util/SimExplorerBaseAction.java 2009-01-21 22:23:13 UTC (rev 1546) +++ branches/migration-200901/simexplorer-is/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/util/SimExplorerBaseAction.java 2009-01-21 22:26:14 UTC (rev 1547) @@ -34,7 +34,7 @@ * * @author Code Lutin, Landais Gabriel, Chemit Tony */ - at org.codelutin.i18n.I18nable + at org.codelutin.jaxx.action.ActionProviderAnnotation public class SimExplorerBaseAction extends org.codelutin.jaxx.action.MyAbstractAction { private static final long serialVersionUID = -810023044364620841L; Modified: branches/migration-200901/simexplorer-is/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/ui/SimExplorerMainUI.java =================================================================== --- branches/migration-200901/simexplorer-is/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/ui/SimExplorerMainUI.java 2009-01-21 22:23:13 UTC (rev 1546) +++ branches/migration-200901/simexplorer-is/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/ui/SimExplorerMainUI.java 2009-01-21 22:26:14 UTC (rev 1547) @@ -97,6 +97,9 @@ protected void finalizeInit(SimExplorerContext context) { + // create i18n entries in menu with id 'i18nMenu' + ActionHelper.createI18nMenu(this); + // chargement dans l'ui des actions context.getActionFactory().loadActions(this); Modified: branches/migration-200901/simexplorer-is/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/ui/SimExplorerTab.java =================================================================== --- branches/migration-200901/simexplorer-is/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/ui/SimExplorerTab.java 2009-01-21 22:23:13 UTC (rev 1546) +++ branches/migration-200901/simexplorer-is/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/ui/SimExplorerTab.java 2009-01-21 22:26:14 UTC (rev 1547) @@ -34,7 +34,6 @@ * @author Code Lutin, Landais Gabriel, Chemit Tony */ - at org.codelutin.i18n.I18nable public enum SimExplorerTab { @TabContentConfig( Modified: branches/migration-200901/simexplorer-is/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/ui/SimExplorerUI.jaxx =================================================================== --- branches/migration-200901/simexplorer-is/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/ui/SimExplorerUI.jaxx 2009-01-21 22:23:13 UTC (rev 1546) +++ branches/migration-200901/simexplorer-is/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/ui/SimExplorerUI.jaxx 2009-01-21 22:26:14 UTC (rev 1547) @@ -22,11 +22,12 @@ </JMenu> <!-- menu config --> <JMenu text='simexplorer.config.menu' mnemonic="{'C'}"> - <JMenu text='simexplorer.config.i18n.menu' mnemonic="{'L'}" + <JMenu id='i18nMenu'/> + <!--JMenu text='simexplorer.config.i18n.menu' mnemonic="{'L'}" icon='{createImageIcon("action/translate.png")}'> <JMenuItem id="i18n_fr"/> <JMenuItem id="i18n_en"/> - </JMenu> + </JMenu--> <JMenuItem id="config"/> <JMenuItem id="resetPassword"/> <JMenuItem id="historyReset"/> Modified: branches/migration-200901/simexplorer-is/simexplorer-is-swing/src/resources/i18n/simexplorer-is-swing-en_GB.properties =================================================================== --- branches/migration-200901/simexplorer-is/simexplorer-is-swing/src/resources/i18n/simexplorer-is-swing-en_GB.properties 2009-01-21 22:23:13 UTC (rev 1546) +++ branches/migration-200901/simexplorer-is/simexplorer-is-swing/src/resources/i18n/simexplorer-is-swing-en_GB.properties 2009-01-21 22:26:14 UTC (rev 1547) @@ -128,7 +128,6 @@ simexplorer.common.type=type simexplorer.common.value=value simexplorer.common.version=version -simexplorer.config.i18n.menu=Language simexplorer.config.local.data.description=Local database data directory simexplorer.config.local.db.description=Local database directory simexplorer.config.local.description=Local server configuration Modified: branches/migration-200901/simexplorer-is/simexplorer-is-swing/src/resources/i18n/simexplorer-is-swing-fr_FR.properties =================================================================== --- branches/migration-200901/simexplorer-is/simexplorer-is-swing/src/resources/i18n/simexplorer-is-swing-fr_FR.properties 2009-01-21 22:23:13 UTC (rev 1546) +++ branches/migration-200901/simexplorer-is/simexplorer-is-swing/src/resources/i18n/simexplorer-is-swing-fr_FR.properties 2009-01-21 22:26:14 UTC (rev 1547) @@ -128,7 +128,6 @@ simexplorer.common.type=type simexplorer.common.value=valeur simexplorer.common.version=version -simexplorer.config.i18n.menu=Langue simexplorer.config.local.data.description=R\u00E9pertoire des donn\u00E9es de la base locale simexplorer.config.local.db.description=R\u00E9pertoire de la base locale simexplorer.config.local.description=Configuration du serveur local Modified: branches/migration-200901/simexplorer-is/simexplorer-is-web/pom.xml =================================================================== --- branches/migration-200901/simexplorer-is/simexplorer-is-web/pom.xml 2009-01-21 22:23:13 UTC (rev 1546) +++ branches/migration-200901/simexplorer-is/simexplorer-is-web/pom.xml 2009-01-21 22:26:14 UTC (rev 1547) @@ -19,12 +19,16 @@ <dependencies> + <!-- sibling dependencies --> + <dependency> <groupId>${project.groupId}</groupId> <artifactId>simexplorer-is-service</artifactId> <version>${project.version}</version> </dependency> + <!-- tapestry dependencies --> + <dependency> <groupId>tapestry5-treegrid</groupId> <artifactId>tapestry5-treegrid</artifactId> @@ -46,6 +50,8 @@ <artifactId>t5c-commons</artifactId> </dependency> + <!-- others dependencies --> + <dependency> <groupId>jboss</groupId> <artifactId>jbossall-client</artifactId> @@ -54,10 +60,14 @@ <groupId>javax.persistence</groupId> <artifactId>persistence-api</artifactId> </dependency> + + <!-- test dependencies --> + <dependency> <groupId>org.testng</groupId> <artifactId>testng</artifactId> <classifier>jdk15</classifier> + <scope>test</scope> </dependency> </dependencies> @@ -76,6 +86,7 @@ <build> <plugins> + <!--WebApp in JAR --> <plugin> <artifactId>maven-war-plugin</artifactId> @@ -96,6 +107,7 @@ <plugin> <groupId>org.mortbay.jetty</groupId> <artifactId>maven-jetty-plugin</artifactId> + <version>6.1H.14</version> <configuration> <!-- Log to the console. --> <requestLog implementation="org.mortbay.jetty.NCSARequestLog"> @@ -112,8 +124,18 @@ </connectors> </configuration> </plugin> + </plugins> </build> + <!-- ************************************************************* --> + <!-- *** Build Environment ************************************** --> + <!-- ************************************************************* --> + <scm> + <url>${maven.scm.url.child}</url> + <connection>${maven.scm.connection.child}</connection> + <developerConnection>${maven.scm.developerConnection.child}</developerConnection> + </scm> + </project> \ No newline at end of file Modified: branches/migration-200901/simexplorer-is/src/site/fr/rst/devel/migration2009.rst =================================================================== --- branches/migration-200901/simexplorer-is/src/site/fr/rst/devel/migration2009.rst 2009-01-21 22:23:13 UTC (rev 1546) +++ branches/migration-200901/simexplorer-is/src/site/fr/rst/devel/migration2009.rst 2009-01-21 22:26:14 UTC (rev 1547) @@ -61,50 +61,130 @@ Utilisation layout maven 2 -------------------------- -Le layout (i.e l'organisation physique des répertoires) ne respectait pas les convention préconisées par Maven 2, -car à l'heure où ce projet a été développé nous n'avions pas encore de super-pom (lutinproject) qui respectait ces conventions. +Le layout (i.e l'organisation physique des répertoires) ne respectait pas les +convention préconisées par Maven 2, car à l'heure où ce projet a été développé +nous n'avions pas encore de super-pom (lutinproject) qui respectait ces conventions. -Aujourd'hui, c'est le cas et nous nous baserons le sur le super-pom org.codelutin:lutinproject:3.3 +Aujourd'hui, c'est le cas et nous nous baserons le sur le super-pom -Nous préconisons aussi l'utilisation de ces conventions car la plupart des plugin maven (dont les notres) les respectent et cela -facilite grandement l'écriture des poms de se baser sur ces conventions. +*org.codelutin:lutinproject:3.3* +Nous préconisons aussi l'utilisation de ces conventions car la plupart des plugin +maven (dont les notres) les respectent et cela facilite grandement l'écriture des +poms de se baser sur ces conventions. + Pour plus de renseignement, voir http://maven.apache.org/guides/introduction/introduction-to-the-standard-dir... Refactoring des poms -------------------- -Amélioration des poms du projet modules se basant sur les préconisations écrites par Sonatype http://books.sonatype.com/maven-book/reference/public-book.html +Amélioration des poms du projet modules se basant sur les préconisations +écrites par Sonatype http://books.sonatype.com/maven-book/reference/public-book.html -En effet, un certain d'anit-pattern maven ont été introduits dans nos poms (par exemple l'utilisation de la variable current.version qui nous rend dépendant du super-pom du projet +En effet, un certain d'anit-pattern maven ont été introduits dans nos poms +(par exemple l'utilisation de la variable current.version qui nous rend dépendant du super-pom du projet alors que cela ne doit pas être le cas. +Harmonisation des poms +~~~~~~~~~~~~~~~~~~~~~~ + +Les poms ont étés harmonisés, à savoir avec l'ajout de section en commentaire +qui permettent de savoir plus facilement où l'on se trouve dans le pom. + +On s'est basé sur le document suivant qui décrit bien les différentes sections +d'un pom : http://www.javaworld.com/javaworld/jw-05-2006/jw-0529-maven.html + +En gros, il ya quantre grandes sections : + +- *POM Relationships* : les relation du module +- *Project Information* : les informations propres au module +- *Build Settings* : le build du module +- *Build Environment* : l'environnement du build du module + +Utilisation du pluginManagement +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +Dans le pom parent, les plugins étaient déclarés dans plugins, ce qui n'est pas +correct, car cette section est réservée à l'exécution de plugins et non pas à leur configuration, +il faut utiliser la section pluginManagement à cet effet. + +Refactoring des dépendances +~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +Les modules d'un projet multi-module ne doivent pas apparaître dans la section +dependenciesManagment, mais être référencés dans les autres modules comme ceci : + +:: + + <dependency> + <groupId>${project.groupId}</groupId> + <artifactId>simexplorer-is-storage</artifactId> + <version>${project.version}</version> + </dependency> + +On appelle de telles dépendances des *sibling dependencies*. + +Cela permettra de ne plus avoir à avoir comme dépendance dans d'autres projet +le super-pom car ça c'est pas du tout normal :) + +Utilisation de luinproject 3.3 +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +Ce nouveau super-pom est meilleur que les précédents :) il permet par exemple une +gestion des scm améliorée, et surtout ré-utilise le profile release-profile pour lancer +l'exécution de plugin normalement nécessaire pendant une phase de release +(javadoc, source, enforcer,...). + +Ce profile reste cependant déclancheable à tout moment via la variable +*performRelease*, ce qui peut-être interressant lorsque l'on déploye +par exemple une snapshot car il est toujours bon de deployer en même +temps au moins les sources (les IDE aiment bien ça!) + +Donc un simple mvn deploy -DperformRelease et le tour est joué. + +Ajout des fichiers REAMDE.txt et changelong.txt sur tous les mdoules. + + Utilisation des nouveaux groupId de nos librairies et plugins ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Nous avons depuis peu changé le groupId de toutes nos libraires et plugin, à savoir : +Nous avons depuis peu changé le groupId de toutes nos libraires et plugins, +à savoir : -- org.codelutin pour les librairies et plugin (non projet multi-modules) -- org.codelutin.XXX (pour les librairies multi-modules). +- *org.codelutin* pour les librairies et plugin (non projet multi-modules) +- *org.codelutin.XXX* (pour les librairies multi-modules : Jaxx, Commandline, ToPIA). Passage sur des versions stables de nos librairies et plugins ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Certainns librairies et plugins actuellement utilisés sur le logiciel sont en snapshot, i.e sont suceptibles d'évoluer et ne sont pas stables, -on les remplace par des version releasées qui elles sont jages de stabilité et sont plus facilement traçables (des tags svn sont posés pour chaque nouvelle release). +Certaines librairies et plugins actuellement utilisés sur le logiciel sont en +snapshot, i.e sont suceptibles d'évoluer et ne sont pas stables, on les +remplace par des version releasées qui elles sont jages de stabilité et sont +plus facilement traçables (des tags svn sont posés pour chaque nouvelle release). -Migration de JAXX 1.0 -~~~~~~~~~~~~~~~~~~~~~ +Migration vers JAXX 1.0 +~~~~~~~~~~~~~~~~~~~~~~~ -Un gros travail a été effectué sur la libraire JAXX http://buix.labs.libre-entreprise.org/jaxx, désormais l'exécution de l'application est bien détachée du code du compilateur JAXX, cela +Un gros travail a été effectué sur la libraire JAXX http://buix.labs.libre-entreprise.org/jaxx, désormais +l'exécution de l'application est bien détachée du code du compilateur JAXX, cela a nécessité de repenser l'organisation des modules du projet JAXX et cela nécessite une moigration. Suppression du module simexplorer-si-swing-generated ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Le plugin Jaxx et Commandline sont désormais capable de générer du code lorsque cela est nécessaire, il n'est donc -plus nécessaire de conserver un module de génération et tout est générer dans le module swing. +Le plugin Jaxx et Commandline sont désormais capables de générer du code +lorsque cela est nécessaire, il n'est donc plus nécessaire de conserver +un module de génération et tout est générer dans le module swing. +Exclure les dépendences transitives pour le client Swing +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Certaines librairies possèdent des dépendences transitives non utilisés par +le client lourd, donc inutile de les embarquer dans les dépendances de +l'application, cela diminue le nombre de jar et c'est un plus. + + + +