Fixed a bug caused by recent class moves.
[java-idp.git] / build.xml
index 4d85e2a..e3629d0 100755 (executable)
--- a/build.xml
+++ b/build.xml
 
 
     <!-- Compile classes and move them to ${build} -->
-    <target name="compile" depends="init">
-        <javac srcdir="${src}" destdir="${build}" includes="**/*.java" debug="on">
+    <target name="compile" depends="init"
+       description="Compile source file, combine with schemas and conf directories">
+        <javac srcdir="${src}" destdir="${build}" includes="**/*.java" debug="on" 
+               target="1.3" source="1.3">
             <classpath refid="build.path" />
         </javac>
         <copy todir="${build}/schemas">
         <war warfile="${dist}/${distname}.war" webxml="${configroot}/origin.xml" basedir="${approot}" update="no" />
     </target>
        
-    <target name="dist-IdP-SP" depends="compile, test-IdP, package-IdP-SP, clean-build" />
-    <target name="package-IdP-SP">
+    <target name="dist-IdP-SP" depends="compile, package-IdP-SP, clean-build" 
+       description="Build application from source, create shibboleth.war file for IdP and SP"/>
+    <target name="package-IdP-SP" depends="compile"
+       description="Create shibboleth.war file from build output and IdP-SP deployment descriptor">
         <war warfile="${dist}/${distname}.war" webxml="${configroot}/IdP-SP.xml" basedir="${approot}" update="no" />
     </target>
 
         <tomcatUndeploy url="${url}" username="${username}" password="${password}" path="/${distname}"/>
     </target>
        
-       <target name="distcopy">
+       <target name="distcopy" description="Copy shibboleth.war to {tomcat.home}/webapps (Tomcat must be stopped first)">
                <!-- Deploy war file by copy and delete. Tomcat must not be
                     running when this occurs. --> 
                <copy file="${dist}/${distname}.war" 
         <taskdef name="genSalt" classname="edu.internet2.middleware.shibboleth.utils.HandleRepositorySecretGenerator" classpathref="build.path"/>
         <genSalt keyStorePath="${appconfig}/persistent.jks" keyStorePassword="shibhs" keyStoreKeyAlias="handleKey" keyStoreKeyPassword="shibhs" />
     </target>
+       
+       <target name="exampleCertificate">
+               <genkey alias="tomcat" storepass="exampleorg"
+                       keystore="${tomcat.home}/conf/example.jks"
+                       keyalg="RSA" validity="365"
+                       dname="cn=shibboleth.example.org, o=example.org, c=US"
+               />
+       </target>
 </project>