Ensure WAR is regenerated and installed even - SIDP-237
authorlajoie <lajoie@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Wed, 15 Oct 2008 19:24:49 +0000 (19:24 +0000)
committerlajoie <lajoie@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Wed, 15 Oct 2008 19:24:49 +0000 (19:24 +0000)
git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/branches/REL_2@2782 ab3bd59b-922f-494d-bb5f-6f0a3c29deca

doc/RELEASE-NOTES.txt
src/installer/resources/build.xml

index 2f8d189..7918bc5 100644 (file)
@@ -32,4 +32,5 @@ Changes in Release 2.1.0
 [SIDP-227] - Default relying-party.xml has SAML2-specific security policy rules included in SAML 1 security policies
 [SIDP-228] - Improve error reporting in SAML 2 profile handlers when no encryption key is resolveable for the peer entity ID
 [SIDP-229] - IdP Metadata changes to KeyDescriptor not fully flushed from IdP cache
-[SIDP-230] - sanity check provided credentials
\ No newline at end of file
+[SIDP-230] - sanity check provided credentials
+[SIDP-237] - Re-run of install.sh does not create war again
\ No newline at end of file
index d66169d..0e14cd7 100755 (executable)
     <taskdef resource="edu/internet2/middleware/ant/antlib.xml" />
 
     <target name="install" description="Installs the identity provider software.">
+       
+       <echo message="!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" />
+       <echo message="Be sure you have read the installation/upgrade instructions on the Shibboleth website before proceeding." />
+       <echo message="!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" />
         
         <input message="Where should the Shibboleth Identity Provider software be installed?"
                addproperty="idp.home.input"
                 <regexSplit input="${idp.hostname}" regex="^.*\.(.*\..*$)" addproperty="idp.scope" />
                 <stringFromFile input="${idp.home.path}/credentials/idp.crt" addProperty="idp.cert" />
                     
-                <copy todir="${idp.home.path}/bin" preservelastmodified="true">
+                <copy todir="${idp.home.path}/bin" preservelastmodified="true" overwrite="false">
                     <fileset dir="${tools.dir}/bash" />
                     <fileset dir="${tools.dir}/bat" />
                     <filterset begintoken="$" endtoken="$">
                     </filterset>
                 </copy>
 
-                <copy todir="${idp.home.path}/conf" preservelastmodified="true">
+                <copy todir="${idp.home.path}/conf" preservelastmodified="true" overwrite="false">
                     <fileset dir="${resources.dir}/conf-tmpl" />
                     <filterset begintoken="$" endtoken="$">
                         <filter token="IDP_HOME" value="${idp.home.path}" />
         </copy>
 
         <!-- build the war file -->
-        <war warfile="${idp.home.path}/war/${war.name}.war" webxml="${installer.dir}/web.xml">
+        <war warfile="${installer.dir}/${war.name}.war" webxml="${installer.dir}/web.xml">
             <lib dir="${basedir}/lib" />
             <webinf dir="${webapp.dir}/WEB-INF" excludes="web.xml" />
             <fileset dir="${webapp.dir}" excludes="WEB-INF/**" />
         </war>
+       <copy file="${installer.dir}/${war.name}.war" todir="${idp.home.path}/war" preservelastmodified="true" overwrite="true" />
 
-        <!-- Remove generated web.xml -->
+        <!-- Remove generated files -->
         <delete file="${installer.dir}/web.xml" />
+       <delete file="${installer.dir}/${war.name}.war" />
+       
     </target>
 
 </project>
\ No newline at end of file