Tutti-commits
Threads by month
- ----- 2026 -----
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2025 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2024 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2023 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2022 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2021 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2020 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2019 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2018 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2017 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2016 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2015 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2014 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2013 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2012 -----
- December
- November
- 4058 discussions
r482 - in trunk: . tutti-persistence/src/main/java/fr/ifremer/tutti/persistence/entities tutti-service/src/test/java/fr/ifremer/tutti/service/protocol tutti-service/src/test/java/fr/ifremer/tutti/service/referential tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/util/action
by tchemit@users.forge.codelutin.com Feb. 26, 2013
by tchemit@users.forge.codelutin.com Feb. 26, 2013
Feb. 26, 2013
Author: tchemit
Date: 2013-02-26 09:42:14 +0100 (Tue, 26 Feb 2013)
New Revision: 482
Url: http://forge.codelutin.com/projects/tutti/repository/revisions/482
Log:
use last snapshot of nuiton-utils
Modified:
trunk/pom.xml
trunk/tutti-persistence/src/main/java/fr/ifremer/tutti/persistence/entities/TuttiEntities.java
trunk/tutti-service/src/test/java/fr/ifremer/tutti/service/protocol/TuttiProtocolImportExportServiceTest.java
trunk/tutti-service/src/test/java/fr/ifremer/tutti/service/referential/TuttiReferentialImportExportServiceTest.java
trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/util/action/TuttiActionUIHandler.java
Modified: trunk/pom.xml
===================================================================
--- trunk/pom.xml 2013-02-25 21:43:56 UTC (rev 481)
+++ trunk/pom.xml 2013-02-26 08:42:14 UTC (rev 482)
@@ -122,7 +122,7 @@
<!-- libraries version -->
- <nuitonUtilsVersion>2.6.8</nuitonUtilsVersion>
+ <nuitonUtilsVersion>2.6.10-SNAPSHOT</nuitonUtilsVersion>
<nuitonI18nVersion>2.5</nuitonI18nVersion>
<eugenePluginVersion>2.6.1</eugenePluginVersion>
Modified: trunk/tutti-persistence/src/main/java/fr/ifremer/tutti/persistence/entities/TuttiEntities.java
===================================================================
--- trunk/tutti-persistence/src/main/java/fr/ifremer/tutti/persistence/entities/TuttiEntities.java 2013-02-25 21:43:56 UTC (rev 481)
+++ trunk/tutti-persistence/src/main/java/fr/ifremer/tutti/persistence/entities/TuttiEntities.java 2013-02-26 08:42:14 UTC (rev 482)
@@ -38,8 +38,6 @@
import fr.ifremer.tutti.persistence.entities.referential.CaracteristicType;
import fr.ifremer.tutti.persistence.entities.referential.Species;
import org.apache.commons.collections.CollectionUtils;
-import org.apache.commons.lang3.StringUtils;
-import org.apache.commons.lang3.SystemUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.hibernate.cfg.Environment;
@@ -336,33 +334,4 @@
return result;
}
- public static File getTestSpecificDirectory(Class<?> testClassName,
- String methodName,
- String classifier,
- long timestamp) {
- // Trying to look for the temporary folder to store data for the test
- String tempDirPath = System.getProperty("java.io.tmpdir");
- if (tempDirPath == null) {
- // can this really occur ?
- tempDirPath = "";
- if (log.isWarnEnabled()) {
- log.warn("'\"java.io.tmpdir\" not defined");
- }
- }
- File tempDirFile = SystemUtils.getJavaIoTmpDir();
-
- // create the directory to store database data
- String dataBasePath = testClassName.getName()
- + File.separator // a directory with the test class name
- + methodName; // a sub-directory with the method name
-
- if (StringUtils.isNotBlank(classifier)) {
- dataBasePath += classifier;
- }
- dataBasePath += '_'
- + timestamp; // and a timestamp
- File databaseFile = new File(tempDirFile, dataBasePath);
- return databaseFile;
- }
-
}
Modified: trunk/tutti-service/src/test/java/fr/ifremer/tutti/service/protocol/TuttiProtocolImportExportServiceTest.java
===================================================================
--- trunk/tutti-service/src/test/java/fr/ifremer/tutti/service/protocol/TuttiProtocolImportExportServiceTest.java 2013-02-25 21:43:56 UTC (rev 481)
+++ trunk/tutti-service/src/test/java/fr/ifremer/tutti/service/protocol/TuttiProtocolImportExportServiceTest.java 2013-02-26 08:42:14 UTC (rev 482)
@@ -38,6 +38,7 @@
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.TestName;
+import org.nuiton.util.FileUtil;
import java.io.File;
import java.util.Map;
@@ -115,9 +116,9 @@
@Before
public void setUp() throws Exception {
- datadirectory = TuttiEntities.getTestSpecificDirectory(getClass(),
- name.getMethodName(),
- null, TIMESTAMP);
+ datadirectory = FileUtil.getTestSpecificDirectory(getClass(),
+ name.getMethodName(),
+ null, TIMESTAMP);
service = new TuttiProtocolImportExportService() {
Modified: trunk/tutti-service/src/test/java/fr/ifremer/tutti/service/referential/TuttiReferentialImportExportServiceTest.java
===================================================================
--- trunk/tutti-service/src/test/java/fr/ifremer/tutti/service/referential/TuttiReferentialImportExportServiceTest.java 2013-02-25 21:43:56 UTC (rev 481)
+++ trunk/tutti-service/src/test/java/fr/ifremer/tutti/service/referential/TuttiReferentialImportExportServiceTest.java 2013-02-26 08:42:14 UTC (rev 482)
@@ -29,7 +29,6 @@
import com.google.common.io.Files;
import fr.ifremer.tutti.persistence.RessourceClassLoader;
import fr.ifremer.tutti.persistence.config.TuttiPersistenceConfigOption;
-import fr.ifremer.tutti.persistence.entities.TuttiEntities;
import fr.ifremer.tutti.persistence.entities.referential.Gear;
import fr.ifremer.tutti.persistence.entities.referential.Person;
import fr.ifremer.tutti.persistence.entities.referential.Species;
@@ -45,6 +44,7 @@
import org.junit.Test;
import org.junit.rules.TestName;
import org.nuiton.util.ApplicationConfig;
+import org.nuiton.util.FileUtil;
import org.nuiton.util.beans.Binder;
import org.nuiton.util.beans.BinderFactory;
@@ -247,9 +247,9 @@
@Before
public void setUp() throws Exception {
- datadirectory = TuttiEntities.getTestSpecificDirectory(getClass(),
- name.getMethodName(),
- null, TIMESTAMP);
+ datadirectory = FileUtil.getTestSpecificDirectory(getClass(),
+ name.getMethodName(),
+ null, TIMESTAMP);
FileUtils.forceMkdir(datadirectory);
Modified: trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/util/action/TuttiActionUIHandler.java
===================================================================
--- trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/util/action/TuttiActionUIHandler.java 2013-02-25 21:43:56 UTC (rev 481)
+++ trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/util/action/TuttiActionUIHandler.java 2013-02-26 08:42:14 UTC (rev 482)
@@ -69,7 +69,7 @@
// change total progressbar max
ui.getTaskProgressBar().setMaximum((Integer) evt.getNewValue());
- } else if (ProgressionModel.PROPERTY_MESSAGE.equals(propertyName)) {
+ } else if (ProgressionModel.PROPERTY_CURRENT.equals(propertyName)) {
// change value of progress bar
ui.getTaskProgressBar().setValue((Integer) evt.getNewValue());
1
0
Feb. 25, 2013
Author: tchemit
Date: 2013-02-25 22:43:56 +0100 (Mon, 25 Feb 2013)
New Revision: 481
Url: http://forge.codelutin.com/projects/tutti/repository/revisions/481
Log:
refs #2056: [TECH] Am?\195?\169liorer le processus de mise ?\195?\160 jour de l'application (fix update urls)
Modified:
trunk/src/update/update-tutti.properties
trunk/tutti-ui-swing/pom.xml
Modified: trunk/src/update/update-tutti.properties
===================================================================
--- trunk/src/update/update-tutti.properties 2013-02-25 20:53:12 UTC (rev 480)
+++ trunk/src/update/update-tutti.properties 2013-02-25 21:43:56 UTC (rev 481)
@@ -37,14 +37,14 @@
################################################################################
tutti.version=@projectVersion@
-tutti.url=zip:http://nexus.nuiton.org/nexus/content/repositories/other-releases/fr/ifremer/tutti/tutti-ui-swing/tutti-@projectVersion@-standalone.zip
+tutti.url=zip:http://nexus.nuiton.org/nexus/content/repositories/other-releases/fr/ifremer/tutti/tutti-ui-swing/@projectVersion@/tutti-ui-swing-@projectVersion@-standalone.zip
################################################################################
### I18n Updates ###############################################################
################################################################################
i18n.version=@projectVersion@
-i18n.url=zip:http://nexus.nuiton.org/nexus/content/repositories/other-releases/fr/ifremer/tutti/tutti-ui-swing/tutti-@projectVersion@-i18n.zip
+i18n.url=zip:http://nexus.nuiton.org/nexus/content/repositories/other-releases/fr/ifremer/tutti/tutti-ui-swing/@projectVersion@/tutti-ui-swing-@projectVersion@-i18n.zip
################################################################################
### DB Updates #################################################################
Modified: trunk/tutti-ui-swing/pom.xml
===================================================================
--- trunk/tutti-ui-swing/pom.xml 2013-02-25 20:53:12 UTC (rev 480)
+++ trunk/tutti-ui-swing/pom.xml 2013-02-25 21:43:56 UTC (rev 481)
@@ -386,9 +386,6 @@
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
- <configuration>
- <finalName>${bundlePrefix}</finalName>
- </configuration>
<executions>
<execution>
<id>assembly-standalone</id>
1
0
r480 - in trunk: . tutti-persistence tutti-service tutti-ui-swing
by maven-release@users.forge.codelutin.com Feb. 25, 2013
by maven-release@users.forge.codelutin.com Feb. 25, 2013
Feb. 25, 2013
Author: maven-release
Date: 2013-02-25 21:53:12 +0100 (Mon, 25 Feb 2013)
New Revision: 480
Url: http://forge.codelutin.com/projects/tutti/repository/revisions/480
Log:
[maven-release-plugin] prepare for next development iteration
Modified:
trunk/pom.xml
trunk/tutti-persistence/pom.xml
trunk/tutti-service/pom.xml
trunk/tutti-ui-swing/pom.xml
Modified: trunk/pom.xml
===================================================================
--- trunk/pom.xml 2013-02-25 20:53:04 UTC (rev 479)
+++ trunk/pom.xml 2013-02-25 20:53:12 UTC (rev 480)
@@ -33,7 +33,7 @@
<groupId>fr.ifremer</groupId>
<artifactId>tutti</artifactId>
- <version>1.0.1</version>
+ <version>1.0.2-SNAPSHOT</version>
<modules>
<module>tutti-persistence</module>
@@ -89,12 +89,12 @@
</developers>
<scm>
- <url>http://svn.forge.codelutin.com/svn/tutti/tags/tutti-1.0.1</url>
+ <url>http://svn.forge.codelutin.com/svn/tutti/trunk</url>
<connection>
- scm:svn:http://svn.forge.codelutin.com/svn/tutti/tags/tutti-1.0.1
+ scm:svn:http://svn.forge.codelutin.com/svn/tutti/trunk
</connection>
<developerConnection>
- scm:svn:http://svn.forge.codelutin.com/svn/tutti/tags/tutti-1.0.1
+ scm:svn:http://svn.forge.codelutin.com/svn/tutti/trunk
</developerConnection>
</scm>
Modified: trunk/tutti-persistence/pom.xml
===================================================================
--- trunk/tutti-persistence/pom.xml 2013-02-25 20:53:04 UTC (rev 479)
+++ trunk/tutti-persistence/pom.xml 2013-02-25 20:53:12 UTC (rev 480)
@@ -28,7 +28,7 @@
<parent>
<groupId>fr.ifremer</groupId>
<artifactId>tutti</artifactId>
- <version>1.0.1</version>
+ <version>1.0.2-SNAPSHOT</version>
</parent>
<groupId>fr.ifremer.tutti</groupId>
Modified: trunk/tutti-service/pom.xml
===================================================================
--- trunk/tutti-service/pom.xml 2013-02-25 20:53:04 UTC (rev 479)
+++ trunk/tutti-service/pom.xml 2013-02-25 20:53:12 UTC (rev 480)
@@ -28,7 +28,7 @@
<parent>
<groupId>fr.ifremer</groupId>
<artifactId>tutti</artifactId>
- <version>1.0.1</version>
+ <version>1.0.2-SNAPSHOT</version>
</parent>
<groupId>fr.ifremer.tutti</groupId>
Modified: trunk/tutti-ui-swing/pom.xml
===================================================================
--- trunk/tutti-ui-swing/pom.xml 2013-02-25 20:53:04 UTC (rev 479)
+++ trunk/tutti-ui-swing/pom.xml 2013-02-25 20:53:12 UTC (rev 480)
@@ -28,7 +28,7 @@
<parent>
<groupId>fr.ifremer</groupId>
<artifactId>tutti</artifactId>
- <version>1.0.1</version>
+ <version>1.0.2-SNAPSHOT</version>
</parent>
<groupId>fr.ifremer.tutti</groupId>
1
0
Author: maven-release
Date: 2013-02-25 21:53:04 +0100 (Mon, 25 Feb 2013)
New Revision: 479
Url: http://forge.codelutin.com/projects/tutti/repository/revisions/479
Log:
[maven-release-plugin] copy for tag tutti-1.0.1
Added:
tags/tutti-1.0.1/
1
0
r478 - in trunk: . tutti-persistence tutti-service tutti-ui-swing
by maven-release@users.forge.codelutin.com Feb. 25, 2013
by maven-release@users.forge.codelutin.com Feb. 25, 2013
Feb. 25, 2013
Author: maven-release
Date: 2013-02-25 21:52:56 +0100 (Mon, 25 Feb 2013)
New Revision: 478
Url: http://forge.codelutin.com/projects/tutti/repository/revisions/478
Log:
[maven-release-plugin] prepare release tutti-1.0.1
Modified:
trunk/pom.xml
trunk/tutti-persistence/pom.xml
trunk/tutti-service/pom.xml
trunk/tutti-ui-swing/pom.xml
Modified: trunk/pom.xml
===================================================================
--- trunk/pom.xml 2013-02-25 20:50:45 UTC (rev 477)
+++ trunk/pom.xml 2013-02-25 20:52:56 UTC (rev 478)
@@ -21,9 +21,7 @@
#L%
-->
-<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/xsd/maven-4.0.0.xsd">
+<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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
@@ -35,7 +33,7 @@
<groupId>fr.ifremer</groupId>
<artifactId>tutti</artifactId>
- <version>1.1-SNAPSHOT</version>
+ <version>1.0.1</version>
<modules>
<module>tutti-persistence</module>
@@ -91,12 +89,12 @@
</developers>
<scm>
- <url>http://svn.forge.codelutin.com/svn/tutti/trunk</url>
+ <url>http://svn.forge.codelutin.com/svn/tutti/tags/tutti-1.0.1</url>
<connection>
- scm:svn:http://svn.forge.codelutin.com/svn/tutti/trunk
+ scm:svn:http://svn.forge.codelutin.com/svn/tutti/tags/tutti-1.0.1
</connection>
<developerConnection>
- scm:svn:http://svn.forge.codelutin.com/svn/tutti/trunk
+ scm:svn:http://svn.forge.codelutin.com/svn/tutti/tags/tutti-1.0.1
</developerConnection>
</scm>
@@ -594,18 +592,15 @@
<inherited>false</inherited>
<configuration>
<tasks>
- <echo message="Copy model to site"/>
- <copy verbose="true" failonerror="false" overwrite="true"
- filtering="true"
- todir="${project.build.directory}/update">
+ <echo message="Copy model to site" />
+ <copy verbose="true" failonerror="false" overwrite="true" filtering="true" todir="${project.build.directory}/update">
<filterset>
- <filter value="${project.version}"
- token="projectVersion"/>
- <filter value="${jreVersion}" token="jreVersion"/>
- <filter value="${dbVersion}" token="dbVersion"/>
+ <filter value="${project.version}" token="projectVersion" />
+ <filter value="${jreVersion}" token="jreVersion" />
+ <filter value="${dbVersion}" token="dbVersion" />
</filterset>
<fileset dir="${basedir}/src/update/">
- <include name="update-tutti.properties"/>
+ <include name="update-tutti.properties" />
</fileset>
</copy>
</tasks>
Modified: trunk/tutti-persistence/pom.xml
===================================================================
--- trunk/tutti-persistence/pom.xml 2013-02-25 20:50:45 UTC (rev 477)
+++ trunk/tutti-persistence/pom.xml 2013-02-25 20:52:56 UTC (rev 478)
@@ -28,7 +28,7 @@
<parent>
<groupId>fr.ifremer</groupId>
<artifactId>tutti</artifactId>
- <version>1.1-SNAPSHOT</version>
+ <version>1.0.1</version>
</parent>
<groupId>fr.ifremer.tutti</groupId>
Modified: trunk/tutti-service/pom.xml
===================================================================
--- trunk/tutti-service/pom.xml 2013-02-25 20:50:45 UTC (rev 477)
+++ trunk/tutti-service/pom.xml 2013-02-25 20:52:56 UTC (rev 478)
@@ -28,7 +28,7 @@
<parent>
<groupId>fr.ifremer</groupId>
<artifactId>tutti</artifactId>
- <version>1.1-SNAPSHOT</version>
+ <version>1.0.1</version>
</parent>
<groupId>fr.ifremer.tutti</groupId>
Modified: trunk/tutti-ui-swing/pom.xml
===================================================================
--- trunk/tutti-ui-swing/pom.xml 2013-02-25 20:50:45 UTC (rev 477)
+++ trunk/tutti-ui-swing/pom.xml 2013-02-25 20:52:56 UTC (rev 478)
@@ -28,7 +28,7 @@
<parent>
<groupId>fr.ifremer</groupId>
<artifactId>tutti</artifactId>
- <version>1.1-SNAPSHOT</version>
+ <version>1.0.1</version>
</parent>
<groupId>fr.ifremer.tutti</groupId>
1
0
Feb. 25, 2013
Author: maven-release
Date: 2013-02-25 21:50:45 +0100 (Mon, 25 Feb 2013)
New Revision: 477
Url: http://forge.codelutin.com/projects/tutti/repository/revisions/477
Log:
fix dependencies
Modified:
trunk/pom.xml
trunk/tutti-persistence/pom.xml
Modified: trunk/pom.xml
===================================================================
--- trunk/pom.xml 2013-02-25 20:44:07 UTC (rev 476)
+++ trunk/pom.xml 2013-02-25 20:50:45 UTC (rev 477)
@@ -162,7 +162,8 @@
<javassist.version>3.12.1.GA</javassist.version>
<hsqldb.version>2.2.9</hsqldb.version>
<jdbc.hsqldb.version>1.8.0.7</jdbc.hsqldb.version>
-
+ <jMockVersion>2.5.1</jMockVersion>
+
<!-- Last JRE version to use -->
<jreVersion>1.7.10</jreVersion>
@@ -367,6 +368,19 @@
<artifactId>yamlbeans</artifactId>
<version>1.06</version>
</dependency>
+
+ <dependency>
+ <groupId>org.jmock</groupId>
+ <artifactId>jmock</artifactId>
+ <version>${jMockVersion}</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.jmock</groupId>
+ <artifactId>jmock-junit4</artifactId>
+ <version>${jMockVersion}</version>
+ <scope>test</scope>
+ </dependency>
</dependencies>
Modified: trunk/tutti-persistence/pom.xml
===================================================================
--- trunk/tutti-persistence/pom.xml 2013-02-25 20:44:07 UTC (rev 476)
+++ trunk/tutti-persistence/pom.xml 2013-02-25 20:50:45 UTC (rev 477)
@@ -162,14 +162,17 @@
<artifactId>spring-test</artifactId>
</dependency>
- <dependency>
- <groupId>org.jmock</groupId>
- <artifactId>jmock-junit4</artifactId>
- <version>2.5.1</version>
- <scope>test</scope>
- </dependency>
+ <dependency>
+ <groupId>org.jmock</groupId>
+ <artifactId>jmock</artifactId>
+ </dependency>
<dependency>
+ <groupId>org.jmock</groupId>
+ <artifactId>jmock-junit4</artifactId>
+ </dependency>
+
+ <dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<scope>test</scope>
1
0
Feb. 25, 2013
Author: tchemit
Date: 2013-02-25 21:44:07 +0100 (Mon, 25 Feb 2013)
New Revision: 476
Url: http://forge.codelutin.com/projects/tutti/repository/revisions/476
Log:
- prepare release
- add clearAllCaches method
- fix db referential synchronize
Modified:
trunk/pom.xml
trunk/tutti-persistence/src/main/java/fr/ifremer/tutti/persistence/TuttiPersistence.java
trunk/tutti-persistence/src/main/java/fr/ifremer/tutti/persistence/TuttiPersistenceImpl.java
trunk/tutti-persistence/src/main/java/fr/ifremer/tutti/persistence/TuttiPersistenceNoDbImpl.java
trunk/tutti-persistence/src/main/java/fr/ifremer/tutti/persistence/service/batch/ScientificCruiseCatchBatchValidator.java
trunk/tutti-persistence/src/test/java/fr/ifremer/tutti/persistence/service/batch/CatchBatchValidatorReadTest.java
trunk/tutti-service/src/main/java/fr/ifremer/tutti/service/PersistenceService.java
trunk/tutti-ui-swing/pom.xml
trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/TuttiApplicationUpdaterCallBack.java
trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/protocol/SelectOtherSpeciesAction.java
trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/util/TuttiCollectionUniqueKeyValidator.java
Modified: trunk/pom.xml
===================================================================
--- trunk/pom.xml 2013-02-25 19:43:58 UTC (rev 475)
+++ trunk/pom.xml 2013-02-25 20:44:07 UTC (rev 476)
@@ -213,6 +213,12 @@
<classifier>tests</classifier>
</dependency>
+ <dependency>
+ <groupId>org.apache.struts.xwork</groupId>
+ <artifactId>xwork-core</artifactId>
+ <version>2.3.7</version>
+ </dependency>
+
<!-- librairie Jaxx -->
<dependency>
<groupId>org.nuiton.jaxx</groupId>
Modified: trunk/tutti-persistence/src/main/java/fr/ifremer/tutti/persistence/TuttiPersistence.java
===================================================================
--- trunk/tutti-persistence/src/main/java/fr/ifremer/tutti/persistence/TuttiPersistence.java 2013-02-25 19:43:58 UTC (rev 475)
+++ trunk/tutti-persistence/src/main/java/fr/ifremer/tutti/persistence/TuttiPersistence.java 2013-02-25 20:44:07 UTC (rev 476)
@@ -44,6 +44,8 @@
import fr.ifremer.tutti.persistence.entities.referential.Species;
import fr.ifremer.tutti.persistence.entities.referential.Vessel;
import fr.ifremer.tutti.persistence.entities.referential.Zone;
+import org.hibernate.event.EvictEvent;
+import org.springframework.cache.annotation.CacheEvict;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
@@ -63,6 +65,12 @@
String getImplementationName();
+ /**
+ * To clear all caches.
+ * @since 1.0.1
+ */
+ void clearAllCaches();
+
//------------------------------------------------------------------------//
//-- Referential methods --//
//------------------------------------------------------------------------//
Modified: trunk/tutti-persistence/src/main/java/fr/ifremer/tutti/persistence/TuttiPersistenceImpl.java
===================================================================
--- trunk/tutti-persistence/src/main/java/fr/ifremer/tutti/persistence/TuttiPersistenceImpl.java 2013-02-25 19:43:58 UTC (rev 475)
+++ trunk/tutti-persistence/src/main/java/fr/ifremer/tutti/persistence/TuttiPersistenceImpl.java 2013-02-25 20:44:07 UTC (rev 476)
@@ -27,6 +27,7 @@
import com.google.common.collect.Maps;
import fr.ifremer.adagio.core.dao.data.batch.validator.CatchBatchValidationException;
+import fr.ifremer.adagio.core.service.technical.CacheService;
import fr.ifremer.tutti.persistence.entities.data.AccidentalBatch;
import fr.ifremer.tutti.persistence.entities.data.BenthosBatch;
import fr.ifremer.tutti.persistence.entities.data.CatchBatch;
@@ -112,12 +113,20 @@
@Autowired
protected ProtocolPersistenceService protocolService;
+ @Autowired
+ protected CacheService cacheService;
+
@Override
public String getImplementationName() {
return "Persistence Adagio implementation";
}
@Override
+ public void clearAllCaches() {
+ cacheService.clearAllCaches();
+ }
+
+ @Override
public void init() {
if (log.isInfoEnabled()) {
log.info("Open persistence driver " + getImplementationName());
Modified: trunk/tutti-persistence/src/main/java/fr/ifremer/tutti/persistence/TuttiPersistenceNoDbImpl.java
===================================================================
--- trunk/tutti-persistence/src/main/java/fr/ifremer/tutti/persistence/TuttiPersistenceNoDbImpl.java 2013-02-25 19:43:58 UTC (rev 475)
+++ trunk/tutti-persistence/src/main/java/fr/ifremer/tutti/persistence/TuttiPersistenceNoDbImpl.java 2013-02-25 20:44:07 UTC (rev 476)
@@ -62,6 +62,11 @@
}
@Override
+ public void clearAllCaches() {
+ throw new RuntimeException("method not implemented");
+ }
+
+ @Override
public List<Zone> getAllProgramZone() {
throw new RuntimeException("method not implemented");
}
Modified: trunk/tutti-persistence/src/main/java/fr/ifremer/tutti/persistence/service/batch/ScientificCruiseCatchBatchValidator.java
===================================================================
--- trunk/tutti-persistence/src/main/java/fr/ifremer/tutti/persistence/service/batch/ScientificCruiseCatchBatchValidator.java 2013-02-25 19:43:58 UTC (rev 475)
+++ trunk/tutti-persistence/src/main/java/fr/ifremer/tutti/persistence/service/batch/ScientificCruiseCatchBatchValidator.java 2013-02-25 20:44:07 UTC (rev 476)
@@ -1,253 +1,278 @@
-package fr.ifremer.tutti.persistence.service.batch;
-
-import static org.nuiton.i18n.I18n._;
-
-import java.util.Collection;
-import java.util.HashSet;
-import java.util.Iterator;
-import java.util.List;
-
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.dao.DataIntegrityViolationException;
-import org.springframework.stereotype.Component;
-
-import com.google.common.base.Preconditions;
-import com.google.common.collect.Lists;
-import com.google.common.collect.Sets;
-
-import fr.ifremer.adagio.core.dao.data.batch.Batch;
-import fr.ifremer.adagio.core.dao.data.batch.CatchBatch;
-import fr.ifremer.adagio.core.dao.data.batch.CatchBatchExtendDao;
-import fr.ifremer.adagio.core.dao.data.batch.SortingBatch;
-import fr.ifremer.adagio.core.dao.data.batch.validator.CatchBatchQuickFix;
-import fr.ifremer.adagio.core.dao.data.batch.validator.CatchBatchValidationError;
-import fr.ifremer.adagio.core.dao.data.batch.validator.CatchBatchValidator;
-import fr.ifremer.adagio.core.dao.data.measure.SortingMeasurement;
-import fr.ifremer.tutti.persistence.service.BatchPersistenceService;
-import fr.ifremer.tutti.persistence.service.ReferentialPersistenceService;
-import fr.ifremer.tutti.persistence.service.TuttiEnumerationFile;
-
-@Component(value = "scientificCruiseCatchBatchValidator")
-public class ScientificCruiseCatchBatchValidator implements CatchBatchValidator {
-
- /** Logger. */
- private static final Log log =
- LogFactory.getLog(ScientificCruiseCatchBatchValidator.class);
-
- @Autowired
- protected BatchPersistenceService batchService;
-
- @Autowired
- protected ReferentialPersistenceService referentialService;
-
- @Autowired
- protected CatchBatchExtendDao catchBatchDao;
-
- @Autowired
- protected TuttiEnumerationFile enumeration;
-
- public ScientificCruiseCatchBatchValidator() {
- }
-
- @Override
- public boolean isEnable(fr.ifremer.adagio.core.dao.data.batch.CatchBatch catchBatch) {
- // Apply validation only on catch batch for fishingOperation
- return (catchBatch.getFishingOperation() != null);
- }
-
- @Override
- public List<CatchBatchValidationError> validate(fr.ifremer.adagio.core.dao.data.batch.CatchBatch catchBatch) {
- List<CatchBatchValidationError> errors = Lists.newArrayList();
- validate(catchBatch.getChildBatchs(), errors, 1);
- return errors;
- }
-
- // ------------------------------------------------------------------------//
- // -- Internal methods --//
- // ------------------------------------------------------------------------//
-
- protected void validate(Collection<Batch> batchs, List<CatchBatchValidationError> errors, int treeLevel) {
-
- // Vrac
- SortingBatch vracBatch = catchBatchDao.getSortingBatch(batchs,
- "pmfmId", enumeration.PMFM_ID_SORTED_UNSORTED, enumeration.QUALITATIVE_VRAC_ID);
- if (vracBatch == null) {
- addError(errors, "tutti.persistence.batch.validation.vracNotFound", null);
- } else {
- // Vrac > Species
- SortingBatch speciesBatch = catchBatchDao.getSortingBatch(vracBatch.getChildBatchs(),
- "pmfmId", enumeration.PMFM_ID_SORTING_TYPE,
- enumeration.QUALITATIVE_ID_SORTING_TYPE_SPECIES);
- if (speciesBatch == null) {
- addError(errors, "tutti.persistence.batch.validation.vracSpeciesNotFound", null);
- } else {
- // Vrac > Species > Inert
- SortingBatch inertBatch = catchBatchDao.getSortingBatch(speciesBatch.getChildBatchs(),
- "referenceTaxonId", enumeration.REFERENCE_TAXON_ID_INERT);
- if (inertBatch == null) {
- addWarning(errors, "tutti.persistence.batch.validation.vracSpeciesInertNotFound");
- }
-
- // Vrac > Species > Alive no itemized
- SortingBatch livingNotItemizedBatch = catchBatchDao.getSortingBatch(speciesBatch.getChildBatchs(),
- "referenceTaxonId", enumeration.REFERENCE_TAXON_ID_LIFE);
- if (livingNotItemizedBatch == null) {
- addWarning(errors, "tutti.persistence.batch.validation.vracSpeciesLifeNotFound");
- }
- }
-
- // TODO : Benthos, Plancton...
- }
-
- // Hors Vrac
- SortingBatch horsVracBatch = catchBatchDao.getSortingBatch(batchs,
- "pmfmId", enumeration.PMFM_ID_SORTED_UNSORTED,
- enumeration.QUALITATIVE_HORS_VRAC_ID);
- if (horsVracBatch == null) {
- addWarning(errors, "tutti.persistence.batch.validation.horsVracSpeciesNotFound");
- } else {
- // Hors Vrac > Species
- SortingBatch speciesBatch = catchBatchDao.getSortingBatch(horsVracBatch.getChildBatchs(),
- "pmfmId", enumeration.PMFM_ID_SORTING_TYPE,
- enumeration.QUALITATIVE_ID_SORTING_TYPE_SPECIES);
- if (speciesBatch == null) {
- addWarning(errors, "tutti.persistence.batch.validation.horsVracSpeciesNotFound");
- }
-
- // TODO : Benthos, Plancton...
- }
-
- // Unsorted
- SortingBatch unsortedBatch = catchBatchDao.getSortingBatch(batchs,
- "pmfmId", enumeration.PMFM_ID_SORTED_UNSORTED,
- enumeration.QUALITATIVE_UNSORTED_ID);
- if (unsortedBatch == null) {
- addWarning(errors, "tutti.persistence.batch.validation.unsortedNotFound");
- }
-
- // May be, the tree is an old structure
- if (vracBatch == null && horsVracBatch == null && unsortedBatch == null) {
- boolean allBatchHasSpecies = true;
- boolean allBatchHasVrac = true;
- boolean someBatchHasSortingMeasurement = false;
- for (Iterator<Batch> iterator = batchs.iterator(); iterator.hasNext();) {
- SortingBatch batch = (SortingBatch) iterator.next();
- if (allBatchHasSpecies && batch.getReferenceTaxon() == null) {
- allBatchHasSpecies = false;
- break;
- }
- if (allBatchHasVrac && batch.getSortingMeasurements() != null) {
- if (batch.getSortingMeasurements().size() > 1) {
- allBatchHasVrac = false;
- someBatchHasSortingMeasurement = true;
- }
- else if (batch.getSortingMeasurements().size() == 1) {
- someBatchHasSortingMeasurement = true;
- SortingMeasurement sm = batch.getSortingMeasurements().iterator().next();
- if (enumeration.PMFM_ID_SORTED_UNSORTED.equals(sm.getPmfm().getId()) == false
- || sm.getQualitativeValue() == null
- || enumeration.QUALITATIVE_VRAC_ID.equals(sm.getQualitativeValue().getId()) == false) {
- allBatchHasVrac = false;
- }
- }
- }
- }
- if (allBatchHasSpecies && !someBatchHasSortingMeasurement) {
- errors.clear();
- addError(errors, "tutti.persistence.batch.validation.onlySpeciesBatchStructure", new CatchBatchQuickFix() {
- @Override
- public CatchBatch repair(CatchBatch catchBatch) {
- return ScientificCruiseCatchBatchValidator.this.repairHistoricalData(catchBatch, false);
- }
- });
- }
- else if (allBatchHasSpecies && someBatchHasSortingMeasurement && allBatchHasVrac) {
- errors.clear();
- addError(errors, "tutti.persistence.batch.validation.onlySpeciesBatchStructure", new CatchBatchQuickFix() {
- @Override
- public CatchBatch repair(CatchBatch catchBatch) {
- return ScientificCruiseCatchBatchValidator.this.repairHistoricalData(catchBatch, true);
- }
- });
- }
- }
- }
-
- /**
- * Repair tree batch, when only species have been found under the cacth batch.
- * This append typically with CGFS cruise.
- * @param catchBatch
- * @return
- */
- protected CatchBatch repairHistoricalData(CatchBatch catchBatch, boolean batchHasVracSortingMeasurement) {
- Preconditions.checkNotNull(catchBatch);
- Preconditions.checkNotNull(catchBatch.getId());
- Preconditions.checkNotNull(catchBatch.getFishingOperation());
- Preconditions.checkNotNull(catchBatch.getFishingOperation().getId());
-
- // Copy catch batch children
- Collection<Batch> speciesBatchChilds = Sets.newHashSet();
- speciesBatchChilds.addAll(catchBatch.getChildBatchs());
- catchBatch.setChildBatchs(new HashSet<Batch>());
-
- // Clean catch batch
- batchService.cleanEntity(catchBatch, true);
-
- SortingBatch speciesBatch = catchBatchDao.getSortingBatch(catchBatch.getChildBatchs(),
- "pmfmId", enumeration.PMFM_ID_SORTED_UNSORTED, enumeration.QUALITATIVE_VRAC_ID,
- "pmfmId", enumeration.PMFM_ID_SORTING_TYPE, enumeration.QUALITATIVE_ID_SORTING_TYPE_SPECIES);
- if (speciesBatch == null) {
- throw new DataIntegrityViolationException("Invalid batch tree format. Could not retrieve 'Vrac>Species' batch.");
- }
-
- // For all species batch : set the batch 'Vrac>Species' as new parent
- for (Iterator<Batch> iterator = speciesBatchChilds.iterator(); iterator.hasNext();) {
- SortingBatch batch = (SortingBatch) iterator.next();
- batch.setParentBatch(speciesBatch);
-
- if (batchHasVracSortingMeasurement) {
- // Remove redundant 'Vrac' sorting measurement
- SortingMeasurement sm = catchBatchDao.getSortingMeasurement(batch, enumeration.PMFM_ID_SORTED_UNSORTED, null, false);
- batch.getSortingMeasurements().remove(sm);
- }
-
- batch.setExhaustiveInventory(Boolean.TRUE);
-
- // Add an offset into the rank order, because of special batchs 'Biota' (=live) and 'Inert'
- short rankOrder = (short)(batch.getRankOrder().shortValue() + 2);
- batch.setRankOrder(rankOrder);
-
- // Reset comments if set to "taxon"
- if (batch.getComments() != null && "taxon".equals(batch.getComments())) {
- batch.setComments(null);
- }
-
- speciesBatch.getChildBatchs().add(batch);
- }
-
- // Save mofidifications :
- catchBatchDao.update(catchBatch);
-
- return catchBatch;
- }
-
- protected void addError(List<CatchBatchValidationError> errors, String messageKey, CatchBatchQuickFix quickFix) {
- CatchBatchValidationError error = new CatchBatchValidationError(
- messageKey,
- _(messageKey),
- CatchBatchValidationError.GRAVITY_ERROR);
- error.setQuickFixes(Lists.newArrayList(quickFix));
- errors.add(error);
- }
-
- protected void addWarning(List<CatchBatchValidationError> errors, String messageKey) {
- CatchBatchValidationError error = new CatchBatchValidationError(
- messageKey,
- _(messageKey),
- CatchBatchValidationError.GRAVITY_WARNING);
- errors.add(error);
- }
-
-}
+package fr.ifremer.tutti.persistence.service.batch;
+
+/*
+ * #%L
+ * Tutti :: Persistence
+ * $Id$
+ * $HeadURL$
+ * %%
+ * Copyright (C) 2012 - 2013 Ifremer
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public
+ * License along with this program. If not, see
+ * <http://www.gnu.org/licenses/gpl-3.0.html>.
+ * #L%
+ */
+
+
+import static org.nuiton.i18n.I18n._;
+
+import java.util.Collection;
+import java.util.HashSet;
+import java.util.Iterator;
+import java.util.List;
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.dao.DataIntegrityViolationException;
+import org.springframework.stereotype.Component;
+
+import com.google.common.base.Preconditions;
+import com.google.common.collect.Lists;
+import com.google.common.collect.Sets;
+
+import fr.ifremer.adagio.core.dao.data.batch.Batch;
+import fr.ifremer.adagio.core.dao.data.batch.CatchBatch;
+import fr.ifremer.adagio.core.dao.data.batch.CatchBatchExtendDao;
+import fr.ifremer.adagio.core.dao.data.batch.SortingBatch;
+import fr.ifremer.adagio.core.dao.data.batch.validator.CatchBatchQuickFix;
+import fr.ifremer.adagio.core.dao.data.batch.validator.CatchBatchValidationError;
+import fr.ifremer.adagio.core.dao.data.batch.validator.CatchBatchValidator;
+import fr.ifremer.adagio.core.dao.data.measure.SortingMeasurement;
+import fr.ifremer.tutti.persistence.service.BatchPersistenceService;
+import fr.ifremer.tutti.persistence.service.ReferentialPersistenceService;
+import fr.ifremer.tutti.persistence.service.TuttiEnumerationFile;
+
+@Component(value = "scientificCruiseCatchBatchValidator")
+public class ScientificCruiseCatchBatchValidator implements CatchBatchValidator {
+
+ /** Logger. */
+ private static final Log log =
+ LogFactory.getLog(ScientificCruiseCatchBatchValidator.class);
+
+ @Autowired
+ protected BatchPersistenceService batchService;
+
+ @Autowired
+ protected ReferentialPersistenceService referentialService;
+
+ @Autowired
+ protected CatchBatchExtendDao catchBatchDao;
+
+ @Autowired
+ protected TuttiEnumerationFile enumeration;
+
+ public ScientificCruiseCatchBatchValidator() {
+ }
+
+ @Override
+ public boolean isEnable(fr.ifremer.adagio.core.dao.data.batch.CatchBatch catchBatch) {
+ // Apply validation only on catch batch for fishingOperation
+ return (catchBatch.getFishingOperation() != null);
+ }
+
+ @Override
+ public List<CatchBatchValidationError> validate(fr.ifremer.adagio.core.dao.data.batch.CatchBatch catchBatch) {
+ List<CatchBatchValidationError> errors = Lists.newArrayList();
+ validate(catchBatch.getChildBatchs(), errors, 1);
+ return errors;
+ }
+
+ // ------------------------------------------------------------------------//
+ // -- Internal methods --//
+ // ------------------------------------------------------------------------//
+
+ protected void validate(Collection<Batch> batchs, List<CatchBatchValidationError> errors, int treeLevel) {
+
+ // Vrac
+ SortingBatch vracBatch = catchBatchDao.getSortingBatch(batchs,
+ "pmfmId", enumeration.PMFM_ID_SORTED_UNSORTED, enumeration.QUALITATIVE_VRAC_ID);
+ if (vracBatch == null) {
+ addError(errors, "tutti.persistence.batch.validation.vracNotFound", null);
+ } else {
+ // Vrac > Species
+ SortingBatch speciesBatch = catchBatchDao.getSortingBatch(vracBatch.getChildBatchs(),
+ "pmfmId", enumeration.PMFM_ID_SORTING_TYPE,
+ enumeration.QUALITATIVE_ID_SORTING_TYPE_SPECIES);
+ if (speciesBatch == null) {
+ addError(errors, "tutti.persistence.batch.validation.vracSpeciesNotFound", null);
+ } else {
+ // Vrac > Species > Inert
+ SortingBatch inertBatch = catchBatchDao.getSortingBatch(speciesBatch.getChildBatchs(),
+ "referenceTaxonId", enumeration.REFERENCE_TAXON_ID_INERT);
+ if (inertBatch == null) {
+ addWarning(errors, "tutti.persistence.batch.validation.vracSpeciesInertNotFound");
+ }
+
+ // Vrac > Species > Alive no itemized
+ SortingBatch livingNotItemizedBatch = catchBatchDao.getSortingBatch(speciesBatch.getChildBatchs(),
+ "referenceTaxonId", enumeration.REFERENCE_TAXON_ID_LIFE);
+ if (livingNotItemizedBatch == null) {
+ addWarning(errors, "tutti.persistence.batch.validation.vracSpeciesLifeNotFound");
+ }
+ }
+
+ // TODO : Benthos, Plancton...
+ }
+
+ // Hors Vrac
+ SortingBatch horsVracBatch = catchBatchDao.getSortingBatch(batchs,
+ "pmfmId", enumeration.PMFM_ID_SORTED_UNSORTED,
+ enumeration.QUALITATIVE_HORS_VRAC_ID);
+ if (horsVracBatch == null) {
+ addWarning(errors, "tutti.persistence.batch.validation.horsVracSpeciesNotFound");
+ } else {
+ // Hors Vrac > Species
+ SortingBatch speciesBatch = catchBatchDao.getSortingBatch(horsVracBatch.getChildBatchs(),
+ "pmfmId", enumeration.PMFM_ID_SORTING_TYPE,
+ enumeration.QUALITATIVE_ID_SORTING_TYPE_SPECIES);
+ if (speciesBatch == null) {
+ addWarning(errors, "tutti.persistence.batch.validation.horsVracSpeciesNotFound");
+ }
+
+ // TODO : Benthos, Plancton...
+ }
+
+ // Unsorted
+ SortingBatch unsortedBatch = catchBatchDao.getSortingBatch(batchs,
+ "pmfmId", enumeration.PMFM_ID_SORTED_UNSORTED,
+ enumeration.QUALITATIVE_UNSORTED_ID);
+ if (unsortedBatch == null) {
+ addWarning(errors, "tutti.persistence.batch.validation.unsortedNotFound");
+ }
+
+ // May be, the tree is an old structure
+ if (vracBatch == null && horsVracBatch == null && unsortedBatch == null) {
+ boolean allBatchHasSpecies = true;
+ boolean allBatchHasVrac = true;
+ boolean someBatchHasSortingMeasurement = false;
+ for (Iterator<Batch> iterator = batchs.iterator(); iterator.hasNext();) {
+ SortingBatch batch = (SortingBatch) iterator.next();
+ if (allBatchHasSpecies && batch.getReferenceTaxon() == null) {
+ allBatchHasSpecies = false;
+ break;
+ }
+ if (allBatchHasVrac && batch.getSortingMeasurements() != null) {
+ if (batch.getSortingMeasurements().size() > 1) {
+ allBatchHasVrac = false;
+ someBatchHasSortingMeasurement = true;
+ }
+ else if (batch.getSortingMeasurements().size() == 1) {
+ someBatchHasSortingMeasurement = true;
+ SortingMeasurement sm = batch.getSortingMeasurements().iterator().next();
+ if (enumeration.PMFM_ID_SORTED_UNSORTED.equals(sm.getPmfm().getId()) == false
+ || sm.getQualitativeValue() == null
+ || enumeration.QUALITATIVE_VRAC_ID.equals(sm.getQualitativeValue().getId()) == false) {
+ allBatchHasVrac = false;
+ }
+ }
+ }
+ }
+ if (allBatchHasSpecies && !someBatchHasSortingMeasurement) {
+ errors.clear();
+ addError(errors, "tutti.persistence.batch.validation.onlySpeciesBatchStructure", new CatchBatchQuickFix() {
+ @Override
+ public CatchBatch repair(CatchBatch catchBatch) {
+ return ScientificCruiseCatchBatchValidator.this.repairHistoricalData(catchBatch, false);
+ }
+ });
+ }
+ else if (allBatchHasSpecies && someBatchHasSortingMeasurement && allBatchHasVrac) {
+ errors.clear();
+ addError(errors, "tutti.persistence.batch.validation.onlySpeciesBatchStructure", new CatchBatchQuickFix() {
+ @Override
+ public CatchBatch repair(CatchBatch catchBatch) {
+ return ScientificCruiseCatchBatchValidator.this.repairHistoricalData(catchBatch, true);
+ }
+ });
+ }
+ }
+ }
+
+ /**
+ * Repair tree batch, when only species have been found under the cacth batch.
+ * This append typically with CGFS cruise.
+ * @param catchBatch
+ * @return
+ */
+ protected CatchBatch repairHistoricalData(CatchBatch catchBatch, boolean batchHasVracSortingMeasurement) {
+ Preconditions.checkNotNull(catchBatch);
+ Preconditions.checkNotNull(catchBatch.getId());
+ Preconditions.checkNotNull(catchBatch.getFishingOperation());
+ Preconditions.checkNotNull(catchBatch.getFishingOperation().getId());
+
+ // Copy catch batch children
+ Collection<Batch> speciesBatchChilds = Sets.newHashSet();
+ speciesBatchChilds.addAll(catchBatch.getChildBatchs());
+ catchBatch.setChildBatchs(new HashSet<Batch>());
+
+ // Clean catch batch
+ batchService.cleanEntity(catchBatch, true);
+
+ SortingBatch speciesBatch = catchBatchDao.getSortingBatch(catchBatch.getChildBatchs(),
+ "pmfmId", enumeration.PMFM_ID_SORTED_UNSORTED, enumeration.QUALITATIVE_VRAC_ID,
+ "pmfmId", enumeration.PMFM_ID_SORTING_TYPE, enumeration.QUALITATIVE_ID_SORTING_TYPE_SPECIES);
+ if (speciesBatch == null) {
+ throw new DataIntegrityViolationException("Invalid batch tree format. Could not retrieve 'Vrac>Species' batch.");
+ }
+
+ // For all species batch : set the batch 'Vrac>Species' as new parent
+ for (Iterator<Batch> iterator = speciesBatchChilds.iterator(); iterator.hasNext();) {
+ SortingBatch batch = (SortingBatch) iterator.next();
+ batch.setParentBatch(speciesBatch);
+
+ if (batchHasVracSortingMeasurement) {
+ // Remove redundant 'Vrac' sorting measurement
+ SortingMeasurement sm = catchBatchDao.getSortingMeasurement(batch, enumeration.PMFM_ID_SORTED_UNSORTED, null, false);
+ batch.getSortingMeasurements().remove(sm);
+ }
+
+ batch.setExhaustiveInventory(Boolean.TRUE);
+
+ // Add an offset into the rank order, because of special batchs 'Biota' (=live) and 'Inert'
+ short rankOrder = (short)(batch.getRankOrder().shortValue() + 2);
+ batch.setRankOrder(rankOrder);
+
+ // Reset comments if set to "taxon"
+ if (batch.getComments() != null && "taxon".equals(batch.getComments())) {
+ batch.setComments(null);
+ }
+
+ speciesBatch.getChildBatchs().add(batch);
+ }
+
+ // Save mofidifications :
+ catchBatchDao.update(catchBatch);
+
+ return catchBatch;
+ }
+
+ protected void addError(List<CatchBatchValidationError> errors, String messageKey, CatchBatchQuickFix quickFix) {
+ CatchBatchValidationError error = new CatchBatchValidationError(
+ messageKey,
+ _(messageKey),
+ CatchBatchValidationError.GRAVITY_ERROR);
+ error.setQuickFixes(Lists.newArrayList(quickFix));
+ errors.add(error);
+ }
+
+ protected void addWarning(List<CatchBatchValidationError> errors, String messageKey) {
+ CatchBatchValidationError error = new CatchBatchValidationError(
+ messageKey,
+ _(messageKey),
+ CatchBatchValidationError.GRAVITY_WARNING);
+ errors.add(error);
+ }
+
+}
Property changes on: trunk/tutti-persistence/src/main/java/fr/ifremer/tutti/persistence/service/batch/ScientificCruiseCatchBatchValidator.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Modified: trunk/tutti-persistence/src/test/java/fr/ifremer/tutti/persistence/service/batch/CatchBatchValidatorReadTest.java
===================================================================
--- trunk/tutti-persistence/src/test/java/fr/ifremer/tutti/persistence/service/batch/CatchBatchValidatorReadTest.java 2013-02-25 19:43:58 UTC (rev 475)
+++ trunk/tutti-persistence/src/test/java/fr/ifremer/tutti/persistence/service/batch/CatchBatchValidatorReadTest.java 2013-02-25 20:44:07 UTC (rev 476)
@@ -1,121 +1,121 @@
-package fr.ifremer.tutti.persistence.service.batch;
-
-import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertTrue;
-
-import java.util.Collection;
-import java.util.List;
-
-import org.jmock.Expectations;
-import org.jmock.Mockery;
-import org.jmock.api.Invocation;
-import org.jmock.integration.junit4.JUnit4Mockery;
-import org.jmock.lib.action.CustomAction;
-import org.junit.Assert;
-import org.junit.Before;
-import org.junit.ClassRule;
-import org.junit.Ignore;
-import org.junit.Test;
-import org.springframework.beans.factory.annotation.Autowired;
-
-import fr.ifremer.adagio.core.dao.data.batch.CatchBatchExtendDao;
-import fr.ifremer.adagio.core.dao.data.batch.validator.CatchBatchValidationException;
-import fr.ifremer.adagio.core.service.ServiceLocator;
-import fr.ifremer.tutti.persistence.DatabaseResource;
-import fr.ifremer.tutti.persistence.entities.data.CatchBatch;
-import fr.ifremer.tutti.persistence.entities.data.FishingOperation;
-import fr.ifremer.tutti.persistence.service.BatchPersistenceService;
-import fr.ifremer.tutti.persistence.service.CatchBatchPersistenceService;
-import fr.ifremer.tutti.persistence.service.CruisePersistenceService;
-import fr.ifremer.tutti.persistence.service.FishingOperationPersistenceService;
-import fr.ifremer.tutti.persistence.service.ReferentialPersistenceService;
-import fr.ifremer.tutti.persistence.service.TuttiPersistenceServiceLocator;
-
-public class CatchBatchValidatorReadTest {
-
- @ClassRule
- public static final DatabaseResource dbResource = DatabaseResource.writeDb();
-
- protected BatchPersistenceService service;
-
- protected CruisePersistenceService cruiseService;
-
- protected FishingOperationPersistenceService fishingOperationService;
-
- protected CatchBatchPersistenceService catchBatchService;
-
- protected ReferentialPersistenceService referentialService;
-
- Mockery context ;
-
- CatchBatchExtendDao catchBatchExtendDaoMock;
-
- String fishingOperationId = null;
-
- CatchBatchExtendDao catchBatchDao;
-
- @Before
- public void setUp() throws Exception {
- context = new JUnit4Mockery();
- catchBatchExtendDaoMock = context.mock(CatchBatchExtendDao.class);
- catchBatchDao=ServiceLocator.instance().getService("catchBatchDao", CatchBatchExtendDao.class);
-
- service = TuttiPersistenceServiceLocator.getBatchPersistenceService();
- cruiseService = TuttiPersistenceServiceLocator.getCruisePersistenceService();
- fishingOperationService = TuttiPersistenceServiceLocator.getFishingOperationPersistenceService();
- catchBatchService = TuttiPersistenceServiceLocator.getCatchBatchPersistenceService();
- referentialService = TuttiPersistenceServiceLocator.getReferentialPersistenceService();
-
- List<FishingOperation> fishingOperations = fishingOperationService.getAllFishingOperation(dbResource.getFixtures().cruiseId());
- assertNotNull(fishingOperations);
- assertTrue(fishingOperations.size() > 0);
- fishingOperationId = fishingOperations.get(0).getId();
- }
-
- @Test
- @Ignore
- public void getInvalidCatchBatch() {
-
- // Full load operation
- try {
- CatchBatch catchBatch = service.getCatchBatchFromFishingOperation(fishingOperationId);
- Assert.fail("Historical batch tree must not be valid");
- } catch (CatchBatchValidationException e) {
- assertNotNull(e);
- }
- }
-
- @Test
- @Ignore
- public void getInvalidCatchBatchButTryRepair() throws CatchBatchValidationException {
-
- // Replace catchBatchDao with a mock :
- //service.setCatchBatchDao(catchBatchExtendDaoMock);
-
- context.checking(new Expectations() {{
- // Assert update() is call once
- //oneOf (catchBatchExtendDaoMock).update(with(any(fr.ifremer.adagio.core.dao.data.batch.CatchBatch.class)));
-
- // Delegate other methods to the real DAO
- allowing(catchBatchExtendDaoMock);
- will(new CustomAction("call delegated catchBatchDao") {
- @Override
- public Object invoke(Invocation invocation) throws Throwable {
- return invocation.applyTo(catchBatchDao);
- }
- });
- }});
-
- CatchBatch catchBatch = null;
- try {
- catchBatch = service.getCatchBatchFromFishingOperation(fishingOperationId, true/*tryToRepair*/);
- assertNotNull(catchBatch);
- } catch (CatchBatchValidationException e) {
- Assert.fail("Historical batch tree must have been repaired");
- }
- context.assertIsSatisfied();
-
- // Restore original dao
- //service.setCatchBatchDao(catchBatchDao);
- }
-}
+package fr.ifremer.tutti.persistence.service.batch;
+
+import static org.junit.Assert.assertNotNull;
+import static org.junit.Assert.assertTrue;
+
+import java.util.Collection;
+import java.util.List;
+
+import org.jmock.Expectations;
+import org.jmock.Mockery;
+import org.jmock.api.Invocation;
+import org.jmock.integration.junit4.JUnit4Mockery;
+import org.jmock.lib.action.CustomAction;
+import org.junit.Assert;
+import org.junit.Before;
+import org.junit.ClassRule;
+import org.junit.Ignore;
+import org.junit.Test;
+import org.springframework.beans.factory.annotation.Autowired;
+
+import fr.ifremer.adagio.core.dao.data.batch.CatchBatchExtendDao;
+import fr.ifremer.adagio.core.dao.data.batch.validator.CatchBatchValidationException;
+import fr.ifremer.adagio.core.service.ServiceLocator;
+import fr.ifremer.tutti.persistence.DatabaseResource;
+import fr.ifremer.tutti.persistence.entities.data.CatchBatch;
+import fr.ifremer.tutti.persistence.entities.data.FishingOperation;
+import fr.ifremer.tutti.persistence.service.BatchPersistenceService;
+import fr.ifremer.tutti.persistence.service.CatchBatchPersistenceService;
+import fr.ifremer.tutti.persistence.service.CruisePersistenceService;
+import fr.ifremer.tutti.persistence.service.FishingOperationPersistenceService;
+import fr.ifremer.tutti.persistence.service.ReferentialPersistenceService;
+import fr.ifremer.tutti.persistence.service.TuttiPersistenceServiceLocator;
+
+public class CatchBatchValidatorReadTest {
+
+ @ClassRule
+ public static final DatabaseResource dbResource = DatabaseResource.writeDb();
+
+ protected BatchPersistenceService service;
+
+ protected CruisePersistenceService cruiseService;
+
+ protected FishingOperationPersistenceService fishingOperationService;
+
+ protected CatchBatchPersistenceService catchBatchService;
+
+ protected ReferentialPersistenceService referentialService;
+
+ Mockery context ;
+
+ CatchBatchExtendDao catchBatchExtendDaoMock;
+
+ String fishingOperationId = null;
+
+ CatchBatchExtendDao catchBatchDao;
+
+ @Before
+ public void setUp() throws Exception {
+ context = new JUnit4Mockery();
+ catchBatchExtendDaoMock = context.mock(CatchBatchExtendDao.class);
+ catchBatchDao=ServiceLocator.instance().getService("catchBatchDao", CatchBatchExtendDao.class);
+
+ service = TuttiPersistenceServiceLocator.getBatchPersistenceService();
+ cruiseService = TuttiPersistenceServiceLocator.getCruisePersistenceService();
+ fishingOperationService = TuttiPersistenceServiceLocator.getFishingOperationPersistenceService();
+ catchBatchService = TuttiPersistenceServiceLocator.getCatchBatchPersistenceService();
+ referentialService = TuttiPersistenceServiceLocator.getReferentialPersistenceService();
+
+ List<FishingOperation> fishingOperations = fishingOperationService.getAllFishingOperation(dbResource.getFixtures().cruiseId());
+ assertNotNull(fishingOperations);
+ assertTrue(fishingOperations.size() > 0);
+ fishingOperationId = fishingOperations.get(0).getId();
+ }
+
+ @Test
+ @Ignore
+ public void getInvalidCatchBatch() {
+
+ // Full load operation
+ try {
+ CatchBatch catchBatch = service.getCatchBatchFromFishingOperation(fishingOperationId);
+ Assert.fail("Historical batch tree must not be valid");
+ } catch (CatchBatchValidationException e) {
+ assertNotNull(e);
+ }
+ }
+
+ @Test
+ @Ignore
+ public void getInvalidCatchBatchButTryRepair() throws CatchBatchValidationException {
+
+ // Replace catchBatchDao with a mock :
+ //service.setCatchBatchDao(catchBatchExtendDaoMock);
+
+ context.checking(new Expectations() {{
+ // Assert update() is call once
+ //oneOf (catchBatchExtendDaoMock).update(with(any(fr.ifremer.adagio.core.dao.data.batch.CatchBatch.class)));
+
+ // Delegate other methods to the real DAO
+ allowing(catchBatchExtendDaoMock);
+ will(new CustomAction("call delegated catchBatchDao") {
+ @Override
+ public Object invoke(Invocation invocation) throws Throwable {
+ return invocation.applyTo(catchBatchDao);
+ }
+ });
+ }});
+
+ CatchBatch catchBatch = null;
+ try {
+ catchBatch = service.getCatchBatchFromFishingOperation(fishingOperationId, true/*tryToRepair*/);
+ assertNotNull(catchBatch);
+ } catch (CatchBatchValidationException e) {
+ Assert.fail("Historical batch tree must have been repaired");
+ }
+ context.assertIsSatisfied();
+
+ // Restore original dao
+ //service.setCatchBatchDao(catchBatchDao);
+ }
+}
Property changes on: trunk/tutti-persistence/src/test/java/fr/ifremer/tutti/persistence/service/batch/CatchBatchValidatorReadTest.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Modified: trunk/tutti-service/src/main/java/fr/ifremer/tutti/service/PersistenceService.java
===================================================================
--- trunk/tutti-service/src/main/java/fr/ifremer/tutti/service/PersistenceService.java 2013-02-25 19:43:58 UTC (rev 475)
+++ trunk/tutti-service/src/main/java/fr/ifremer/tutti/service/PersistenceService.java 2013-02-25 20:44:07 UTC (rev 476)
@@ -85,6 +85,11 @@
return "Tutti Persistence Service";
}
+ @Override
+ public void clearAllCaches() {
+ driver.clearAllCaches();
+ }
+
public boolean isDbLoaded() {
return !(driver instanceof TuttiPersistenceNoDbImpl);
}
Modified: trunk/tutti-ui-swing/pom.xml
===================================================================
--- trunk/tutti-ui-swing/pom.xml 2013-02-25 19:43:58 UTC (rev 475)
+++ trunk/tutti-ui-swing/pom.xml 2013-02-25 20:44:07 UTC (rev 476)
@@ -287,6 +287,11 @@
<classifier>tests</classifier>
</dependency>
+ <dependency>
+ <groupId>org.apache.struts.xwork</groupId>
+ <artifactId>xwork-core</artifactId>
+ </dependency>
+
<!-- librairie Jaxx -->
<dependency>
<groupId>org.nuiton.jaxx</groupId>
Modified: trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/TuttiApplicationUpdaterCallBack.java
===================================================================
--- trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/TuttiApplicationUpdaterCallBack.java 2013-02-25 19:43:58 UTC (rev 475)
+++ trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/TuttiApplicationUpdaterCallBack.java 2013-02-25 20:44:07 UTC (rev 476)
@@ -29,6 +29,7 @@
import com.google.common.collect.Maps;
import fr.ifremer.tutti.persistence.ProgressionModel;
import fr.ifremer.tutti.persistence.service.synchro.ReferentialSynchronizeResult;
+import fr.ifremer.tutti.service.PersistenceService;
import fr.ifremer.tutti.service.TuttiTechnicalException;
import fr.ifremer.tutti.service.referential.TuttiReferentialSynchronizeService;
import fr.ifremer.tutti.ui.swing.util.action.TuttiActionUI;
@@ -103,11 +104,7 @@
if (types.contains(UpdateType.DB)) {
ApplicationUpdater.ApplicationInfo info = getInfo(UpdateType.DB, result);
- if (info == null) {
- dbUpdated = false;
- } else {
- dbUpdated = true;
- }
+ dbUpdated = info != null;
}
return result;
}
@@ -322,5 +319,28 @@
}
service.synchronize(dbDirectory, result);
+
+ if (!result.isSuccess()) {
+ throw new TuttiTechnicalException("Could not synchro db", result.getError());
+ }
+
+ // reset cache
+ if (log.isInfoEnabled()) {
+ log.info("Reset all caches.");
+ }
+ PersistenceService persistence = context.getService(PersistenceService.class);
+ persistence.clearAllCaches();
+
+ // replace the version.appup file content
+ File target = context.getConfig().getServiceConfig().getPersistenceConfig().getDbDirectory();
+ File versionFile = new File(target, ApplicationUpdater.VERSION_FILE);
+ if (log.isInfoEnabled()) {
+ log.info("Replace content of file " + versionFile + " with " + info.newVersion);
+ }
+ try {
+ FileUtils.writeStringToFile(versionFile, info.newVersion);
+ } catch (IOException e) {
+ throw new TuttiTechnicalException("Could not write back new db version to file " + versionFile);
+ }
}
}
Modified: trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/protocol/SelectOtherSpeciesAction.java
===================================================================
--- trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/protocol/SelectOtherSpeciesAction.java 2013-02-25 19:43:58 UTC (rev 475)
+++ trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/protocol/SelectOtherSpeciesAction.java 2013-02-25 20:44:07 UTC (rev 476)
@@ -1,6 +1,30 @@
package fr.ifremer.tutti.ui.swing.content.protocol;
+/*
+ * #%L
+ * Tutti :: UI
+ * $Id$
+ * $HeadURL$
+ * %%
+ * Copyright (C) 2012 - 2013 Ifremer
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public
+ * License along with this program. If not, see
+ * <http://www.gnu.org/licenses/gpl-3.0.html>.
+ * #L%
+ */
+
import com.google.common.collect.Lists;
import fr.ifremer.tutti.persistence.entities.referential.Species;
import fr.ifremer.tutti.ui.swing.AbstractTuttiAction;
Modified: trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/util/TuttiCollectionUniqueKeyValidator.java
===================================================================
--- trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/util/TuttiCollectionUniqueKeyValidator.java 2013-02-25 19:43:58 UTC (rev 475)
+++ trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/util/TuttiCollectionUniqueKeyValidator.java 2013-02-25 20:44:07 UTC (rev 476)
@@ -1,5 +1,29 @@
package fr.ifremer.tutti.ui.swing.util;
+/*
+ * #%L
+ * Tutti :: UI
+ * $Id$
+ * $HeadURL$
+ * %%
+ * Copyright (C) 2012 - 2013 Ifremer
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public
+ * License along with this program. If not, see
+ * <http://www.gnu.org/licenses/gpl-3.0.html>.
+ * #L%
+ */
+
import com.opensymphony.xwork2.validator.ValidationException;
import org.nuiton.validator.xwork2.field.CollectionUniqueKeyValidator;
Property changes on: trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/util/TuttiCollectionUniqueKeyValidator.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ Author Date Id Revision HeadURL
1
0
r475 - trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing
by tchemit@users.forge.codelutin.com Feb. 25, 2013
by tchemit@users.forge.codelutin.com Feb. 25, 2013
Feb. 25, 2013
Author: tchemit
Date: 2013-02-25 20:43:58 +0100 (Mon, 25 Feb 2013)
New Revision: 475
Url: http://forge.codelutin.com/projects/tutti/repository/revisions/475
Log:
fixes #2055: [TECH] Des erreurs se produisent sur les interfaces graphiques
Modified:
trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/TuttiExceptionHandler.java
Modified: trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/TuttiExceptionHandler.java
===================================================================
--- trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/TuttiExceptionHandler.java 2013-02-25 19:02:00 UTC (rev 474)
+++ trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/TuttiExceptionHandler.java 2013-02-25 19:43:58 UTC (rev 475)
@@ -78,6 +78,28 @@
Throwable cause = ex;
+ if (cause instanceof NullPointerException) {
+
+ // See http://forge.codelutin.com/issues/2055
+ if (ex.getStackTrace().length > 0 &&
+ ex.getStackTrace()[0].getClassName().contains("swing.")) {
+ if (log.isWarnEnabled()) {
+ log.warn("AWT bad error (See http://forge.codelutin.com/issues/2055)", ex);
+ }
+ return;
+ }
+ }
+
+ if (cause instanceof IndexOutOfBoundsException) {
+ // See http://forge.codelutin.com/issues/2055
+ if (ex.getStackTrace().length > 0 &&
+ "convertRowIndexToModel".equals(ex.getStackTrace()[0].getMethodName())) {
+ if (log.isWarnEnabled()) {
+ log.warn("AWT bad error (See http://forge.codelutin.com/issues/2055)", ex);
+ }
+ return;
+ }
+ }
if (cause instanceof TuttiTechnicalException) {
cause = cause.getCause();
}
1
0
r474 - trunk/tutti-persistence/src/test/java/fr/ifremer/tutti/persistence/service
by tchemit@users.forge.codelutin.com Feb. 25, 2013
by tchemit@users.forge.codelutin.com Feb. 25, 2013
Feb. 25, 2013
Author: tchemit
Date: 2013-02-25 20:02:00 +0100 (Mon, 25 Feb 2013)
New Revision: 474
Url: http://forge.codelutin.com/projects/tutti/repository/revisions/474
Log:
fixes 1993: [CAPTURE] - Pas de chargement des sous-strates
Modified:
trunk/tutti-persistence/src/test/java/fr/ifremer/tutti/persistence/service/ReferentialPersistenceServiceReadTest.java
Modified: trunk/tutti-persistence/src/test/java/fr/ifremer/tutti/persistence/service/ReferentialPersistenceServiceReadTest.java
===================================================================
--- trunk/tutti-persistence/src/test/java/fr/ifremer/tutti/persistence/service/ReferentialPersistenceServiceReadTest.java 2013-02-25 17:19:33 UTC (rev 473)
+++ trunk/tutti-persistence/src/test/java/fr/ifremer/tutti/persistence/service/ReferentialPersistenceServiceReadTest.java 2013-02-25 19:02:00 UTC (rev 474)
@@ -113,11 +113,11 @@
String zoneId = dbResource.getFixtures().zoneId();
List<FishingOperationLocation> result =
service.getAllFishingOperationSubStrata(zoneId, null);
- assertResultList(result, 0);
+ assertResultList(result, 76);
// try with a strataId
String strataId = dbResource.getFixtures().strataId();
- result = service.getAllFishingOperationLocation(zoneId, strataId, null);
+ result = service.getAllFishingOperationSubStrata(zoneId, strataId);
assertResultList(result, 1);
}
1
0
See <http://ci.nuiton.org/jenkins/job/tutti/387/changes>
Changes:
[Tony Chemit] use last stable of adagio
[Kevin Morin] refs #1896 [TECH] - Gestion du multilinguisme
[Tony Chemit] fixes 2055: [TECH] Des erreurs se produisent sur les interfaces graphiques
------------------------------------------
[...truncated 259 lines...]
[INFO] --- maven-install-plugin:2.4:install (default-install) @ tutti-persistence ---
[INFO] Installing <http://ci.nuiton.org/jenkins/job/tutti/ws/trunk/tutti-persistence/target/tu…> to /var/local/maven/data/repository/fr/ifremer/tutti/tutti-persistence/1.1-SNAPSHOT/tutti-persistence-1.1-SNAPSHOT.jar
[INFO] Installing <http://ci.nuiton.org/jenkins/job/tutti/ws/trunk/tutti-persistence/pom.xml> to /var/local/maven/data/repository/fr/ifremer/tutti/tutti-persistence/1.1-SNAPSHOT/tutti-persistence-1.1-SNAPSHOT.pom
mojoSucceeded org.apache.maven.plugins:maven-install-plugin:2.4(default-install)
projectSucceeded fr.ifremer.tutti:tutti-persistence:1.1-SNAPSHOT
projectStarted fr.ifremer.tutti:tutti-service:1.1-SNAPSHOT
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Tutti :: Service 1.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] Deleting <http://ci.nuiton.org/jenkins/job/tutti/ws/trunk/tutti-service/target>
mojoStarted org.apache.maven.plugins:maven-clean-plugin:2.5(default-clean)
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ tutti-service ---
mojoSucceeded org.apache.maven.plugins:maven-clean-plugin:2.5(default-clean)
mojoStarted org.apache.maven.plugins:maven-enforcer-plugin:1.2(check-project-files)
[INFO]
[INFO] --- maven-enforcer-plugin:1.2:enforce (check-project-files) @ tutti-service ---
mojoSucceeded org.apache.maven.plugins:maven-enforcer-plugin:1.2(check-project-files)
mojoStarted org.nuiton.i18n:i18n-maven-plugin:2.5(scan-sources)
[INFO]
[INFO] --- i18n-maven-plugin:2.5:parserJava (scan-sources) @ tutti-service ---
mojoSucceeded org.nuiton.i18n:i18n-maven-plugin:2.5(scan-sources)
forkedProjectStarted fr.ifremer.tutti:tutti-service:1.1-SNAPSHOT[INFO] Copying tutti-service.properties to <http://ci.nuiton.org/jenkins/job/tutti/ws/trunk/tutti-service/target/genera…>
mojoStarted org.nuiton.i18n:i18n-maven-plugin:2.5(get)
[INFO]
[INFO] --- i18n-maven-plugin:2.5:get (get) @ tutti-service ---
mojoSucceeded org.nuiton.i18n:i18n-maven-plugin:2.5(get)
forkedProjectSucceeded fr.ifremer.tutti:tutti-service:1.1-SNAPSHOT
mojoStarted org.nuiton.i18n:i18n-maven-plugin:2.5(scan-sources)
[INFO]
[INFO] --- i18n-maven-plugin:2.5:gen (scan-sources) @ tutti-service ---
mojoSucceeded org.nuiton.i18n:i18n-maven-plugin:2.5(scan-sources)
mojoStarted org.apache.maven.plugins:maven-resources-plugin:2.6(default-resources)
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ tutti-service ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
mojoSucceeded org.apache.maven.plugins:maven-resources-plugin:2.6(default-resources)[INFO] Copying 2 resources
mojoStarted org.apache.maven.plugins:maven-compiler-plugin:2.5.1(default-compile)
[INFO]
[INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) @ tutti-service ---
[INFO] Compiling 25 source files to <http://ci.nuiton.org/jenkins/job/tutti/ws/trunk/tutti-service/target/classes>
mojoSucceeded org.apache.maven.plugins:maven-compiler-plugin:2.5.1(default-compile)
mojoStarted org.apache.maven.plugins:maven-antrun-plugin:1.7(generate-surefire-workdir)
[INFO]
[INFO] --- maven-antrun-plugin:1.7:run (generate-surefire-workdir) @ tutti-service ---
[INFO] Executing tasks
main:
[mkdir] Created dir: <http://ci.nuiton.org/jenkins/job/tutti/ws/trunk/tutti-service/target/surefi…>
[INFO] Executed tasks
mojoSucceeded org.apache.maven.plugins:maven-antrun-plugin:1.7(generate-surefire-workdir)
mojoStarted org.apache.maven.plugins:maven-resources-plugin:2.6(default-testResources)
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ tutti-service ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
mojoSucceeded org.apache.maven.plugins:maven-resources-plugin:2.6(default-testResources)
mojoStarted org.apache.maven.plugins:maven-compiler-plugin:2.5.1(default-testCompile)
[INFO]
[INFO] --- maven-compiler-plugin:2.5.1:testCompile (default-testCompile) @ tutti-service ---
[INFO] Compiling 2 source files to <http://ci.nuiton.org/jenkins/job/tutti/ws/trunk/tutti-service/target/test-c…>
mojoSucceeded org.apache.maven.plugins:maven-compiler-plugin:2.5.1(default-testCompile)
mojoStarted org.apache.maven.plugins:maven-surefire-plugin:2.13(default-test)
[INFO]
[INFO] --- maven-surefire-plugin:2.13:test (default-test) @ tutti-service ---
[INFO] Surefire report directory: <http://ci.nuiton.org/jenkins/job/tutti/ws/trunk/tutti-service/target/surefi…>
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running fr.ifremer.tutti.service.protocol.TuttiProtocolImportExportServiceTest
2013-02-25 18:10:26,814 0 [main] INFO fr.ifremer.tutti.service.protocol.TuttiProtocolImportExportService - Will export species to file: <http://ci.nuiton.org/jenkins/job/tutti/ws/trunk/tutti-service/target/surefi…>
2013-02-25 18:10:27,108 294 [main] INFO org.nuiton.util.beans.BinderFactory - No binder model found for <fr.ifremer.tutti.persistence.entities.protocol.SpeciesProtocol - fr.ifremer.tutti.service.protocol.SpeciesRow > [null] , will create a new default one.
2013-02-25 18:10:30,016 3202 [main] INFO fr.ifremer.tutti.service.protocol.TuttiProtocolImportExportService - Will export all caracteristics to file: <http://ci.nuiton.org/jenkins/job/tutti/ws/trunk/tutti-service/target/surefi…>
2013-02-25 18:10:30,146 3332 [main] INFO fr.ifremer.tutti.service.protocol.TuttiProtocolImportExportService - Will import protocol [null] species from file: <http://ci.nuiton.org/jenkins/job/tutti/ws/trunk/tutti-service/target/surefi…>
2013-02-25 18:10:30,270 3456 [main] INFO org.nuiton.util.beans.BinderFactory - No binder model found for <fr.ifremer.tutti.service.protocol.SpeciesRow - fr.ifremer.tutti.persistence.entities.protocol.SpeciesProtocol > [null] , will create a new default one.
2013-02-25 18:10:31,037 4223 [main] INFO fr.ifremer.tutti.service.protocol.TuttiProtocolImportExportService - Will export all caracteristics to file: <http://ci.nuiton.org/jenkins/job/tutti/ws/trunk/tutti-service/target/surefi…>
2013-02-25 18:10:31,069 4255 [main] INFO fr.ifremer.tutti.service.protocol.TuttiProtocolImportExportService - Will import protocol caracteristic from file: <http://ci.nuiton.org/jenkins/job/tutti/ws/trunk/tutti-service/target/surefi…>
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 7.473 sec
Running fr.ifremer.tutti.service.referential.TuttiReferentialImportExportServiceTest
2013-02-25 18:10:31,938 5124 [main] INFO org.nuiton.util.converter.ConverterUtil - register converter org.nuiton.util.converter.URLConverter@48b14117
2013-02-25 18:10:31,973 5159 [main] INFO org.nuiton.util.converter.ConverterUtil - register converter org.nuiton.util.converter.URIConverter@20b575f3
2013-02-25 18:10:32,001 5187 [main] INFO org.nuiton.util.converter.ConverterUtil - register converter org.nuiton.util.converter.VersionConverter@705f6d64
2013-02-25 18:10:32,052 5238 [main] INFO org.nuiton.util.converter.ConverterUtil - register converter org.nuiton.util.converter.LocaleConverter@60dd2471
2013-02-25 18:10:33,199 6385 [main] INFO fr.ifremer.tutti.service.PersistenceService - Open persistence driver Tutti Persistence Service
2013-02-25 18:10:33,217 6403 [main] INFO fr.ifremer.tutti.service.PersistenceService - Will open persistence driver Mock persistence service implementation
2013-02-25 18:10:33,229 6415 [main] INFO fr.ifremer.tutti.service.PersistenceService - Open persistence driver Tutti Persistence Service
2013-02-25 18:10:33,241 6427 [main] INFO fr.ifremer.tutti.service.PersistenceService - Will open persistence driver Mock persistence service implementation
2013-02-25 18:10:33,242 6428 [main] INFO fr.ifremer.tutti.service.referential.TuttiReferentialImportExportService - Will import persons from file: <http://ci.nuiton.org/jenkins/job/tutti/ws/trunk/tutti-service/target/surefi…>
2013-02-25 18:10:33,243 6429 [main] INFO org.nuiton.util.beans.BinderFactory - No binder model found for <fr.ifremer.tutti.persistence.entities.referential.Person - fr.ifremer.tutti.persistence.entities.referential.Person > [null] , will create a new default one.
2013-02-25 18:10:33,256 6442 [main] INFO fr.ifremer.tutti.service.PersistenceService - Open persistence driver Tutti Persistence Service
2013-02-25 18:10:33,263 6449 [main] INFO fr.ifremer.tutti.service.PersistenceService - Will open persistence driver Mock persistence service implementation
2013-02-25 18:10:33,264 6450 [main] INFO fr.ifremer.tutti.service.referential.TuttiReferentialImportExportService - Will import vessels from file: <http://ci.nuiton.org/jenkins/job/tutti/ws/trunk/tutti-service/target/surefi…>
2013-02-25 18:10:33,468 6654 [main] INFO org.nuiton.util.beans.BinderFactory - No binder model found for <fr.ifremer.tutti.persistence.entities.referential.Vessel - fr.ifremer.tutti.persistence.entities.referential.Vessel > [null] , will create a new default one.
2013-02-25 18:10:33,605 6791 [main] INFO fr.ifremer.tutti.service.PersistenceService - Open persistence driver Tutti Persistence Service
2013-02-25 18:10:33,664 6850 [main] INFO fr.ifremer.tutti.service.PersistenceService - Will open persistence driver Mock persistence service implementation
2013-02-25 18:10:33,719 6905 [main] INFO fr.ifremer.tutti.service.PersistenceService - Open persistence driver Tutti Persistence Service
2013-02-25 18:10:33,770 6956 [main] INFO fr.ifremer.tutti.service.PersistenceService - Will open persistence driver Mock persistence service implementation
2013-02-25 18:10:33,881 7067 [main] INFO fr.ifremer.tutti.service.PersistenceService - Open persistence driver Tutti Persistence Service
2013-02-25 18:10:33,940 7126 [main] INFO fr.ifremer.tutti.service.PersistenceService - Will open persistence driver Mock persistence service implementation
2013-02-25 18:10:34,011 7197 [main] INFO fr.ifremer.tutti.service.PersistenceService - Open persistence driver Tutti Persistence Service
2013-02-25 18:10:34,051 7237 [main] INFO fr.ifremer.tutti.service.PersistenceService - Will open persistence driver Mock persistence service implementation
2013-02-25 18:10:34,080 7266 [main] INFO fr.ifremer.tutti.service.referential.TuttiReferentialImportExportService - Will import species from file: <http://ci.nuiton.org/jenkins/job/tutti/ws/trunk/tutti-service/target/surefi…>
2013-02-25 18:10:34,082 7268 [main] INFO org.nuiton.util.beans.BinderFactory - No binder model found for <fr.ifremer.tutti.persistence.entities.referential.Species - fr.ifremer.tutti.persistence.entities.referential.Species > [null] , will create a new default one.
2013-02-25 18:10:34,143 7329 [main] INFO fr.ifremer.tutti.service.PersistenceService - Open persistence driver Tutti Persistence Service
2013-02-25 18:10:34,195 7381 [main] INFO fr.ifremer.tutti.service.PersistenceService - Will open persistence driver Mock persistence service implementation
2013-02-25 18:10:34,220 7406 [main] INFO fr.ifremer.tutti.service.referential.TuttiReferentialImportExportService - Will import gears from file: <http://ci.nuiton.org/jenkins/job/tutti/ws/trunk/tutti-service/target/surefi…>
2013-02-25 18:10:34,223 7409 [main] INFO org.nuiton.util.beans.BinderFactory - No binder model found for <fr.ifremer.tutti.persistence.entities.referential.Gear - fr.ifremer.tutti.persistence.entities.referential.Gear > [null] , will create a new default one.
Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.753 sec
Results :
Tests run: 15, Failures: 0, Errors: 0, Skipped: 0
mojoSucceeded org.apache.maven.plugins:maven-surefire-plugin:2.13(default-test)
[JENKINS] Recording test results
mojoStarted org.apache.maven.plugins:maven-jar-plugin:2.4(default-jar)
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ tutti-service ---
[INFO] Building jar: <http://ci.nuiton.org/jenkins/job/tutti/ws/trunk/tutti-service/target/tutti-…>
mojoSucceeded org.apache.maven.plugins:maven-jar-plugin:2.4(default-jar)
mojoStarted org.apache.maven.plugins:maven-site-plugin:3.2(attach-descriptor)
[INFO]
[INFO] --- maven-site-plugin:3.2:attach-descriptor (attach-descriptor) @ tutti-service ---
mojoSucceeded org.apache.maven.plugins:maven-site-plugin:3.2(attach-descriptor)
mojoStarted org.apache.maven.plugins:maven-install-plugin:2.4(default-install)
[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-install) @ tutti-service ---
[INFO] Installing <http://ci.nuiton.org/jenkins/job/tutti/ws/trunk/tutti-service/target/tutti-…> to /var/local/maven/data/repository/fr/ifremer/tutti/tutti-service/1.1-SNAPSHOT/tutti-service-1.1-SNAPSHOT.jar
[INFO] Installing <http://ci.nuiton.org/jenkins/job/tutti/ws/trunk/tutti-service/pom.xml> to /var/local/maven/data/repository/fr/ifremer/tutti/tutti-service/1.1-SNAPSHOT/tutti-service-1.1-SNAPSHOT.pom
mojoSucceeded org.apache.maven.plugins:maven-install-plugin:2.4(default-install)
projectSucceeded fr.ifremer.tutti:tutti-service:1.1-SNAPSHOT
projectStarted fr.ifremer.tutti:tutti-ui-swing:1.1-SNAPSHOT
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Tutti :: UI 1.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
mojoStarted org.apache.maven.plugins:maven-clean-plugin:2.5(default-clean)
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ tutti-ui-swing ---
[INFO] Deleting <http://ci.nuiton.org/jenkins/job/tutti/ws/trunk/tutti-ui-swing/target>
mojoSucceeded org.apache.maven.plugins:maven-clean-plugin:2.5(default-clean)
mojoStarted org.apache.maven.plugins:maven-enforcer-plugin:1.2(check-project-files)
[INFO]
[INFO] --- maven-enforcer-plugin:1.2:enforce (check-project-files) @ tutti-ui-swing ---
mojoSucceeded org.apache.maven.plugins:maven-enforcer-plugin:1.2(check-project-files)
mojoStarted org.nuiton.jaxx:jaxx-maven-plugin:2.5.10(default)
[INFO]
[INFO] --- jaxx-maven-plugin:2.5.10:generate (default) @ tutti-ui-swing ---
[INFO] use project compile scope class-path
[INFO] Detects 27 modified jaxx file(s).
[WARNING] JAXX detects 4 warnings :
<http://ci.nuiton.org/jenkins/job/tutti/ws/trunk/tutti-ui-swing/src/main/jav…>
jaxx supports i18n, no need to add explicit call to I18n._ for attribute 'text' in component 'filterSpeciesBatchRootButton' : [_("tutti.label.filterSpeciesBatchMode.mode.root", model.getRootNumber())]
<http://ci.nuiton.org/jenkins/job/tutti/ws/trunk/tutti-ui-swing/src/main/jav…>
jaxx supports i18n, no need to add explicit call to I18n._ for attribute 'text' in component 'gearLatitudeLabel' : [_("tutti.label.fishingOperation.gearLatitude", ((CoordinateEditorType)handler.getConfig().getCoordinateEditorType()).toString())]
<http://ci.nuiton.org/jenkins/job/tutti/ws/trunk/tutti-ui-swing/src/main/jav…>
jaxx supports i18n, no need to add explicit call to I18n._ for attribute 'text' in component 'gearLongitudeLabel' : [_("tutti.label.fishingOperation.gearLongitude", ((CoordinateEditorType)handler.getConfig().getCoordinateEditorType()).toString())]
<http://ci.nuiton.org/jenkins/job/tutti/ws/trunk/tutti-ui-swing/src/main/jav…>
jaxx supports i18n, no need to add explicit call to I18n._ for attribute 'toolTipText' in component 'trawlDistanceField' : [model.getTrawlDistance() != null ? _("tutti.tooltip.distanceInMilles", TuttiUIUtil.getDistanceInMilles(model.getTrawlDistance())) : null]
[ERROR] JAXX detects 9 errors :
<http://ci.nuiton.org/jenkins/job/tutti/ws/trunk/tutti-ui-swing/src/main/jav…>:1
: class jaxx.runtime.swing.editor.bean.BeanDoubleList does not support attribute 'i18nPrefix'
<http://ci.nuiton.org/jenkins/job/tutti/ws/trunk/tutti-ui-swing/src/main/jav…>:1
: class jaxx.runtime.swing.editor.bean.BeanDoubleList does not support attribute 'i18nPrefix'
<http://ci.nuiton.org/jenkins/job/tutti/ws/trunk/tutti-ui-swing/src/main/jav…>:1
: class jaxx.runtime.swing.editor.bean.BeanDoubleList does not support attribute 'i18nPrefix'
<http://ci.nuiton.org/jenkins/job/tutti/ws/trunk/tutti-ui-swing/src/main/jav…>:1
: class jaxx.runtime.swing.editor.bean.BeanDoubleList does not support attribute 'i18nPrefix'
<http://ci.nuiton.org/jenkins/job/tutti/ws/trunk/tutti-ui-swing/src/main/jav…>:1
: class jaxx.runtime.swing.editor.bean.BeanDoubleList does not support attribute 'i18nPrefix'
<http://ci.nuiton.org/jenkins/job/tutti/ws/trunk/tutti-ui-swing/src/main/jav…>:1
: class jaxx.runtime.swing.editor.bean.BeanDoubleList does not support attribute 'i18nPrefix'
<http://ci.nuiton.org/jenkins/job/tutti/ws/trunk/tutti-ui-swing/src/main/jav…>:1
: class jaxx.runtime.swing.editor.bean.BeanDoubleList does not support attribute 'i18nPrefix'
<http://ci.nuiton.org/jenkins/job/tutti/ws/trunk/tutti-ui-swing/src/main/jav…>:1
: class jaxx.runtime.swing.editor.bean.BeanDoubleList does not support attribute 'i18nPrefix'
<http://ci.nuiton.org/jenkins/job/tutti/ws/trunk/tutti-ui-swing/src/main/jav…>:1
: class jaxx.runtime.swing.editor.bean.BeanDoubleList does not support attribute 'i18nPrefix'
mojoFailed org.nuiton.jaxx:jaxx-maven-plugin:2.5.10(default)
projectFailed fr.ifremer.tutti:tutti-ui-swing:1.1-SNAPSHOT
sessionEnded
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Tutti ............................................. SUCCESS [12.273s]
[INFO] Tutti :: Persistence .............................. SUCCESS [37.825s]
[INFO] Tutti :: Service .................................. SUCCESS [24.731s]
[INFO] Tutti :: UI ....................................... FAILURE [1:04.519s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2:23.438s
[INFO] Finished at: Mon Feb 25 18:11:40 CET 2013
[INFO] Final Memory: 45M/130M
[INFO] ------------------------------------------------------------------------
Projects to build: [MavenProject: fr.ifremer:tutti:1.1-SNAPSHOT @ <http://ci.nuiton.org/jenkins/job/tutti/ws/trunk/pom.xml,> MavenProject: fr.ifremer.tutti:tutti-persistence:1.1-SNAPSHOT @ <http://ci.nuiton.org/jenkins/job/tutti/ws/trunk/tutti-persistence/pom.xml,> MavenProject: fr.ifremer.tutti:tutti-service:1.1-SNAPSHOT @ <http://ci.nuiton.org/jenkins/job/tutti/ws/trunk/tutti-service/pom.xml,> MavenProject: fr.ifremer.tutti:tutti-ui-swing:1.1-SNAPSHOT @ <http://ci.nuiton.org/jenkins/job/tutti/ws/trunk/tutti-ui-swing/pom.xml]>
[JENKINS] Archiving <http://ci.nuiton.org/jenkins/job/tutti/ws/trunk/tutti-service/pom.xml> to /var/local/jenkins/data/jobs/tutti/modules/fr.ifremer.tutti$tutti-service/builds/2013-02-25_18-09-04/archive/fr.ifremer.tutti/tutti-service/1.1-SNAPSHOT/tutti-service-1.1-SNAPSHOT.pom
[JENKINS] Archiving <http://ci.nuiton.org/jenkins/job/tutti/ws/trunk/tutti-service/target/tutti-…> to /var/local/jenkins/data/jobs/tutti/modules/fr.ifremer.tutti$tutti-service/builds/2013-02-25_18-09-04/archive/fr.ifremer.tutti/tutti-service/1.1-SNAPSHOT/tutti-service-1.1-SNAPSHOT.jar
[JENKINS] Archiving <http://ci.nuiton.org/jenkins/job/tutti/ws/trunk/tutti-ui-swing/pom.xml> to /var/local/jenkins/data/jobs/tutti/modules/fr.ifremer.tutti$tutti-ui-swing/builds/2013-02-25_18-09-04/archive/fr.ifremer.tutti/tutti-ui-swing/1.1-SNAPSHOT/tutti-ui-swing-1.1-SNAPSHOT.pom
[JENKINS] Archiving <http://ci.nuiton.org/jenkins/job/tutti/ws/trunk/pom.xml> to /var/local/jenkins/data/jobs/tutti/modules/fr.ifremer$tutti/builds/2013-02-25_18-09-04/archive/fr.ifremer/tutti/1.1-SNAPSHOT/tutti-1.1-SNAPSHOT.pom
[JENKINS] Archiving <http://ci.nuiton.org/jenkins/job/tutti/ws/trunk/target/tutti-1.1-SNAPSHOT-s…> to /var/local/jenkins/data/jobs/tutti/modules/fr.ifremer$tutti/builds/2013-02-25_18-09-04/archive/fr.ifremer/tutti/1.1-SNAPSHOT/tutti-1.1-SNAPSHOT-site_fr.xml
[JENKINS] Archiving <http://ci.nuiton.org/jenkins/job/tutti/ws/trunk/tutti-persistence/pom.xml> to /var/local/jenkins/data/jobs/tutti/modules/fr.ifremer.tutti$tutti-persistence/builds/2013-02-25_18-09-04/archive/fr.ifremer.tutti/tutti-persistence/1.1-SNAPSHOT/tutti-persistence-1.1-SNAPSHOT.pom
[JENKINS] Archiving <http://ci.nuiton.org/jenkins/job/tutti/ws/trunk/tutti-persistence/target/tu…> to /var/local/jenkins/data/jobs/tutti/modules/fr.ifremer.tutti$tutti-persistence/builds/2013-02-25_18-09-04/archive/fr.ifremer.tutti/tutti-persistence/1.1-SNAPSHOT/tutti-persistence-1.1-SNAPSHOT.jar
Waiting for Jenkins to finish collecting data
mavenExecutionResult exceptions not empty
message : Failed to execute goal org.nuiton.jaxx:jaxx-maven-plugin:2.5.10:generate (default) on project tutti-ui-swing: Aborting due to errors reported by jaxxc
cause : Aborting due to errors reported by jaxxc
Stack trace :
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.nuiton.jaxx:jaxx-maven-plugin:2.5.10:generate (default) on project tutti-ui-swing: Aborting due to errors reported by jaxxc
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.jvnet.hudson.maven3.launcher.Maven3Launcher.main(Maven3Launcher.java:79)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:329)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:239)
at org.jvnet.hudson.maven3.agent.Maven3Main.launch(Maven3Main.java:158)
at hudson.maven.Maven3Builder.call(Maven3Builder.java:100)
at hudson.maven.Maven3Builder.call(Maven3Builder.java:66)
at hudson.remoting.UserRequest.perform(UserRequest.java:118)
at hudson.remoting.UserRequest.perform(UserRequest.java:48)
at hudson.remoting.Request$2.run(Request.java:326)
at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
Caused by: org.apache.maven.plugin.MojoExecutionException: Aborting due to errors reported by jaxxc
at org.nuiton.jaxx.plugin.GenerateMojo.doAction(GenerateMojo.java:517)
at org.nuiton.plugin.AbstractPlugin.execute(AbstractPlugin.java:132)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
... 27 more
Sending e-mails to: tutti-commits(a)list.forge.codelutin.com kmorin(a)codelutin.com chemit(a)codelutin.com
channel stopped
1
2