Author: echatellier Date: 2014-08-21 17:44:13 +0200 (Thu, 21 Aug 2014) New Revision: 4098 Url: http://forge.codelutin.com/projects/isis-fish/repository/revisions/4098 Log: Update libs (topia...) Removed: branches/4.3.0-log4j2/src/main/resources/log4j.properties Modified: branches/4.3.0-log4j2/pom.xml branches/4.3.0-log4j2/src/main/java/fr/ifremer/isisfish/IsisConfig.java branches/4.3.0-log4j2/src/main/java/fr/ifremer/isisfish/entities/PopulationGroupImpl.java branches/4.3.0-log4j2/src/main/java/fr/ifremer/isisfish/entities/PopulationSeasonInfoImpl.java branches/4.3.0-log4j2/src/main/java/fr/ifremer/isisfish/entities/StrategyImpl.java branches/4.3.0-log4j2/src/main/java/fr/ifremer/isisfish/entities/TargetSpeciesImpl.java branches/4.3.0-log4j2/src/main/java/fr/ifremer/isisfish/map/ZoneDelimiterLayer.java branches/4.3.0-log4j2/src/main/java/fr/ifremer/isisfish/simulator/PopulationMonitor.java branches/4.3.0-log4j2/src/main/java/fr/ifremer/isisfish/ui/input/CellUI.jaxx branches/4.3.0-log4j2/src/main/java/fr/ifremer/isisfish/ui/input/PopulationBasicsUI.jaxx branches/4.3.0-log4j2/src/main/java/fr/ifremer/isisfish/ui/input/PopulationMigrationUI.jaxx branches/4.3.0-log4j2/src/main/java/fr/ifremer/isisfish/ui/input/PopulationSeasonSpacializedUI.jaxx branches/4.3.0-log4j2/src/main/java/fr/ifremer/isisfish/ui/input/PopulationSeasonsUI.jaxx branches/4.3.0-log4j2/src/main/java/fr/ifremer/isisfish/ui/input/SpeciesStructuredUI.jaxx branches/4.3.0-log4j2/src/main/java/fr/ifremer/isisfish/ui/input/StrategyTabUI.jaxx branches/4.3.0-log4j2/src/main/java/fr/ifremer/isisfish/ui/input/check/CheckRegion.java branches/4.3.0-log4j2/src/main/java/fr/ifremer/isisfish/ui/input/model/MetierSeasonInfoTargetSpeciesTableModel.java branches/4.3.0-log4j2/src/main/resources/log4j2.xml branches/4.3.0-log4j2/src/main/resources/sensitivity.properties branches/4.3.0-log4j2/src/main/xmi/isis-fish.properties branches/4.3.0-log4j2/src/test/java/fr/ifremer/isisfish/AbstractIsisFishTest.java branches/4.3.0-log4j2/src/test/resources/test-database/rules/TACpoids.java Modified: branches/4.3.0-log4j2/pom.xml =================================================================== --- branches/4.3.0-log4j2/pom.xml 2014-08-21 14:25:44 UTC (rev 4097) +++ branches/4.3.0-log4j2/pom.xml 2014-08-21 15:44:13 UTC (rev 4098) @@ -11,7 +11,7 @@ <groupId>fr.ifremer</groupId> <artifactId>isis-fish</artifactId> - <version>4.3.1.1-SNAPSHOT</version> + <version>4.3.2.0-SNAPSHOT</version> <!-- POM Relationships : Inheritance : Dependencies --> <dependencies> @@ -20,35 +20,29 @@ <dependency> <groupId>org.nuiton</groupId> <artifactId>nuiton-utils</artifactId> - <version>3.0-rc-4</version> + <version>3.0-rc-6</version> <scope>compile</scope> </dependency> - <dependency> + <!-- <dependency> <groupId>org.nuiton</groupId> <artifactId>nuiton-converter</artifactId> <version>1.0</version> <scope>compile</scope> - </dependency> - + </dependency> --> + <dependency> <groupId>org.nuiton</groupId> <artifactId>nuiton-config</artifactId> - <version>3.0-alpha-3</version> + <version>3.0-rc-1</version> <scope>compile</scope> </dependency> <dependency> <groupId>org.nuiton</groupId> <artifactId>nuiton-validator</artifactId> - <version>3.0-rc-1</version> + <version>3.0-rc-2</version> <scope>compile</scope> - <exclusions> - <exclusion> - <artifactId>javassist</artifactId> - <groupId>javassist</groupId> - </exclusion> - </exclusions> </dependency> <dependency> @@ -63,12 +57,6 @@ <artifactId>topia-persistence</artifactId> <version>${topiaVersion}</version> <scope>compile</scope> - <exclusions> - <exclusion> - <artifactId>javassist</artifactId> - <groupId>javassist</groupId> - </exclusion> - </exclusions> </dependency> <dependency> @@ -210,7 +198,7 @@ <dependency> <groupId>org.apache.commons</groupId> <artifactId>commons-email</artifactId> - <version>1.3.2</version> + <version>1.3.3</version> <exclusions> <exclusion> <artifactId>activation</artifactId> @@ -238,6 +226,13 @@ <version>2.0.2</version> <scope>compile</scope> </dependency> + + <dependency> + <groupId>org.apache.logging.log4j</groupId> + <artifactId>log4j-api</artifactId> + <version>2.0.2</version> + <scope>compile</scope> + </dependency> <dependency> <groupId>org.apache.logging.log4j</groupId> @@ -305,7 +300,7 @@ <dependency> <groupId>org.aspectj</groupId> <artifactId>aspectjweaver</artifactId> - <version>1.8.1</version> + <version>1.8.2</version> </dependency> <dependency> @@ -497,11 +492,11 @@ <signatureVersion>1.0</signatureVersion> <!-- Dependencies version --> - <jaxxVersion>2.8.7</jaxxVersion> - <eugeneVersion>2.7.4</eugeneVersion> - <topiaVersion>2.9.1</topiaVersion> + <jaxxVersion>2.10</jaxxVersion> + <eugeneVersion>2.13</eugeneVersion> + <topiaVersion>2.9.2</topiaVersion> <hibernateVersion>4.3.6.Final</hibernateVersion> - <nuitonI18nVersion>3.2</nuitonI18nVersion> + <nuitonI18nVersion>3.3</nuitonI18nVersion> <nuitonWidgetsVersion>1.1.1</nuitonWidgetsVersion> <redmine.releaseFiles>target/isis-fish-${project.version}-bin.zip</redmine.releaseFiles> @@ -540,10 +535,10 @@ <version>${jaxxVersion}</version> <dependencies> <dependency> - <groupId>org.nuiton.i18n</groupId> - <artifactId>nuiton-i18n</artifactId> - <version>${nuitonI18nVersion}</version> - <scope>compile</scope> + <groupId>com.fifesoft</groupId> + <artifactId>rsyntaxtextarea</artifactId> + <version>2.5.0</version> + <scope>compile</scope> </dependency> </dependencies> </plugin> Modified: branches/4.3.0-log4j2/src/main/java/fr/ifremer/isisfish/IsisConfig.java =================================================================== --- branches/4.3.0-log4j2/src/main/java/fr/ifremer/isisfish/IsisConfig.java 2014-08-21 14:25:44 UTC (rev 4097) +++ branches/4.3.0-log4j2/src/main/java/fr/ifremer/isisfish/IsisConfig.java 2014-08-21 15:44:13 UTC (rev 4098) @@ -128,7 +128,7 @@ * migration de donnees demande automatiquement un changement de version * d'application. */ - protected final static Version version = new Version(4, 3, 1, 1); + protected final static Version version = new Version(4, 3, 2, 0); protected final static Version majorVersion = new Version(version.getNumber(0)); protected final static Version databaseVersion = new Version( @@ -188,15 +188,6 @@ public IsisConfig() { - // fix missing converter for locale - try { - ConverterUtil.registerConverter(Locale.class); - } catch (Exception ex) { - if (log.isWarnEnabled()) { - log.warn("Can't register locale converter", ex); - } - } - for (Option o : Option.values()) { if (o.defaultValue != null) { setDefaultOption(o.key, o.defaultValue); Modified: branches/4.3.0-log4j2/src/main/java/fr/ifremer/isisfish/entities/PopulationGroupImpl.java =================================================================== --- branches/4.3.0-log4j2/src/main/java/fr/ifremer/isisfish/entities/PopulationGroupImpl.java 2014-08-21 14:25:44 UTC (rev 4097) +++ branches/4.3.0-log4j2/src/main/java/fr/ifremer/isisfish/entities/PopulationGroupImpl.java 2014-08-21 15:44:13 UTC (rev 4098) @@ -58,7 +58,7 @@ public double getAge() { double result = 0; if (getPopulation() != null && getPopulation().getSpecies() != null) { - if (getPopulation().getSpecies().getAgeGroupType()) { + if (getPopulation().getSpecies().isAgeGroupType()) { result = super.getAge(); } else { result = getPopulation().getAge(getLength(), this) @@ -75,7 +75,7 @@ public double getLength() { double result = 0.0; if (getPopulation() != null && getPopulation().getSpecies() != null) { - if (!getPopulation().getSpecies().getAgeGroupType()) { + if (!getPopulation().getSpecies().isAgeGroupType()) { result = (getMinLength() + getMaxLength()) / 2.0; } else { result = getPopulation().getLength( Modified: branches/4.3.0-log4j2/src/main/java/fr/ifremer/isisfish/entities/PopulationSeasonInfoImpl.java =================================================================== --- branches/4.3.0-log4j2/src/main/java/fr/ifremer/isisfish/entities/PopulationSeasonInfoImpl.java 2014-08-21 14:25:44 UTC (rev 4097) +++ branches/4.3.0-log4j2/src/main/java/fr/ifremer/isisfish/entities/PopulationSeasonInfoImpl.java 2014-08-21 15:44:13 UTC (rev 4098) @@ -423,24 +423,24 @@ if (log.isDebugEnabled()) { log.debug("pop: " + pop + " AgeGroup: " - + pop.getSpecies().getAgeGroupType() + " groupChange: " - + getGroupChange() + " month: " + month + " firstMonth: " + + pop.getSpecies().isAgeGroupType() + " groupChange: " + + isGroupChange() + " month: " + month + " firstMonth: " + getFirstMonth()); } // si en longueur - if (!pop.getSpecies().getAgeGroupType()) { - if (getSimpleLengthChangeMatrix()) { + if (!pop.getSpecies().isAgeGroupType()) { + if (isSimpleLengthChangeMatrix()) { return spacializeLengthChangeMatrix(getLengthChangeMatrix()); } else { return getLengthChangeMatrix(); } - } else if (getGroupChange() + } else if (isGroupChange() && month.getMonthNumber() == getFirstMonth().getMonthNumber()) { // create identity matrix with special 1 for plus group if necessary int nbrAge = pop.sizePopulationGroup(); int nbrZone = pop.sizePopulationZone(); - boolean groupplus = pop.getPlusGroup(); + boolean groupplus = pop.isPlusGroup(); MatrixND result = createSpacializedChangeGroupMatrix(); for (MatrixIterator mi = result.iterator(); mi.next();) { @@ -496,7 +496,7 @@ mat = createSpacializedChangeGroupMatrix(); MatrixHelper.convertToId(mat); - if (getUseEquationMigration()) { + if (isUseEquationMigration()) { // on commence par faire une copie pour ne pas modifier N MatrixND N = MatrixFactory.getInstance().create(aN); @@ -590,7 +590,7 @@ mat = createSpacializedChangeGroupMatrix(); - if (getUseEquationMigration()) { + if (isUseEquationMigration()) { // on commence par faire une copie pour ne pas modifier N MatrixND N = MatrixFactory.getInstance().create(aN); @@ -659,7 +659,7 @@ mat = MatrixFactory.getInstance().create( new int[] { groups.size() * nbSecteur }); - if (getUseEquationMigration()) { + if (isUseEquationMigration()) { // on commence par faire une copie pour ne pas modifier N MatrixND N = MatrixFactory.getInstance().create(aN); @@ -819,7 +819,7 @@ // on commence par faire une copie pour ne pas modifier N MatrixND N = aN.copy(); - if (getReproduction()) { + if (isReproduction()) { //recuperation de l'equation de reproduction Equation e = pop.getReproductionEquation(); Modified: branches/4.3.0-log4j2/src/main/java/fr/ifremer/isisfish/entities/StrategyImpl.java =================================================================== --- branches/4.3.0-log4j2/src/main/java/fr/ifremer/isisfish/entities/StrategyImpl.java 2014-08-21 14:25:44 UTC (rev 4097) +++ branches/4.3.0-log4j2/src/main/java/fr/ifremer/isisfish/entities/StrategyImpl.java 2014-08-21 15:44:13 UTC (rev 4098) @@ -156,7 +156,7 @@ double result = 0; StrategyMonthInfo info = getStrategyMonthInfo(month); - if (!getInactivityEquationUsed()) { + if (!isInactivityEquationUsed()) { result = info.getMinInactivityDays(); } else { try { Modified: branches/4.3.0-log4j2/src/main/java/fr/ifremer/isisfish/entities/TargetSpeciesImpl.java =================================================================== --- branches/4.3.0-log4j2/src/main/java/fr/ifremer/isisfish/entities/TargetSpeciesImpl.java 2014-08-21 14:25:44 UTC (rev 4097) +++ branches/4.3.0-log4j2/src/main/java/fr/ifremer/isisfish/entities/TargetSpeciesImpl.java 2014-08-21 15:44:13 UTC (rev 4098) @@ -143,7 +143,7 @@ Equation eq = getTargetFactorEquation(); Species species = getSpecies(); MetierSeasonInfo msi = getMetierSeasonInfo(); - boolean primaryCatch = getPrimaryCatch(); + boolean primaryCatch = isPrimaryCatch(); result = eq.evaluate("group", group, "species", species, "infoMetier", msi, "primaryCatch", primaryCatch); } catch (Exception eee) { Modified: branches/4.3.0-log4j2/src/main/java/fr/ifremer/isisfish/map/ZoneDelimiterLayer.java =================================================================== --- branches/4.3.0-log4j2/src/main/java/fr/ifremer/isisfish/map/ZoneDelimiterLayer.java 2014-08-21 14:25:44 UTC (rev 4097) +++ branches/4.3.0-log4j2/src/main/java/fr/ifremer/isisfish/map/ZoneDelimiterLayer.java 2014-08-21 15:44:13 UTC (rev 4098) @@ -145,7 +145,7 @@ (float) cell.getLongitude(), (float) cell.getLatitude(), (float) (cell.getLongitude() + pasMailleLongitude), OMGraphic.LINETYPE_STRAIGHT); - if (cell.getLand()) { + if (cell.isLand()) { omrect.setLinePaint(new Color(Color.red.getRed(), Color.red .getGreen(), Color.red.getBlue(), 0));//completement transparent } else { Modified: branches/4.3.0-log4j2/src/main/java/fr/ifremer/isisfish/simulator/PopulationMonitor.java =================================================================== --- branches/4.3.0-log4j2/src/main/java/fr/ifremer/isisfish/simulator/PopulationMonitor.java 2014-08-21 14:25:44 UTC (rev 4097) +++ branches/4.3.0-log4j2/src/main/java/fr/ifremer/isisfish/simulator/PopulationMonitor.java 2014-08-21 15:44:13 UTC (rev 4098) @@ -286,7 +286,7 @@ } } - if (pop.getSpecies().getAgeGroupType()) { + if (pop.getSpecies().isAgeGroupType()) { // conversion et retour de la matrice en vecteur MatrixND N = pop.N2DToN1D(result); // on applique les migrations et le changement d'age sur le resultat Modified: branches/4.3.0-log4j2/src/main/java/fr/ifremer/isisfish/ui/input/CellUI.jaxx =================================================================== --- branches/4.3.0-log4j2/src/main/java/fr/ifremer/isisfish/ui/input/CellUI.jaxx 2014-08-21 14:25:44 UTC (rev 4097) +++ branches/4.3.0-log4j2/src/main/java/fr/ifremer/isisfish/ui/input/CellUI.jaxx 2014-08-21 15:44:13 UTC (rev 4098) @@ -170,7 +170,7 @@ <JLabel text="isisfish.cell.land" enabled='{isActive()}'/> </cell> <cell fill='horizontal' weightx='1.0'> - <JCheckBox id="fieldCellLand" onActionPerformed='getBean().setLand(fieldCellLand.isSelected())' enabled='{isActive()}' selected='{getBean().getLand()}' decorator='boxed'/> + <JCheckBox id="fieldCellLand" onActionPerformed='getBean().setLand(fieldCellLand.isSelected())' enabled='{isActive()}' selected='{getBean().isLand()}' decorator='boxed'/> </cell> </row> <row> Modified: branches/4.3.0-log4j2/src/main/java/fr/ifremer/isisfish/ui/input/PopulationBasicsUI.jaxx =================================================================== --- branches/4.3.0-log4j2/src/main/java/fr/ifremer/isisfish/ui/input/PopulationBasicsUI.jaxx 2014-08-21 14:25:44 UTC (rev 4097) +++ branches/4.3.0-log4j2/src/main/java/fr/ifremer/isisfish/ui/input/PopulationBasicsUI.jaxx 2014-08-21 15:44:13 UTC (rev 4098) @@ -94,7 +94,7 @@ wizardFrame.add(wizard, BorderLayout.CENTER); wizardFrame.setTitle(t("isisfish.wizardGroupCreation.title")); Species species = getBean().getSpecies(); - wizard.setAgeType(species.getAgeGroupType()); + wizard.setAgeType(species.isAgeGroupType()); if (wizard.isAgeType()) { wizard.setCard("singleGroupAge"); } else { @@ -179,7 +179,7 @@ <cell fill='horizontal'> <JCheckBox id="fieldPopulationBasicsPlusGroup" text="isisfish.populationBasics.plusGroup" toolTipText="isisfish.populationBasics.plusGroupTip" - selected='{getBean().getPlusGroup()}' + selected='{getBean().isPlusGroup()}' onActionPerformed='getBean().setPlusGroup(fieldPopulationBasicsPlusGroup.isSelected())' enabled='{isActive()}' decorator='boxed' _sensitivityBean='{Population.class}' _sensitivityMethod='"PlusGroup"'/> </cell> Modified: branches/4.3.0-log4j2/src/main/java/fr/ifremer/isisfish/ui/input/PopulationMigrationUI.jaxx =================================================================== --- branches/4.3.0-log4j2/src/main/java/fr/ifremer/isisfish/ui/input/PopulationMigrationUI.jaxx 2014-08-21 14:25:44 UTC (rev 4097) +++ branches/4.3.0-log4j2/src/main/java/fr/ifremer/isisfish/ui/input/PopulationMigrationUI.jaxx 2014-08-21 15:44:13 UTC (rev 4098) @@ -122,7 +122,7 @@ } protected void refreshHidablePanel() { if (getPopInfo() != null) { - if (getPopInfo().getUseEquationMigration()) { + if (getPopInfo().isUseEquationMigration()) { fieldUseEquationMigration.setSelected(true); ((CardLayout) hidablePanel.getLayout()).show(hidablePanel, "fieldUseEquation"); } @@ -155,7 +155,7 @@ </row> <row> <cell columns='2' anchor='west'> - <JCheckBox id="fieldUseEquationMigration" selected='{getPopInfo().getUseEquationMigration()}' + <JCheckBox id="fieldUseEquationMigration" selected='{getPopInfo().isUseEquationMigration()}' text="isisfish.populationMigration.useEquation" onActionPerformed='useEquationChanged()' enabled='{getPopInfo() != null}' decorator='boxed'/> </cell> Modified: branches/4.3.0-log4j2/src/main/java/fr/ifremer/isisfish/ui/input/PopulationSeasonSpacializedUI.jaxx =================================================================== --- branches/4.3.0-log4j2/src/main/java/fr/ifremer/isisfish/ui/input/PopulationSeasonSpacializedUI.jaxx 2014-08-21 14:25:44 UTC (rev 4097) +++ branches/4.3.0-log4j2/src/main/java/fr/ifremer/isisfish/ui/input/PopulationSeasonSpacializedUI.jaxx 2014-08-21 15:44:13 UTC (rev 4098) @@ -66,7 +66,7 @@ try { MatrixND lengthChangeMatrix = popInfo.getLengthChangeMatrix(); if (lengthChangeMatrix != null) { - if (popInfo.getSimpleLengthChangeMatrix()) { + if (popInfo.isSimpleLengthChangeMatrix()) { lengthChangeMatrix = popInfo.unspacializeLengthChangeMatrix(lengthChangeMatrix); } else { lengthChangeMatrix = popInfo.spacializeLengthChangeMatrix(lengthChangeMatrix); @@ -85,7 +85,7 @@ protected void computeMatrixChangeOfGroup() { PopulationSeasonInfo popInfo = getPopulationSeasonInfo(); MatrixND lengthChangeMatrix = popInfo.computeLengthChangeMatrix(); - if (!popInfo.getSimpleLengthChangeMatrix()){ + if (!popInfo.isSimpleLengthChangeMatrix()){ lengthChangeMatrix = popInfo.spacializeLengthChangeMatrix(lengthChangeMatrix); } popInfo.setLengthChangeMatrix(lengthChangeMatrix); @@ -94,7 +94,7 @@ protected void showSpacializedMatrixChangeOfGroup() { PopulationSeasonInfo popInfo = getPopulationSeasonInfo(); MatrixND lengthChangeMatrix = popInfo.getLengthChangeMatrix(); - if (popInfo.getSimpleLengthChangeMatrix()) { + if (popInfo.isSimpleLengthChangeMatrix()) { lengthChangeMatrix = popInfo.spacializeLengthChangeMatrix(lengthChangeMatrix); } MatrixPanelEditor panel = new MatrixPanelEditor(false, 800, 300); @@ -112,7 +112,7 @@ <cell fill='horizontal' weightx='0.5'> <JRadioButton id="radioPopulationSeasonGroupChangeLengthNoSpacialized" buttonGroup="radioPopulationSeasonGroupChangeLengthSpacializedGroup" - selected='{getPopulationSeasonInfo().getSimpleLengthChangeMatrix()}' + selected='{getPopulationSeasonInfo().isSimpleLengthChangeMatrix()}' enabled='{getPopulationSeasonInfo() != null}' text="isisfish.populationSeasons.noSpacialized" onActionPerformed='spacializedActionPerformed()' visible='{isAgeGroupType()}' decorator='boxed' /> @@ -120,7 +120,7 @@ <cell fill='horizontal' weightx='0.5'> <JRadioButton id="radioPopulationSeasonGroupChangeLengthSpacialized" buttonGroup="radioPopulationSeasonGroupChangeLengthSpacializedGroup" - selected='{!getPopulationSeasonInfo().getSimpleLengthChangeMatrix()}' + selected='{!getPopulationSeasonInfo().isSimpleLengthChangeMatrix()}' enabled='{getPopulationSeasonInfo() != null}' text="isisfish.populationSeasons.spacialized" onActionPerformed='spacializedActionPerformed()' visible='{isAgeGroupType()}' decorator='boxed' /> Modified: branches/4.3.0-log4j2/src/main/java/fr/ifremer/isisfish/ui/input/PopulationSeasonsUI.jaxx =================================================================== --- branches/4.3.0-log4j2/src/main/java/fr/ifremer/isisfish/ui/input/PopulationSeasonsUI.jaxx 2014-08-21 14:25:44 UTC (rev 4097) +++ branches/4.3.0-log4j2/src/main/java/fr/ifremer/isisfish/ui/input/PopulationSeasonsUI.jaxx 2014-08-21 15:44:13 UTC (rev 4098) @@ -282,16 +282,16 @@ <JPanel/> </cell> <cell fill='both' weightx='1.0'> - <JCheckBox id="fieldPopulationSeasonGroupChange" text="isisfish.populationSeasons.changeGroup" selected='{getPopulationSeasonInfo().getGroupChange()}' + <JCheckBox id="fieldPopulationSeasonGroupChange" text="isisfish.populationSeasons.changeGroup" selected='{getPopulationSeasonInfo().isGroupChange()}' decorator='boxed' _sensitivityBean='{PopulationSeasonInfo.class}' _sensitivityMethod='"GroupChange"' - onActionPerformed='seasonGroupChanged()' enabled='{getPopulationSeasonInfo() != null}' visible='{isAgeGroupType(getPopulationSeasonInfo().getPopulation().getSpecies().getAgeGroupType())}'/> + onActionPerformed='seasonGroupChanged()' enabled='{getPopulationSeasonInfo() != null}' visible='{isAgeGroupType(getPopulationSeasonInfo().getPopulation().getSpecies().isAgeGroupType())}'/> </cell> </row> <row> <cell columns='2' fill='both' weightx='1.0' weighty='0.6'> <PopulationSeasonSpacializedUI id='populationSeasonSpecializedUI' constructorParams='this' bean='{getBean()}' populationSeasonInfo='{getPopulationSeasonInfo()}' - ageGroupType='{isAgeGroupType(!getPopulationSeasonInfo().getPopulation().getSpecies().getAgeGroupType())}'/> + ageGroupType='{isAgeGroupType(!getPopulationSeasonInfo().getPopulation().getSpecies().isAgeGroupType())}'/> </cell> </row> <row> Modified: branches/4.3.0-log4j2/src/main/java/fr/ifremer/isisfish/ui/input/SpeciesStructuredUI.jaxx =================================================================== --- branches/4.3.0-log4j2/src/main/java/fr/ifremer/isisfish/ui/input/SpeciesStructuredUI.jaxx 2014-08-21 14:25:44 UTC (rev 4097) +++ branches/4.3.0-log4j2/src/main/java/fr/ifremer/isisfish/ui/input/SpeciesStructuredUI.jaxx 2014-08-21 15:44:13 UTC (rev 4098) @@ -38,11 +38,11 @@ <Table> <row> <cell fill='horizontal' weightx='0.5'> - <JRadioButton id="fieldSpeciesDynamicAge" text="isisfish.species.age" selected='{getBean().getAgeGroupType()}' + <JRadioButton id="fieldSpeciesDynamicAge" text="isisfish.species.age" selected='{getBean().isAgeGroupType()}' buttonGroup="structuredGroup" onItemStateChanged='dynamicChanged()' enabled='{isActive()}'/> </cell> <cell fill='horizontal' weightx='0.5'> - <JRadioButton id="fieldSpeciesDynamicLength" text="isisfish.species.length" selected='{!getBean().getAgeGroupType()}' + <JRadioButton id="fieldSpeciesDynamicLength" text="isisfish.species.length" selected='{!getBean().isAgeGroupType()}' buttonGroup="structuredGroup" enabled='{isActive()}'/> </cell> </row> Modified: branches/4.3.0-log4j2/src/main/java/fr/ifremer/isisfish/ui/input/StrategyTabUI.jaxx =================================================================== --- branches/4.3.0-log4j2/src/main/java/fr/ifremer/isisfish/ui/input/StrategyTabUI.jaxx 2014-08-21 14:25:44 UTC (rev 4097) +++ branches/4.3.0-log4j2/src/main/java/fr/ifremer/isisfish/ui/input/StrategyTabUI.jaxx 2014-08-21 15:44:13 UTC (rev 4098) @@ -74,7 +74,7 @@ //fieldStrategyProportionSetOfVessels.init(); // code to replace bindings : - strategyInactivity.setActive(isActive() && getBean().getInactivityEquationUsed()); + strategyInactivity.setActive(isActive() && getBean().isInactivityEquationUsed()); //getSaveVerifier().addCurrentPanel(strategyInactivity); } @@ -144,7 +144,7 @@ <JPanel/> </cell> <cell fill='horizontal' weightx='1.0'> - <JCheckBox id="fieldUseEquationInactivity" selected='{getBean().getInactivityEquationUsed()}' + <JCheckBox id="fieldUseEquationInactivity" selected='{getBean().isInactivityEquationUsed()}' text="isisfish.strategy.inactivityEquationUsed" onActionPerformed='getBean().setInactivityEquationUsed(fieldUseEquationInactivity.isSelected())' enabled='{isActive()}' decorator='boxed'/> </cell> @@ -153,10 +153,10 @@ <cell columns="2" fill='both' weightx='1.0' weighty='0.5'> <InputOneEquationUI id="strategyInactivity" constructorParams='this' text='isisfish.strategy.inactivity' - active="{isActive() && getBean() != null && bean.getInactivityEquationUsed()}" + active="{isActive() && getBean() != null && bean.isInactivityEquationUsed()}" bean='{getBean()}' formuleCategory='Inactivity' beanProperty='InactivityEquation' clazz='{fr.ifremer.isisfish.equation.StrategyInactivityEquation.class}' - decorator='boxed' _sensitivityBean='{Strategy.class}' _sensitivityMethod='"Inactivity"'/> <!-- bindings not work well actif='{getBean().getInactivityEquationUsed()}' --> + decorator='boxed' _sensitivityBean='{Strategy.class}' _sensitivityMethod='"Inactivity"'/> <!-- bindings not work well actif='{getBean().isInactivityEquationUsed()}' --> </cell> </row> <row> Modified: branches/4.3.0-log4j2/src/main/java/fr/ifremer/isisfish/ui/input/check/CheckRegion.java =================================================================== --- branches/4.3.0-log4j2/src/main/java/fr/ifremer/isisfish/ui/input/check/CheckRegion.java 2014-08-21 14:25:44 UTC (rev 4097) +++ branches/4.3.0-log4j2/src/main/java/fr/ifremer/isisfish/ui/input/check/CheckRegion.java 2014-08-21 15:44:13 UTC (rev 4098) @@ -189,7 +189,7 @@ } static public void check(PopulationSeasonInfo infoSaisonPop, CheckResult result){ - if (infoSaisonPop.getUseEquationMigration()) { + if (infoSaisonPop.isUseEquationMigration()) { check(infoSaisonPop, "MigrationEquation", infoSaisonPop.getMigrationEquation(), result); check(infoSaisonPop, "EmigrationEquation", infoSaisonPop.getEmigrationEquation(), result); check(infoSaisonPop, "ImmigrationEquation", infoSaisonPop.getImmigrationEquation(), result); Modified: branches/4.3.0-log4j2/src/main/java/fr/ifremer/isisfish/ui/input/model/MetierSeasonInfoTargetSpeciesTableModel.java =================================================================== --- branches/4.3.0-log4j2/src/main/java/fr/ifremer/isisfish/ui/input/model/MetierSeasonInfoTargetSpeciesTableModel.java 2014-08-21 14:25:44 UTC (rev 4097) +++ branches/4.3.0-log4j2/src/main/java/fr/ifremer/isisfish/ui/input/model/MetierSeasonInfoTargetSpeciesTableModel.java 2014-08-21 15:44:13 UTC (rev 4098) @@ -140,7 +140,7 @@ result = targetSpecies.getTargetFactorEquation(); break; case 2: - result = targetSpecies.getPrimaryCatch(); + result = targetSpecies.isPrimaryCatch(); break; default: throw new IndexOutOfBoundsException("No such column " + columnIndex); Deleted: branches/4.3.0-log4j2/src/main/resources/log4j.properties =================================================================== --- branches/4.3.0-log4j2/src/main/resources/log4j.properties 2014-08-21 14:25:44 UTC (rev 4097) +++ branches/4.3.0-log4j2/src/main/resources/log4j.properties 2014-08-21 15:44:13 UTC (rev 4098) @@ -1,45 +0,0 @@ -### -# #%L -# IsisFish -# -# $Id$ -# $HeadURL$ -# %% -# Copyright (C) 2005 - 2013 Ifremer, CodeLutin, Chatellier Eric -# %% -# 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% -### -# Global logging configuration -log4j.rootLogger=ERROR, stdout - -# Console output... -log4j.appender.stdout=org.apache.log4j.ConsoleAppender -log4j.appender.stdout.layout=org.apache.log4j.PatternLayout -log4j.appender.stdout.layout.ConversionPattern=%5p [%t] (%F:%L) %M - %m%n - -# package level -log4j.logger.fr.ifremer.isisfish=INFO -log4j.logger.org.nuiton=WARN -log4j.logger.exports=INFO -log4j.logger.formules=INFO -log4j.logger.objectives=INFO -log4j.logger.optimizations=INFO -log4j.logger.rules=INFO -log4j.logger.scripts=INFO -log4j.logger.sensitivityanalysis=INFO -log4j.logger.sensitivityexports=INFO -log4j.logger.simulationplans=INFO -log4j.logger.simulators=INFO Modified: branches/4.3.0-log4j2/src/main/resources/log4j2.xml =================================================================== (Binary files differ) Modified: branches/4.3.0-log4j2/src/main/resources/sensitivity.properties =================================================================== --- branches/4.3.0-log4j2/src/main/resources/sensitivity.properties 2014-08-21 14:25:44 UTC (rev 4097) +++ branches/4.3.0-log4j2/src/main/resources/sensitivity.properties 2014-08-21 15:44:13 UTC (rev 4098) @@ -5,7 +5,7 @@ # $Id$ # $HeadURL$ # %% -# Copyright (C) 2009 - 2011 Ifremer, CodeLutin, Chatellier Eric +# Copyright (C) 2009 - 2014 Ifremer, CodeLutin, Chatellier Eric # %% # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as Modified: branches/4.3.0-log4j2/src/main/xmi/isis-fish.properties =================================================================== --- branches/4.3.0-log4j2/src/main/xmi/isis-fish.properties 2014-08-21 14:25:44 UTC (rev 4097) +++ branches/4.3.0-log4j2/src/main/xmi/isis-fish.properties 2014-08-21 15:44:13 UTC (rev 4098) @@ -32,7 +32,6 @@ model.tagvalue.hibernateProxyInterface=none model.tagvalue.constantPrefix=PROPERTY_ model.tagvalue.useEnumerationName=true -model.tagvalue.doNotGenerateBooleanGetMethods=false model.tagvalue.notGenerateReadListeners=true fr.ifremer.isisfish.entities.ActiveRule.class.tagvalue.contextable=true fr.ifremer.isisfish.entities.Cell.class.tagvalue.contextable=true Modified: branches/4.3.0-log4j2/src/test/java/fr/ifremer/isisfish/AbstractIsisFishTest.java =================================================================== --- branches/4.3.0-log4j2/src/test/java/fr/ifremer/isisfish/AbstractIsisFishTest.java 2014-08-21 14:25:44 UTC (rev 4097) +++ branches/4.3.0-log4j2/src/test/java/fr/ifremer/isisfish/AbstractIsisFishTest.java 2014-08-21 15:44:13 UTC (rev 4098) @@ -86,6 +86,9 @@ @BeforeClass public static void init() throws Exception { + // TODO as of 20140720, hibernate fails to detect log4j 2.0, force slf4j + System.setProperty("org.jboss.logging.provider", "slf4j"); + File mavenTestDir = getTestDirectory(); dirIsisBase = FileUtil.createTempDirectory("isisdbtest", "", mavenTestDir); Modified: branches/4.3.0-log4j2/src/test/resources/test-database/rules/TACpoids.java =================================================================== --- branches/4.3.0-log4j2/src/test/resources/test-database/rules/TACpoids.java 2014-08-21 14:25:44 UTC (rev 4097) +++ branches/4.3.0-log4j2/src/test/resources/test-database/rules/TACpoids.java 2014-08-21 15:44:13 UTC (rev 4098) @@ -183,7 +183,7 @@ log.info(" TAC atteint [TAC] preAction for: " + metier); TargetSpecies ts = metier.getMetierSeasonInfo(step.getMonth()) .getSpeciesTargetSpecies(param_species); - if (ts != null && ts.getPrimaryCatch()) { + if (ts != null && ts.isPrimaryCatch()) { // recupere tous les metiers qui ont l'espece en capture principale =>metiers vises // aimedMetiers ne fonctionne pas je ne sais pas pourquoi ! mais au final forbiddenMetier aura le meme effet