nicolaken 2002/09/12 09:05:18
Modified: gump build.xml
Log:
Now it creates the scripts in ./bin :-)
Revision Changes Path
1.3 +32 -20 jakarta-alexandria/gump/build.xml
Index: build.xml
===================================================================
RCS file: /home/cvs/jakarta-alexandria/gump/build.xml,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- build.xml 12 Sep 2002 15:20:04 -0000 1.2
+++ build.xml 12 Sep 2002 16:05:18 -0000 1.3
@@ -6,13 +6,12 @@
If you need to bootstrap this, see gen.sh or gen.bat.
Important targets:
- scripts - generate the scripts
- site - generate the web site
- all - generate both the scripts and the site
+ gump.scripts - generate the scripts
+ gump.site - generate the web site
+ gump.all - generate both the scripts and the site
-->
<project default="gump.scripts" name="gump">
-
<!-- ******************************************************* -->
<!-- Global properties -->
@@ -21,6 +20,7 @@
<property name="gump.dir" value="."/>
<property name="gump.work.dir" value="${gump.dir}/work"/>
+ <property name="gump.bin.dir" value="${gump.dir}/bin"/>
<property name="gump.docs.dir" value="${gump.work.dir}/gumpdocs"/>
<property name="gump.site.dir" value="${gump.work.dir}/site"/>
@@ -46,14 +46,15 @@
<!-- Merge the xml sources, resolving references -->
<target name="gump.merge" depends="gump.init" unless="gump.uptodate">
- <ant antfile="${gump.shrimpfactory.dir}/build.xml"
- dir="${gump.shrimpfactory.dir}"/>
+ <ant dir="${gump.shrimpfactory.dir}"/>
</target>
<!-- ******************************************************* -->
<!-- Generate the scripts -->
<!-- ******************************************************* -->
+ <!-- ******* Generate infos for the site... ******* -->
+
<!-- Extract the info necessary to produce the update script -->
<target name="gump.update" depends="gump.merge">
<xslt in="${gump.merge}" out="${gump.work.dir}/update.def"
@@ -72,6 +73,21 @@
style="${gump.dir}/stylesheet/xref.xsl"/>
</target>
+ <!-- ******* ...then do the site. ******* -->
+
+ <!-- Add in the website information -->
+ <target name="gump.website"
depends="gump.build,gump.update,gump.publish,gump.xref,gump.deliver,gump.naglist">
+ <xslt basedir="${gump.work.dir}" destdir="${gump.work.dir}" includes="*.def"
extension=".site"
+ style="${gump.webstyle}"/>
+ </target>
+
+ <!-- Produce the gump web site -->
+ <target name="gump.site">
+ <ant dir="${gump.dir}/site"/>
+ </target>
+
+ <!-- ******* Generate infos for the scripts... ******* -->
+
<!-- Extract the info necessary to produce the publish script -->
<target name="gump.publish" depends="gump.merge">
<copy file="${gump.merge}" tofile="${gump.work.dir}/puball.site"/>
@@ -80,7 +96,7 @@
<xslt in="${gump.merge}" out="${gump.work.dir}/map.pl"
style="${gump.dir}/stylesheet/sedmap.xsl"/>
</target>
-
+
<!-- Extract the info necessary to produce the deliver script -->
<target name="gump.deliver" depends="gump.merge">
<xslt in="${gump.merge}" out="${gump.work.dir}/deliver-local.sh"
@@ -92,30 +108,25 @@
<xslt in="${gump.merge}" out="${gump.work.dir}/naglist"
style="${gump.dir}/stylesheet/nag.xsl"/>
</target>
-
- <!-- Add in the website information -->
- <target name="gump.website"
depends="gump.build,gump.update,gump.publish,gump.xref,gump.deliver,gump.naglist">
- <xslt basedir="${gump.work.dir}" destdir="${gump.work.dir}" includes="*.def"
extension=".site"
- style="${gump.webstyle}"/>
- </target>
+
+ <!-- ******* ...then generate the scripts. ******* -->
<!-- Generate the scripts -->
<target name="gump.scripts" depends="gump.website">
- <xslt basedir="${gump.work.dir}" destdir="${ant.home}/bin" includes="*.site"
+ <xslt basedir="${gump.work.dir}" destdir="${gump.bin.dir}" includes="*.site"
extension=".${gump.extension}"
style="${gump.dir}/stylesheet/${gump.target}.xsl"/>
</target>
<!-- Generate publish instructions for the javadocs -->
<target name="gump.pubdocs" depends="gump.merge">
- <xslt in="${gump.merge}" out="${gump.work.dir}/pubdoc.pl"
+ <xslt in="${gump.merge}" out="${gump.bin.dir}/pubdoc.pl"
style="${gump.dir}/stylesheet/pubdocs.xsl"/>
</target>
- <!-- Produce the gump web site -->
- <target name="gump.site">
- <ant dir="${gump.dir}/site"/>
- </target>
-
+ <!-- ******************************************************* -->
+ <!-- Extra targets -->
+ <!-- ******************************************************* -->
+
<!-- Do everything -->
<target name="gump.all" depends="gump.scripts,gump.pubdocs,gump.site"/>
@@ -124,5 +135,6 @@
<delete file=".timestamp"/>
<delete dir="work"/>
</target>
+
</project>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>