An Ant target for a developer version of origin+sp deployed directly to Tomcat
authorgilbert <gilbert@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Thu, 28 Oct 2004 13:55:13 +0000 (13:55 +0000)
committergilbert <gilbert@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Thu, 28 Oct 2004 13:55:13 +0000 (13:55 +0000)
git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/trunk@1176 ab3bd59b-922f-494d-bb5f-6f0a3c29deca

build.xml

index 52032ce..fbb3302 100755 (executable)
--- a/build.xml
+++ b/build.xml
     <target name="package-origin">
         <war warfile="${dist}/${distname}.war" webxml="${configroot}/origin.xml" basedir="${approot}" update="no" />
     </target>
-    
+
+       <!-- Ant target used to test the Java Service Provider.
+            *** You may not agree with these decisions.
+            Tomcat must be stopped during the build.
+            Compile everything, deploy the WAR, and delete the old directory 
+            so the WAR gets expanded when Tomcat restarts.
+            Ant and Eclipse should agree on the Build directory, and the
+            class files should remain in place after deployment. 
+            -->
+    <target name="dist-target" depends="compile, package-target">
+       <copy file="${dist}/${distname}.war" tofile="${tomcat.home}/webapps/${distname}.war" />
+       <delete dir="${tomcat.home}/webapps/${distname}" quiet="yes" />
+    </target>  
+       
+    <target name="package-target">
+        <war warfile="${dist}/${distname}.war" webxml="${configroot}/target.xml" basedir="${approot}" update="no" />
+    </target>
     <target name="dist-wayf" depends="compile, package-wayf, clean-build" />
     <target name="package-wayf">
         <war warfile="${dist}/${distname}-wayf.war" webxml="${configroot}/wayf.xml" basedir="${approot}" update="no" />