Author: echatellier Date: 2011-10-28 15:47:33 +0200 (Fri, 28 Oct 2011) New Revision: 3507 Url: http://forge.codelutin.com/repositories/revision/isis-fish/3507 Log: Udpate header and third party Modified: trunk/src/license/THIRD-PARTY.properties trunk/src/main/java/fr/ifremer/isisfish/datastore/StorageHelper.java trunk/src/main/java/fr/ifremer/isisfish/equation/PopulationMaturityOgiveEquation.java trunk/src/main/java/fr/ifremer/isisfish/ui/widget/editor/MonthComponent.java trunk/src/main/java/fr/ifremer/isisfish/ui/widget/editor/StepComponent.java trunk/src/main/java/fr/ifremer/isisfish/util/IsisMatrixSemanticMapper.java trunk/src/main/resources/templates/script/equation.ftl trunk/src/main/resources/templates/script/export.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/main/resources/templates/ssh/qsub-script.ftl trunk/src/test/java/fr/ifremer/isisfish/simulator/launcher/SshSimulatorLauncherTest.java Modified: trunk/src/license/THIRD-PARTY.properties =================================================================== --- trunk/src/license/THIRD-PARTY.properties 2011-10-28 13:30:42 UTC (rev 3506) +++ trunk/src/license/THIRD-PARTY.properties 2011-10-28 13:47:33 UTC (rev 3507) @@ -5,21 +5,24 @@ # - ASM License # - Apache Software License # - Apache Software License Version 2.0 +# - Apache Software License, Version 1.1 # - Apache Software License, Version 2.0 # - BBN Technologies # - BSD License # - BSD licence +# - BSD style # - BSD-style license # - COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.0 -# - Common Development and Distribution License (CDDL) v1.0 # - Common Public License Version 1.0 # - GNU General Public License - Version 2 with the class path exception # - GNU Lesser General Public Licence # - GPL # - ICU License +# - Indiana University Extreme! Lab Software License, vesion 1.1.1 # - JDom license # - Java Transaction API (JTA) License # - Jaxen license +# - Lesser General Public License (LGPL v. 2.1) # - Lesser General Public License (LGPL) # - Lesser General Public License (LGPL) v 3.0 # - Lesser General Public License (LPGL) @@ -30,6 +33,7 @@ # - Sun's Binary Code License # - The Apache Software License, Version 2.0 # - The H2 License, Version 1.0 +# - http://asm.ow2.org/license.html # - http://sqljet.com/ # - http://svnkit.com/license.html # - http://www.trilead.com/Products/Trilead_SSH_for_Java/License/ @@ -38,33 +42,34 @@ # Please fill the missing licenses for dependencies : # # -#Wed Jun 15 11:57:08 CEST 2011 -antlr--antlr--2.7.6--jar=BSD License -aspectwerkz--aspectwerkz--2.0--jar=GNU Lesser General Public License -aspectwerkz--aspectwerkz-core--2.0--jar=GNU Lesser General Public License -aspectwerkz--aspectwerkz-jdk5--2.0--jar=GNU Lesser General Public License -com.ibm.icu--icu4j--2.6.1--jar=ICU License -com.sun--tools--1.6.0.16--jar=Sun's Binary Code License -commons-jxpath--commons-jxpath--1.3--jar=The Apache Software License, Version 2.0 -commons-primitives--commons-primitives--1.0--jar=The Apache Software License, Version 2.0 -dom4j--dom4j--1.6.1--jar=BSD License -javassist--javassist--3.8.0.GA--jar=GNU Lesser General Public License -javax.activation--activation--1.1.1--jar=COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.0 -javax.mail--mail--1.4.1--jar=License Agreement for JavaMail(TM) API -javax.transaction--jta--1.1--jar=Java Transaction API (JTA) License -jaxen--jaxen--1.1.1--jar=Jaxen license -jdom--jdom--1.0--jar=JDom license -jrexx--jrexx--1.1.1--jar=Apache Software License -net.java.dev.jna--jna--3.2.3--jar=Lesser General Public License (LGPL v. 2.1) -ognl--ognl--3.0--jar=The OpenSymphony Software License, Version 1.1 -org.antlr--antlr-runtime--3.1.3--jar=ANTLR 3 License -org.nuiton.thirdparty--JRI--0.8-4--jar=Lesser General Public License (LGPL v. 2.1) -org.nuiton.thirdparty--REngine--0.6-1--jar=Lesser General Public License (LGPL v. 2.1) -org.nuiton.thirdparty--Rserve--0.6-1--jar=Lesser General Public License (LGPL v. 2.1) -org.nuiton.thirdparty--asm--1.5.4-snapshot--jar=ASM License -org.nuiton.thirdparty--asm-attrs--1.5.4-snapshot--jar=ASM License -org.nuiton.thirdparty--asm-util--1.5.4-snapshot--jar=ASM License -qdox--qdox--1.4--jar=Apache Software License, Version 2.0 -trove--trove--1.0.2--jar=Lesser General Public License (LGPL) -xalan--xalan--2.6.0--jar=Apache Software License Version 2.0 -xerces--xercesImpl--2.6.2--jar=Apache Software License, Version 1.1 +#Fri Oct 28 15:35:59 CEST 2011 +antlr--antlr--2.7.6=BSD License +asm--asm-commons--3.1=http\://asm.ow2.org/license.html +asm--asm-tree--3.1=http\://asm.ow2.org/license.html +aspectwerkz--aspectwerkz--2.0=GNU Lesser General Public License +aspectwerkz--aspectwerkz-core--2.0=GNU Lesser General Public License +aspectwerkz--aspectwerkz-jdk5--2.0=GNU Lesser General Public License +com.ibm.icu--icu4j--2.6.1=ICU License +com.sun--tools--1.6.0.16=Sun's Binary Code License +commons-jxpath--commons-jxpath--1.3=The Apache Software License, Version 2.0 +commons-primitives--commons-primitives--1.0=The Apache Software License, Version 2.0 +dom4j--dom4j--1.6.1=BSD License +javassist--javassist--3.8.0.GA=GNU Lesser General Public License +javax.activation--activation--1.1.1=COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.0 +javax.mail--mail--1.4.1=License Agreement for JavaMail(TM) API +javax.transaction--jta--1.1=Java Transaction API (JTA) License +jaxen--jaxen--1.1.1=Jaxen license +jdom--jdom--1.0=JDom license +jrexx--jrexx--1.1.1=Apache Software License +net.java.dev.jna--jna--3.2.3=Lesser General Public License (LGPL v. 2.1) +org.antlr--antlr-runtime--3.1.3=ANTLR 3 License +org.nuiton.thirdparty--JRI--0.8-4=Lesser General Public License (LGPL v. 2.1) +org.nuiton.thirdparty--REngine--0.6-1=Lesser General Public License (LGPL v. 2.1) +org.nuiton.thirdparty--Rserve--0.6-1=Lesser General Public License (LGPL v. 2.1) +org.nuiton.thirdparty--asm--1.5.4-snapshot=ASM License +org.nuiton.thirdparty--asm-attrs--1.5.4-snapshot=ASM License +org.nuiton.thirdparty--asm-util--1.5.4-snapshot=ASM License +qdox--qdox--1.4=Apache Software License, Version 2.0 +trove--trove--1.0.2=Lesser General Public License (LGPL) +xalan--xalan--2.6.0=Apache Software License Version 2.0 +xerces--xercesImpl--2.6.2=Apache Software License, Version 1.1 Modified: trunk/src/main/java/fr/ifremer/isisfish/datastore/StorageHelper.java =================================================================== --- trunk/src/main/java/fr/ifremer/isisfish/datastore/StorageHelper.java 2011-10-28 13:30:42 UTC (rev 3506) +++ trunk/src/main/java/fr/ifremer/isisfish/datastore/StorageHelper.java 2011-10-28 13:47:33 UTC (rev 3507) @@ -1,25 +1,23 @@ /* * #%L - * - * * $Id$ * $HeadURL$ * %% * Copyright (C) 2011 Ifremer, Codelutin, Chatellier Eric * %% * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as - * published by the Free Software Foundation, either version 3 of the + * it under the terms of the GNU General Public License as + * published by the Free Software Foundation, either version 2 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 Lesser Public License for more details. + * GNU General Public License for more details. * - * You should have received a copy of the GNU General Lesser Public + * You should have received a copy of the GNU General Public * License along with this program. If not, see - * <http://www.gnu.org/licenses/lgpl-3.0.html>. + * <http://www.gnu.org/licenses/gpl-2.0.html>. * #L% */ Modified: trunk/src/main/java/fr/ifremer/isisfish/equation/PopulationMaturityOgiveEquation.java =================================================================== --- trunk/src/main/java/fr/ifremer/isisfish/equation/PopulationMaturityOgiveEquation.java 2011-10-28 13:30:42 UTC (rev 3506) +++ trunk/src/main/java/fr/ifremer/isisfish/equation/PopulationMaturityOgiveEquation.java 2011-10-28 13:47:33 UTC (rev 3507) @@ -1,25 +1,23 @@ /* * #%L - * - * * $Id$ * $HeadURL$ * %% * Copyright (C) 2011 Ifremer, Codelutin, Chatellier Eric * %% * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as - * published by the Free Software Foundation, either version 3 of the + * it under the terms of the GNU General Public License as + * published by the Free Software Foundation, either version 2 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 Lesser Public License for more details. + * GNU General Public License for more details. * - * You should have received a copy of the GNU General Lesser Public + * You should have received a copy of the GNU General Public * License along with this program. If not, see - * <http://www.gnu.org/licenses/lgpl-3.0.html>. + * <http://www.gnu.org/licenses/gpl-2.0.html>. * #L% */ Modified: trunk/src/main/java/fr/ifremer/isisfish/ui/widget/editor/MonthComponent.java =================================================================== --- trunk/src/main/java/fr/ifremer/isisfish/ui/widget/editor/MonthComponent.java 2011-10-28 13:30:42 UTC (rev 3506) +++ trunk/src/main/java/fr/ifremer/isisfish/ui/widget/editor/MonthComponent.java 2011-10-28 13:47:33 UTC (rev 3507) @@ -1,25 +1,23 @@ /* * #%L - * - * * $Id$ * $HeadURL$ * %% * Copyright (C) 2011 Ifremer, Codelutin, Chatellier Eric * %% * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as - * published by the Free Software Foundation, either version 3 of the + * it under the terms of the GNU General Public License as + * published by the Free Software Foundation, either version 2 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 Lesser Public License for more details. + * GNU General Public License for more details. * - * You should have received a copy of the GNU General Lesser Public + * You should have received a copy of the GNU General Public * License along with this program. If not, see - * <http://www.gnu.org/licenses/lgpl-3.0.html>. + * <http://www.gnu.org/licenses/gpl-2.0.html>. * #L% */ Modified: trunk/src/main/java/fr/ifremer/isisfish/ui/widget/editor/StepComponent.java =================================================================== --- trunk/src/main/java/fr/ifremer/isisfish/ui/widget/editor/StepComponent.java 2011-10-28 13:30:42 UTC (rev 3506) +++ trunk/src/main/java/fr/ifremer/isisfish/ui/widget/editor/StepComponent.java 2011-10-28 13:47:33 UTC (rev 3507) @@ -1,25 +1,23 @@ /* * #%L - * - * * $Id$ * $HeadURL$ * %% * Copyright (C) 2011 Ifremer, Codelutin, Chatellier Eric * %% * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as - * published by the Free Software Foundation, either version 3 of the + * it under the terms of the GNU General Public License as + * published by the Free Software Foundation, either version 2 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 Lesser Public License for more details. + * GNU General Public License for more details. * - * You should have received a copy of the GNU General Lesser Public + * You should have received a copy of the GNU General Public * License along with this program. If not, see - * <http://www.gnu.org/licenses/lgpl-3.0.html>. + * <http://www.gnu.org/licenses/gpl-2.0.html>. * #L% */ Modified: trunk/src/main/java/fr/ifremer/isisfish/util/IsisMatrixSemanticMapper.java =================================================================== --- trunk/src/main/java/fr/ifremer/isisfish/util/IsisMatrixSemanticMapper.java 2011-10-28 13:30:42 UTC (rev 3506) +++ trunk/src/main/java/fr/ifremer/isisfish/util/IsisMatrixSemanticMapper.java 2011-10-28 13:47:33 UTC (rev 3507) @@ -1,25 +1,23 @@ /* * #%L - * - * * $Id$ * $HeadURL$ * %% * Copyright (C) 2011 Ifremer, Codelutin, Chatellier Eric * %% * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as - * published by the Free Software Foundation, either version 3 of the + * it under the terms of the GNU General Public License as + * published by the Free Software Foundation, either version 2 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 Lesser Public License for more details. + * GNU General Public License for more details. * - * You should have received a copy of the GNU General Lesser Public + * You should have received a copy of the GNU General Public * License along with this program. If not, see - * <http://www.gnu.org/licenses/lgpl-3.0.html>. + * <http://www.gnu.org/licenses/gpl-2.0.html>. * #L% */ @@ -97,4 +95,4 @@ //return valueId; } -} \ No newline at end of file +} Modified: trunk/src/main/resources/templates/script/equation.ftl =================================================================== --- trunk/src/main/resources/templates/script/equation.ftl 2011-10-28 13:30:42 UTC (rev 3506) +++ trunk/src/main/resources/templates/script/equation.ftl 2011-10-28 13:47:33 UTC (rev 3507) @@ -1,2 +1,26 @@ +<#-- + #%L + IsisFish + + $Id$ + $HeadURL$ + %% + Copyright (C) 2009 - 2011 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 2 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-2.0.html>. + #L% +--> // ${name} // put your code here Modified: trunk/src/main/resources/templates/script/export.ftl =================================================================== --- trunk/src/main/resources/templates/script/export.ftl 2011-10-28 13:30:42 UTC (rev 3506) +++ trunk/src/main/resources/templates/script/export.ftl 2011-10-28 13:47:33 UTC (rev 3507) @@ -1,3 +1,27 @@ +<#-- + #%L + IsisFish + + $Id$ + $HeadURL$ + %% + Copyright (C) 2009 - 2011 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 2 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-2.0.html>. + #L% +--> /* * Copyright (C) ${date?date?string("yyyy")} ${author} * Modified: trunk/src/main/resources/templates/script/rule.ftl =================================================================== --- trunk/src/main/resources/templates/script/rule.ftl 2011-10-28 13:30:42 UTC (rev 3506) +++ trunk/src/main/resources/templates/script/rule.ftl 2011-10-28 13:47:33 UTC (rev 3507) @@ -1,3 +1,27 @@ +<#-- + #%L + IsisFish + + $Id$ + $HeadURL$ + %% + Copyright (C) 2009 - 2011 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 2 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-2.0.html>. + #L% +--> /* * Copyright (C) ${date?date?string("yyyy")} ${author} * Modified: trunk/src/main/resources/templates/script/script.ftl =================================================================== --- trunk/src/main/resources/templates/script/script.ftl 2011-10-28 13:30:42 UTC (rev 3506) +++ trunk/src/main/resources/templates/script/script.ftl 2011-10-28 13:47:33 UTC (rev 3507) @@ -1,3 +1,27 @@ +<#-- + #%L + IsisFish + + $Id$ + $HeadURL$ + %% + Copyright (C) 2009 - 2011 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 2 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-2.0.html>. + #L% +--> /* * Copyright (C) ${date?date?string("yyyy")} ${author} * Modified: trunk/src/main/resources/templates/script/sensitivityanalysis.ftl =================================================================== --- trunk/src/main/resources/templates/script/sensitivityanalysis.ftl 2011-10-28 13:30:42 UTC (rev 3506) +++ trunk/src/main/resources/templates/script/sensitivityanalysis.ftl 2011-10-28 13:47:33 UTC (rev 3507) @@ -1,3 +1,27 @@ +<#-- + #%L + IsisFish + + $Id$ + $HeadURL$ + %% + Copyright (C) 2009 - 2011 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 2 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-2.0.html>. + #L% +--> /* * Copyright (C) ${date?date?string("yyyy")} ${author} * Modified: trunk/src/main/resources/templates/script/sensitivityexport.ftl =================================================================== --- trunk/src/main/resources/templates/script/sensitivityexport.ftl 2011-10-28 13:30:42 UTC (rev 3506) +++ trunk/src/main/resources/templates/script/sensitivityexport.ftl 2011-10-28 13:47:33 UTC (rev 3507) @@ -1,3 +1,27 @@ +<#-- + #%L + IsisFish + + $Id$ + $HeadURL$ + %% + Copyright (C) 2009 - 2011 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 2 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-2.0.html>. + #L% +--> /* * Copyright (C) ${date?date?string("yyyy")} ${author} * Modified: trunk/src/main/resources/templates/script/simulationplan.ftl =================================================================== --- trunk/src/main/resources/templates/script/simulationplan.ftl 2011-10-28 13:30:42 UTC (rev 3506) +++ trunk/src/main/resources/templates/script/simulationplan.ftl 2011-10-28 13:47:33 UTC (rev 3507) @@ -1,3 +1,27 @@ +<#-- + #%L + IsisFish + + $Id$ + $HeadURL$ + %% + Copyright (C) 2009 - 2011 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 2 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-2.0.html>. + #L% +--> /* * Copyright (C) ${date?date?string("yyyy")} ${author} * Modified: trunk/src/main/resources/templates/script/simulator.ftl =================================================================== --- trunk/src/main/resources/templates/script/simulator.ftl 2011-10-28 13:30:42 UTC (rev 3506) +++ trunk/src/main/resources/templates/script/simulator.ftl 2011-10-28 13:47:33 UTC (rev 3507) @@ -1,3 +1,27 @@ +<#-- + #%L + IsisFish + + $Id$ + $HeadURL$ + %% + Copyright (C) 2009 - 2011 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 2 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-2.0.html>. + #L% +--> /* * Copyright (C) ${date?date?string("yyyy")} ${author} * Modified: trunk/src/main/resources/templates/ssh/qsub-script.ftl =================================================================== --- trunk/src/main/resources/templates/ssh/qsub-script.ftl 2011-10-28 13:30:42 UTC (rev 3506) +++ trunk/src/main/resources/templates/ssh/qsub-script.ftl 2011-10-28 13:47:33 UTC (rev 3507) @@ -1,3 +1,27 @@ +<#-- + #%L + IsisFish + + $Id$ + $HeadURL$ + %% + Copyright (C) 2009 - 2011 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 2 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-2.0.html>. + #L% +--> #!/bin/csh cd "${isishome}" Modified: trunk/src/test/java/fr/ifremer/isisfish/simulator/launcher/SshSimulatorLauncherTest.java =================================================================== --- trunk/src/test/java/fr/ifremer/isisfish/simulator/launcher/SshSimulatorLauncherTest.java 2011-10-28 13:30:42 UTC (rev 3506) +++ trunk/src/test/java/fr/ifremer/isisfish/simulator/launcher/SshSimulatorLauncherTest.java 2011-10-28 13:47:33 UTC (rev 3507) @@ -284,4 +284,33 @@ Assert.assertTrue("String " + isisTemp + "/simulation-" + shortSimulationId + "_$PBS_ARRAY_INDEX-output.txt\" not found in template", content.indexOf(isisTemp + "/simulation-" + shortSimulationId + "_$PBS_ARRAY_INDEX-output.txt\"") > 0); Assert.assertTrue("Action --simulateRemotelly not on script", content.indexOf(" --simulateRemotelly ") > 0); } + + /** + * Test that prescript starts with shebang. + * + * @throws IOException when freemarker throws it + * @throws TemplateException when freemarker throws it + */ + @Test + public void testFreemarkerTemplateScriptShebang() throws IOException, TemplateException { + + // some things to test ! + String shortSimulationId = "as_ICES2010_M+_10%_152Param_2010-11-08-17-18"; + String simulationId = shortSimulationId + "_122"; + String simulationZip = "simulation-" + simulationId + "-preparation.zip"; + String simulationResultZip = "/tmp/simulation-" + simulationId + "-result.zip"; + String simulationPreScript = null; + + SSHSimulatorLauncher launcher = new SSHSimulatorLauncher(); + String content = launcher.getSimulationScriptLaunchContent( + SSHSimulatorLauncher.QSUB_SCRIPT_TEMPLATE, shortSimulationId, + simulationZip, true, simulationResultZip, simulationPreScript, true); + + if (log.isInfoEnabled()) { + log.info("Script content = " + content); + } + + // simulation parameters + Assert.assertTrue(content.startsWith("#!/bin/csh")); + } } \ No newline at end of file