Create IDP_HOME regardless of whether install is "filesystem" or "manager". Fixes...
authorwassa <wassa@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Fri, 27 Jan 2006 22:23:34 +0000 (22:23 +0000)
committerwassa <wassa@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Fri, 27 Jan 2006 22:23:34 +0000 (22:23 +0000)
git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/trunk@1927 ab3bd59b-922f-494d-bb5f-6f0a3c29deca

build.xml

index 447fc29..ab1ee6e 100755 (executable)
--- a/build.xml
+++ b/build.xml
                <chmod dir="${idp.home}/bin" perm="ug+rx" includes="**/*"/>
 
                <mkdir dir="${idp.home}/logs" />
-
+               
+               <!-- Copy necessary files to IDP_HOME -->
+               <antcall target="install.idp.buildHome" />
+               
+               <antcall target="ext-invoke">
+            <param name="exts.dir" value="${custom}"/>
+            <param name="ext.build.function" value="ext-install-filesystem"/>
+            <param name="ext.filesystem.home" value="${idp.home}"/>
+            <param name="ext.home.token" value="$IDP_HOME$"/>
+        </antcall>  
+       
+       </target>
+       
+       <target name="install.idp.buildHome" depends="init, install.init">
                <!-- copy IdP configuration -->
                <if>
                        <or>
                                <antcall target="install.idp.filesystem.config" />
                        </then>
                </if>
-
-        <antcall target="ext-invoke">
-            <param name="exts.dir" value="${custom}"/>
-            <param name="ext.build.function" value="ext-install-filesystem"/>
-            <param name="ext.filesystem.home" value="${idp.home}"/>
-            <param name="ext.home.token" value="$IDP_HOME$"/>
-        </antcall>   
        </target>
 
        <!-- Install Shibboleth SP to filesystem using the properties in build.properties -->
                <input message="Enter tomcat password [default: ${tomcat.password}]" addproperty="tomcat.password.input" defaultValue="${tomcat.password}" />
                <var name="tomcat.password" value="${tomcat.password.input}" />
 
-        <antcall target="package-idp" />
+               <antcall target="package-idp" />
                <antcall target="tomcat.deploy" />
+               <antcall target="install.idp.buildHome" />
                <antcall target="savePropertyFile" />
        </target>