Author: echatellier Date: 2016-03-01 11:58:01 +0100 (Tue, 01 Mar 2016) New Revision: 4329 Url: http://forge.codelutin.com/projects/isis-fish/repository/revisions/4329 Log: Remove option to create export non step Removed: trunk/src/main/resources/templates/script/exportStep.ftl Modified: trunk/src/main/java/fr/ifremer/isisfish/datastore/ExportStorage.java trunk/src/main/java/fr/ifremer/isisfish/ui/script/ScriptHandler.java trunk/src/main/java/fr/ifremer/isisfish/ui/script/ScriptUI.jaxx trunk/src/main/resources/templates/script/equation.ftl trunk/src/main/resources/templates/script/export.ftl trunk/src/main/resources/templates/script/objective.ftl trunk/src/main/resources/templates/script/optimization.ftl trunk/src/main/resources/templates/script/resultinfo.ftl trunk/src/main/resources/templates/script/rule.ftl trunk/src/main/resources/templates/script/script.ftl trunk/src/main/resources/templates/script/sensitivityanalysis.ftl trunk/src/main/resources/templates/script/sensitivityexport.ftl trunk/src/main/resources/templates/script/simulationplan.ftl trunk/src/main/resources/templates/script/simulator.ftl trunk/src/test/java/fr/ifremer/isisfish/datastore/ExportStepStorageTest.java Modified: trunk/src/main/java/fr/ifremer/isisfish/datastore/ExportStorage.java =================================================================== --- trunk/src/main/java/fr/ifremer/isisfish/datastore/ExportStorage.java 2016-03-01 10:57:05 UTC (rev 4328) +++ trunk/src/main/java/fr/ifremer/isisfish/datastore/ExportStorage.java 2016-03-01 10:58:01 UTC (rev 4329) @@ -61,8 +61,6 @@ /** Template freemarker pour les scripts d'export . */ public static final String EXPORT_TEMPLATE = "templates/script/export.ftl"; - /** Template freemarker pour les scripts d'export . */ - public static final String EXPORT_STEP_TEMPLATE = "templates/script/exportStep.ftl"; /** Instance cache. */ private static Map<String, ExportStorage> exportCache = new ReferenceMap<String, ExportStorage>(); Modified: trunk/src/main/java/fr/ifremer/isisfish/ui/script/ScriptHandler.java =================================================================== --- trunk/src/main/java/fr/ifremer/isisfish/ui/script/ScriptHandler.java 2016-03-01 10:57:05 UTC (rev 4328) +++ trunk/src/main/java/fr/ifremer/isisfish/ui/script/ScriptHandler.java 2016-03-01 10:58:01 UTC (rev 4329) @@ -5,7 +5,7 @@ * $Id$ * $HeadURL$ * %% - * Copyright (C) 2006 - 2015 Ifremer, Code Lutin, Cédric Pineau, Benjamin Poussin, Chatellier Eric + * Copyright (C) 2006 - 2016 Ifremer, Code Lutin, Cédric Pineau, Benjamin Poussin, 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 @@ -331,7 +331,6 @@ script = SimulationPlanStorage.createSimulationPlan(fileName, Location.COMMUNITY); break; case CommunityExport: - case CommunityExportStep: script = ExportStorage.createExport(fileName, Location.COMMUNITY); break; case CommunityObjective: @@ -489,7 +488,6 @@ script = SimulationPlanStorage.getSimulationPlan(file.getName(), Location.OFFICIAL); break; case Export: - case ExportStep: script = ExportStorage.getExport(file.getName(), Location.OFFICIAL); break; case Script: @@ -520,7 +518,6 @@ script = SimulationPlanStorage.getSimulationPlan(file.getName(), Location.COMMUNITY); break; case CommunityExport: - case CommunityExportStep: script = ExportStorage.getExport(file.getName(), Location.COMMUNITY); break; case CommunityScript: @@ -967,9 +964,6 @@ Export( ExportStorage.getExportDirectory(), ExportStorage.EXPORT_TEMPLATE, true), - ExportStep( - ExportStorage.getExportDirectory(), - ExportStorage.EXPORT_STEP_TEMPLATE, true), Rule( RuleStorage.getRuleDirectory(), RuleStorage.RULE_TEMPLATE, true), @@ -1004,9 +998,6 @@ CommunityExport( ExportStorage.getCommunityExportDirectory(), ExportStorage.EXPORT_TEMPLATE), - CommunityExportStep( - ExportStorage.getCommunityExportDirectory(), - ExportStorage.EXPORT_STEP_TEMPLATE), CommunityObjective( ObjectiveStorage.getCommunityObjectiveDirectory(), ObjectiveStorage.OBJECTIVE_TEMPLATE), Modified: trunk/src/main/java/fr/ifremer/isisfish/ui/script/ScriptUI.jaxx =================================================================== --- trunk/src/main/java/fr/ifremer/isisfish/ui/script/ScriptUI.jaxx 2016-03-01 10:57:05 UTC (rev 4328) +++ trunk/src/main/java/fr/ifremer/isisfish/ui/script/ScriptUI.jaxx 2016-03-01 10:58:01 UTC (rev 4329) @@ -5,7 +5,7 @@ $Id$ $HeadURL$ %% - Copyright (C) 2009 - 2015 Ifremer, CodeLutin, Chatellier Eric + Copyright (C) 2009 - 2016 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 @@ -51,8 +51,6 @@ onActionPerformed='handler.newScript(ScriptHandler.ScriptMapping.CommunitySimulator)' icon="script/script.png" /> <JMenuItem id="miNewExport" text="isisfish.script.menu.txtNewExport" onActionPerformed='handler.newScript(ScriptHandler.ScriptMapping.CommunityExport)' icon="script/script.png" /> - <JMenuItem id="miNewExportStep" text="isisfish.script.menu.txtNewExportStep" - onActionPerformed='handler.newScript(ScriptHandler.ScriptMapping.CommunityExportStep)' icon="script/script.png" /> <JMenuItem id="miNewRule" text="isisfish.script.menu.txtNewRule" onActionPerformed='handler.newScript(ScriptHandler.ScriptMapping.CommunityRule)' icon="script/script.png" /> <JMenuItem id="miNewResultInfo" text="isisfish.script.menu.txtNewResultInfo" Modified: trunk/src/main/resources/templates/script/equation.ftl =================================================================== --- trunk/src/main/resources/templates/script/equation.ftl 2016-03-01 10:57:05 UTC (rev 4328) +++ trunk/src/main/resources/templates/script/equation.ftl 2016-03-01 10:58:01 UTC (rev 4329) @@ -5,7 +5,7 @@ $Id$ $HeadURL$ %% - Copyright (C) 2009 - 2014 Ifremer, CodeLutin, Chatellier Eric + Copyright (C) 2009 - 2016 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: trunk/src/main/resources/templates/script/export.ftl =================================================================== --- trunk/src/main/resources/templates/script/export.ftl 2016-03-01 10:57:05 UTC (rev 4328) +++ trunk/src/main/resources/templates/script/export.ftl 2016-03-01 10:58:01 UTC (rev 4329) @@ -5,7 +5,7 @@ $Id$ $HeadURL$ %% - Copyright (C) 2009 - 2015 Ifremer, CodeLutin, Chatellier Eric + Copyright (C) 2014 - 2016 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 @@ -39,64 +39,136 @@ * License along with this program. If not, see * <http://www.gnu.org/licenses/gpl-3.0.html>. */ - package exports; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; - import java.io.Writer; import org.nuiton.math.matrix.*; - import resultinfos.*; import fr.ifremer.isisfish.util.Doc; import fr.ifremer.isisfish.entities.*; -import fr.ifremer.isisfish.export.Export; +import fr.ifremer.isisfish.export.ExportStep; import fr.ifremer.isisfish.datastore.SimulationStorage; import fr.ifremer.isisfish.simulator.ResultManager; +import fr.ifremer.isisfish.types.TimeStep; /** * ${name}.java - * - * Created: ${date?date?string.long} - * - * @author ${author} <${email}> - * @version $Revision$ - * - * Last update: $Date${date?date?string.long} $ - * by : $Author${author} $ */ -public class ${name} implements Export { +public class ${name} implements ExportStep { - /** to use log facility, just put in your code: log.info(\"...\"); */ + /** to use log facility, just put in your code: log.info(\"...\"); */ private static Log log = LogFactory.getLog(${name}.class); protected String[] necessaryResult = { - // put here all necessary result for this rule - // example: - // MatrixBiomass.NAME, - // MatrixNetValueOfLandingsPerStrategyMet.NAME, - }; + // put here all necessary result for this rule + // example: + // MatrixBiomass.NAME, + // MatrixNetValueOfLandingsPerStrategyMet.NAME, + }; + /** + * Necessary results names for export execution. + * + * @return the necessaryResult name + */ + @Override public String[] getNecessaryResult() { return this.necessaryResult; } + /** + * Return Export description. + * + * @return string displayable to the end user + */ + @Override public String getExportFilename() { return "${name}"; } + /** + * Return filename used to contains export data. + * + * @return filename by example "myexport" + */ + @Override public String getExtensionFilename() { return ".csv"; } + /** + * Return extension used as filename name extension. + * + * @return extension by example ".csv" + */ + @Override public String getDescription() { return "TODO export description"; } - public void export(SimulationStorage simulation, Writer out) throws Exception { - // put your code here, and write export with: out.write("...") + /** + * Appeler au début de l'export + * + * @param simulation la simulation dont on souhaite exporter les resultats + * @param out la sortie sur lequel il faut ecrire l'export + * @throws Exception if export fail + */ + public void exportBegin(SimulationStorage simulation, Writer out) + throws Exception { + // if you need to do something at the begin of export, put your code here } + + /** + * Exporte les resultats, cette methode est appellee a la fin de chaque pas + * de temps. Elle peut ecrire dans le fichier via le parametre out, + * ou collecter les informations et les ecrires a la fin de la simulation + * lorsque la methode {@link #export(fr.ifremer.isisfish.datastore.SimulationStorage, java.io.Writer) + * est appelee. + * + * @param simulation la simulation dont on souhaite exporter les resultats + * @param step le pas de temps courant de la simulation + * @param out la sortie sur lequel il faut ecrire l'export + * @throws Exception if export fail + */ + @Override + public void export(SimulationStorage simulation, TimeStep step, Writer out) + throws Exception { + // If your export can be done by step, write your code here. + // You can collect data and write result in exportEnd method. + // If you need to access database during simulation + // you can use: TopiaContext tx = SimulationContext.get().getDB() + + // example: + // MatrixND mat = simulation.getResultStorage().getMatrix(step, + // MatrixBiomass.class.getSimpleName()); + // if (mat != null) { // can be null if no result for this step + // for (MatrixIterator i = mat.iterator(); i.hasNext();) { + // i.next(); + // Object[] sems = i.getSemanticsCoordinates(); + // Strategy strategy = (Strategy) sems[0]; + // Metier metier = (Metier) sems[1]; + // + // double val = i.getValue(); + // out.write(step.getStep() + strategy.getName() + ";" + // + metier.getName() + val + "\n"); + // } + // } + } + + /** + * Appeler a la fin de l'export + * + * @param simulation la simulation dont on souhaite exporter les resultats + * @param out la sortie sur lequel il faut ecrire l'export + * @throws Exception if export fail + */ + public void exportEnd(SimulationStorage simulation, Writer out) + throws Exception { + // if you need to do something at the end of export, put your code here + } + } Deleted: trunk/src/main/resources/templates/script/exportStep.ftl =================================================================== --- trunk/src/main/resources/templates/script/exportStep.ftl 2016-03-01 10:57:05 UTC (rev 4328) +++ trunk/src/main/resources/templates/script/exportStep.ftl 2016-03-01 10:58:01 UTC (rev 4329) @@ -1,183 +0,0 @@ -<#-- - #%L - IsisFish - - $Id: export.ftl 4156 2014-12-09 11:27:18Z echatellier $ - $HeadURL: http://svn.forge.codelutin.com/svn/isis-fish/trunk/src/main/resources/templa... $ - %% - Copyright (C) 2014 - 2016 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% ---> -/* - * Copyright (C) ${date?date?string("yyyy")} ${author} - * - * 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>. - */ - -package exports; - -import org.apache.commons.logging.Log; -import org.apache.commons.logging.LogFactory; -import java.io.Writer; - -import org.nuiton.math.matrix.*; -import resultinfos.*; - -import fr.ifremer.isisfish.util.Doc; -import fr.ifremer.isisfish.entities.*; -import fr.ifremer.isisfish.export.ExportStep; -import fr.ifremer.isisfish.datastore.SimulationStorage; -import fr.ifremer.isisfish.simulator.ResultManager; -import fr.ifremer.isisfish.types.TimeStep; - -/** - * ${name}.java - * - * Created: ${date?date?string.long} - * - * @author ${author} <${email}> - * @version $Revision: 4156 $ - * - * Last update: $Date: 2014-12-09 12:27:18 +0100 (mar. 09 déc. 2014) ${date?date?string.long} $ - * by : $Author: echatellier ${author} $ - */ -public class ${name} implements ExportStep { - - /** to use log facility, just put in your code: log.info(\"...\"); */ - private static Log log = LogFactory.getLog(${name}.class); - - protected String[] necessaryResult = { - // put here all necessary result for this rule - // example: - // MatrixBiomass.NAME, - // MatrixNetValueOfLandingsPerStrategyMet.NAME, - }; - - /** - * Necessary results names for export execution. - * - * @return the necessaryResult name - */ - @Override - public String[] getNecessaryResult() { - return this.necessaryResult; - } - - /** - * Return Export description. - * - * @return string displayable to the end user - */ - @Override - public String getExportFilename() { - return "${name}"; - } - - /** - * Return filename used to contains export data. - * - * @return filename by example "myexport" - */ - @Override - public String getExtensionFilename() { - return ".csv"; - } - - /** - * Return extension used as filename name extension. - * - * @return extension by example ".csv" - */ - @Override - public String getDescription() { - return "TODO export description"; - } - - /** - * Appeler au début de l'export - * - * @param simulation la simulation dont on souhaite exporter les resultats - * @param out la sortie sur lequel il faut ecrire l'export - * @throws Exception if export fail - */ - public void exportBegin(SimulationStorage simulation, Writer out) - throws Exception { - // if you need to do something at the begin of export, put your code here - } - - /** - * Exporte les resultats, cette methode est appellee a la fin de chaque pas - * de temps. Elle peut ecrire dans le fichier via le parametre out, - * ou collecter les informations et les ecrires a la fin de la simulation - * lorsque la methode {@link #export(fr.ifremer.isisfish.datastore.SimulationStorage, java.io.Writer) - * est appelee. - * - * @param simulation la simulation dont on souhaite exporter les resultats - * @param step le pas de temps courant de la simulation - * @param out la sortie sur lequel il faut ecrire l'export - * @throws Exception if export fail - */ - @Override - public void export(SimulationStorage simulation, TimeStep step, Writer out) - throws Exception { - // If your export can be done by step, write your code here. - // You can collect data and write result in exportEnd method. - // If you need to access database during simulation - // you can use: TopiaContext tx = SimulationContext.get().getDB() - - // example: - // MatrixND mat = simulation.getResultStorage().getMatrix(step, - // MatrixBiomass.class.getSimpleName()); - // if (mat != null) { // can be null if no result for this step - // for (MatrixIterator i = mat.iterator(); i.hasNext();) { - // i.next(); - // Object[] sems = i.getSemanticsCoordinates(); - // Strategy strategy = (Strategy) sems[0]; - // Metier metier = (Metier) sems[1]; - // - // double val = i.getValue(); - // out.write(step.getStep() + strategy.getName() + ";" - // + metier.getName() + val + "\n"); - // } - // } - } - - /** - * Appeler a la fin de l'export - * - * @param simulation la simulation dont on souhaite exporter les resultats - * @param out la sortie sur lequel il faut ecrire l'export - * @throws Exception if export fail - */ - public void exportEnd(SimulationStorage simulation, Writer out) - throws Exception { - // if you need to do something at the end of export, put your code here - } - -} Modified: trunk/src/main/resources/templates/script/objective.ftl =================================================================== --- trunk/src/main/resources/templates/script/objective.ftl 2016-03-01 10:57:05 UTC (rev 4328) +++ trunk/src/main/resources/templates/script/objective.ftl 2016-03-01 10:58:01 UTC (rev 4329) @@ -5,7 +5,7 @@ $Id$ $HeadURL$ %% - Copyright (C) 2014 Ifremer, CodeLutin, Chatellier Eric + Copyright (C) 2014 - 2016 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 @@ -39,7 +39,6 @@ * License along with this program. If not, see * <http://www.gnu.org/licenses/gpl-3.0.html>. */ - package objectives; import org.apache.commons.logging.Log; @@ -60,13 +59,6 @@ /** * ${name}.java - * - * Created: ${date?date?string.long} - * - * @author ${author} <${email}> - * @version $Revision$ - * Last update: $Date${date?date?string.long} $ - * by : $Author${author} $ */ public class ${name} implements Objective { Modified: trunk/src/main/resources/templates/script/optimization.ftl =================================================================== --- trunk/src/main/resources/templates/script/optimization.ftl 2016-03-01 10:57:05 UTC (rev 4328) +++ trunk/src/main/resources/templates/script/optimization.ftl 2016-03-01 10:58:01 UTC (rev 4329) @@ -5,7 +5,7 @@ $Id$ $HeadURL$ %% - Copyright (C) 2014 Ifremer, CodeLutin, Chatellier Eric + Copyright (C) 2014 - 2016 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 @@ -39,7 +39,6 @@ * License along with this program. If not, see * <http://www.gnu.org/licenses/gpl-3.0.html>. */ - package optimizations; import org.apache.commons.logging.Log; @@ -61,13 +60,6 @@ /** * ${name}.java - * - * Created: ${date?date?string.long} - * - * @author ${author} <${email}> - * @version $Revision$ - * Last update: $Date${date?date?string.long} $ - * by : $Author${author} $ */ public class ${name} implements Optimization { Modified: trunk/src/main/resources/templates/script/resultinfo.ftl =================================================================== --- trunk/src/main/resources/templates/script/resultinfo.ftl 2016-03-01 10:57:05 UTC (rev 4328) +++ trunk/src/main/resources/templates/script/resultinfo.ftl 2016-03-01 10:58:01 UTC (rev 4329) @@ -5,7 +5,7 @@ $Id: rule.ftl 4277 2015-06-21 17:24:03Z echatellier $ $HeadURL: http://svn.codelutin.com/isis-fish/trunk/src/main/resources/templates/script... $ %% - Copyright (C) 2015 Ifremer, CodeLutin, Chatellier Eric + Copyright (C) 2015 - 2016 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 @@ -39,7 +39,6 @@ * License along with this program. If not, see * <http://www.gnu.org/licenses/gpl-3.0.html>. */ - package resultinfos; import fr.ifremer.isisfish.result.AbstractResultInfo; @@ -46,8 +45,6 @@ /** * ${name}.java - * - * Created: ${date?date?string.long} */ public class ${name} extends AbstractResultInfo { Modified: trunk/src/main/resources/templates/script/rule.ftl =================================================================== --- trunk/src/main/resources/templates/script/rule.ftl 2016-03-01 10:57:05 UTC (rev 4328) +++ trunk/src/main/resources/templates/script/rule.ftl 2016-03-01 10:58:01 UTC (rev 4329) @@ -5,7 +5,7 @@ $Id$ $HeadURL$ %% - Copyright (C) 2009 - 2015 Ifremer, CodeLutin, Chatellier Eric + Copyright (C) 2009 - 2016 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 @@ -39,7 +39,6 @@ * License along with this program. If not, see * <http://www.gnu.org/licenses/gpl-3.0.html>. */ - package rules; import org.apache.commons.logging.Log; @@ -59,13 +58,6 @@ /** * ${name}.java - * - * Created: ${date?date?string.long} - * - * @author ${author} <${email}> - * @version $Revision$ - * Last update: $Date${date?date?string.long} $ - * by : $Author${author} $ */ public class ${name} extends AbstractRule { Modified: trunk/src/main/resources/templates/script/script.ftl =================================================================== --- trunk/src/main/resources/templates/script/script.ftl 2016-03-01 10:57:05 UTC (rev 4328) +++ trunk/src/main/resources/templates/script/script.ftl 2016-03-01 10:58:01 UTC (rev 4329) @@ -5,7 +5,7 @@ $Id$ $HeadURL$ %% - Copyright (C) 2009 - 2014 Ifremer, CodeLutin, Chatellier Eric + Copyright (C) 2009 - 2016 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 @@ -39,7 +39,6 @@ * License along with this program. If not, see * <http://www.gnu.org/licenses/gpl-3.0.html>. */ - package scripts; import org.apache.commons.logging.Log; @@ -51,14 +50,6 @@ /** * ${name}.java - * - * Created: ${date?date?string.long} - * - * @author ${author} <${email}> - * @version $Revision$ - * - * Last update: $Date${date?date?string.long} $ - * by : $Author${author} $ */ public class ${name} { Modified: trunk/src/main/resources/templates/script/sensitivityanalysis.ftl =================================================================== --- trunk/src/main/resources/templates/script/sensitivityanalysis.ftl 2016-03-01 10:57:05 UTC (rev 4328) +++ trunk/src/main/resources/templates/script/sensitivityanalysis.ftl 2016-03-01 10:58:01 UTC (rev 4329) @@ -5,7 +5,7 @@ $Id$ $HeadURL$ %% - Copyright (C) 2009 - 2014 Ifremer, CodeLutin, Chatellier Eric + Copyright (C) 2009 - 2016 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 @@ -39,7 +39,6 @@ * License along with this program. If not, see * <http://www.gnu.org/licenses/gpl-3.0.html>. */ - package sensitivityanalysis; import java.util.List; @@ -58,14 +57,6 @@ /** * ${name}.java - * - * Created: ${date?date?string.long} - * - * @author ${author} <${email}> - * @version $Revision$ - * - * Last update: $Date${date?date?string.long} $ - * by : $Author${author} $ */ public class ${name} extends AbstractSensitivityAnalysis { Modified: trunk/src/main/resources/templates/script/sensitivityexport.ftl =================================================================== --- trunk/src/main/resources/templates/script/sensitivityexport.ftl 2016-03-01 10:57:05 UTC (rev 4328) +++ trunk/src/main/resources/templates/script/sensitivityexport.ftl 2016-03-01 10:58:01 UTC (rev 4329) @@ -5,7 +5,7 @@ $Id$ $HeadURL$ %% - Copyright (C) 2009 - 2014 Ifremer, CodeLutin, Chatellier Eric + Copyright (C) 2009 - 2016 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 @@ -57,14 +57,6 @@ /** * ${name}.java - * - * Created: ${date?date?string.long} - * - * @author ${author} <${email}> - * @version $Revision$ - * - * Last update: $Date${date?date?string.long} $ - * by : $Author${author} $ */ public class ${name} implements SensitivityExport { Modified: trunk/src/main/resources/templates/script/simulationplan.ftl =================================================================== --- trunk/src/main/resources/templates/script/simulationplan.ftl 2016-03-01 10:57:05 UTC (rev 4328) +++ trunk/src/main/resources/templates/script/simulationplan.ftl 2016-03-01 10:58:01 UTC (rev 4329) @@ -5,7 +5,7 @@ $Id$ $HeadURL$ %% - Copyright (C) 2009 - 2014 Ifremer, CodeLutin, Chatellier Eric + Copyright (C) 2009 - 2016 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 @@ -39,7 +39,6 @@ * License along with this program. If not, see * <http://www.gnu.org/licenses/gpl-3.0.html>. */ - package simulationplans; import org.apache.commons.logging.Log; @@ -64,13 +63,6 @@ /** * ${name}.java - * - * Created: ${date?date?string.long} - * - * @author ${author} <${email}> - * @version $Revision$ - * Last update: $Date${date?date?string.long} $ - * by : $Author${author} $ */ public class ${name} implements SimulationPlan { Modified: trunk/src/main/resources/templates/script/simulator.ftl =================================================================== --- trunk/src/main/resources/templates/script/simulator.ftl 2016-03-01 10:57:05 UTC (rev 4328) +++ trunk/src/main/resources/templates/script/simulator.ftl 2016-03-01 10:58:01 UTC (rev 4329) @@ -5,7 +5,7 @@ $Id$ $HeadURL$ %% - Copyright (C) 2009 - 2014 Ifremer, CodeLutin, Chatellier Eric + Copyright (C) 2009 - 2016 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 @@ -39,7 +39,6 @@ * License along with this program. If not, see * <http://www.gnu.org/licenses/gpl-3.0.html>. */ - package simulators; import org.apache.commons.logging.Log; @@ -54,14 +53,6 @@ /** * ${name}.java - * - * Created: ${date?date?string.long} - * - * @author ${author} <${email}> - * @version $Revision$ - * - * Last update $Date ${date?date?string.long} $ - * by : $Author${author} $ */ public class ${name} implements Simulator { Modified: trunk/src/test/java/fr/ifremer/isisfish/datastore/ExportStepStorageTest.java =================================================================== --- trunk/src/test/java/fr/ifremer/isisfish/datastore/ExportStepStorageTest.java 2016-03-01 10:57:05 UTC (rev 4328) +++ trunk/src/test/java/fr/ifremer/isisfish/datastore/ExportStepStorageTest.java 2016-03-01 10:58:01 UTC (rev 4329) @@ -70,7 +70,7 @@ // get template Template template = freemarkerConfiguration - .getTemplate(ExportStorage.EXPORT_STEP_TEMPLATE); + .getTemplate(ExportStorage.EXPORT_TEMPLATE); // context values Map<String, Object> root = new HashMap<String, Object>();