- Fixed bug where config files in src-conf did not have IDP_HOME/SP_HOME properly...
authorlajoie <lajoie@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Mon, 18 Jul 2005 14:03:34 +0000 (14:03 +0000)
committerlajoie <lajoie@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Mon, 18 Jul 2005 14:03:34 +0000 (14:03 +0000)
- Updated comments to reflect needed properties in ext-package target

git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/trunk@1727 ab3bd59b-922f-494d-bb5f-6f0a3c29deca

custom/extension-build.xml

index 3a84017..1dfc73e 100644 (file)
     </target>
 
     <!-- Builds a single extension, called multiple times by build-exts -->
-    <!--
-           Required Paramter
-               ext.filesystem.home - the path on the filesystem that the extension will be installed
-               ext.home.token - the token that represents the extensions installation point
-       -->
     <target name="ext-build" depends="ext-build-init" description="Builds the extension">
         <echo message="--- Starting to build module ${ext.name} in ${ext.root}" />
 
             <then>
                 <copy todir="${exts.dir}/lib">
                     <fileset dir="${ext.lib}" includes="*.jar" />
-                    <fileset dir="${ext.dist}" includes="*.jar" />
                 </copy>
             </then>
         </if>
             ext.build.function - the particular extension build function to invoke, acceptable values
                    ext-invoke, ext-clean, ext-install-filesystem 
                (some functions may require additional paramters, see documentation for each function)
+            ext.filesystem.home - the path on the filesystem that the extension will be installed
+                expected subdirectories are 'bin, 'etc', and 'lib'
+            ext.home.token - the token, in config files, to replace with the path to the IdP/SP home
     -->
     <target name="ext-package" depends="ext-build-init" description="Packages up the extension">
         <if>
             <then>
                 <replace dir="${ext.classes}" token="${ext.home.token}" value="${ext.filesystem.home}" excludes="*.class"/>
                 <replace dir="${ext.classes}" token="$EXTENSION_NAME$" value="${ext.name}" excludes="*.class"/>
-                <jar jarfile="${ext.dist}/${ext.name}.jar" basedir="${ext.classes}" excludes="${ext.name}.jar" />
+                <jar jarfile="${ext.dist}/${ext.name}.jar" basedir="${ext.classes}"/>
+                <copy file="${ext.dist}/${ext.name}.jar" todir="${exts.dir}/lib"/>
             </then>
         </if>
     </target>