nicolaken 2003/10/02 00:16:12
Modified: src/resources/forrest-shbat forrest.build.xml
Log:
Download descriptor if only just looking for available skins.
Revision Changes Path
1.106 +14 -11 xml-forrest/src/resources/forrest-shbat/forrest.build.xml
Index: forrest.build.xml
===================================================================
RCS file: /home/cvs/xml-forrest/src/resources/forrest-shbat/forrest.build.xml,v
retrieving revision 1.105
retrieving revision 1.106
diff -u -r1.105 -r1.106
--- forrest.build.xml 2 Oct 2003 07:07:06 -0000 1.105
+++ forrest.build.xml 2 Oct 2003 07:16:12 -0000 1.106
@@ -1115,6 +1115,15 @@
<!-- public targets -->
+ <target name="available-skins"
+ depends="init-props, skin-unavailable, fetch-skins-descriptor"
+ description="What skins are available?">
+ <xslt in="${forrest.home}/context/skins/skins.xml"
+ out="${project.work-dir}/skinlist2echobuild.xml"
+ style="${forrest.home}/var/skinlist2echo.xsl"/>
+ <ant antfile="${project.work-dir}/skinlist2echobuild.xml"/>
+ </target>
+
<target name="package-skin" description="Make a package of an existing skin">
<input message="Which skin do you want to package?"
addproperty="skin-name"/>
@@ -1123,7 +1132,6 @@
includes="${skin-name}/**"/>
</target>
-
<target name="install-skin"
depends = "init-skins"
description="Install the needed skin from the remote repository"/>
@@ -1132,6 +1140,10 @@
<target name="init-skins" depends="init-props, check-skin, fetch-skin, unpack-skins"/>
+ <target name="skin-unavailable">
+ <property name="skin.unavailable" value="true"/>
+ </target>
+
<target name="check-skin">
<condition property="skin.unavailable">
<and>
@@ -1164,15 +1176,6 @@
<get src="http://xml.apache.org/forrest/skins/skins.xml"
dest="${forrest.home}/context/skins/skins.xml"
verbose="true" usetimestamp="true" ignoreerrors="false"/>
- </target>
-
- <target name="available-skins"
- depends="init-props, fetch-skins-descriptor"
- description="What skins are available?">
- <xslt in="${forrest.home}/context/skins/skins.xml"
- out="${project.work-dir}/skinlist2echobuild.xml"
- style="${forrest.home}/var/skinlist2echo.xsl"/>
- <ant antfile="${project.work-dir}/skinlist2echobuild.xml"/>
</target>
<target name="fetch-skin"
|