nicolaken 2002/09/12 08:01:59
Added: shrimpfactory build.xml
Log:
Adding buildfile to shrimpfactory.
Now we can use this to generate the merge!
Woo hooo! :-D
Revision Changes Path
1.1 jakarta-alexandria/shrimpfactory/build.xml
Index: build.xml
===================================================================
<?xml version="1.0"?>
<!--
Build the scripts and/or site for http://jakarta.apache.org/gump/
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
-->
<project default="shrimpfactory.merge" name="shrimpfactory">
<property name="shrimpfactory.workspace.name" value="rubypad.xml"/>
<property name="shrimpfactory.dir" value="."/>
<property name="shrimpfactory.work.dir" value="${shrimpfactory.dir}/work"/>
<property name="shrimpfactory.jenny.dir" value="../jenny"/>
<property name="shrimpfactory.jenny.classes.dir"
value="${shrimpfactory.jenny.dir}/build/classes"/>
<property name="shrimpfactory.workspace"
value="${shrimpfactory.dir}/${shrimpfactory.workspace.name}"/>
<property name="shrimpfactory.merge"
value="${shrimpfactory.dir.work}/merge.xml"/>
<!-- Check if merge is available... overridable on startup via -D -->
<target name="shrimpfactory.preinit">
<condition property="shrimpfactory.uptodate.do">
<and>
<available file="${shrimpfactory.merge}" />
</and>
</condition>
</target>
<!-- Build the code used to generate the merged xml scripts -->
<target name="shrimpfactory.init" depends="shrimpfactory.preinit"
if="shrimpfactory.uptodate.do">
<uptodate property="shrimpfactory.uptodate" targetfile="${shrimpfactory.merge}">
<srcfiles dir="." includes="${shrimpfactory.shrimpfactory.dir}/.timestamp"/>
<srcfiles dir="." includes="${shrimpfactory.workspace}"/>
<srcfiles dir="${shrimpfactory.shrimpfactory.dir}/profile" includes="*.xml"/>
<srcfiles dir="${shrimpfactory.shrimpfactory.dir}/project" includes="*.xml"/>
<srcfiles dir="${shrimpfactory.shrimpfactory.dir}/repository"
includes="*.xml"/>
<srcfiles dir="${shrimpfactory.shrimpfactory.dir}/server" includes="*.xml"/>
</uptodate>
</target>
<!-- Merge the xml sources, resolving references -->
<target name="shrimpfactory.merge" depends="shrimpfactory.init"
unless="shrimpfactory.uptodate">
<ant antfile="${shrimpfactory.jenny.dir}/build.xml"
dir="${shrimpfactory.jenny.dir}"/>
<mkdir dir="${shrimpfactory.work.dir}"/>
<java classname="org.apache.alexandria.jenny.Jenny"
fork="yes"
dir="${shrimpfactory.dir}"
failonerror="true">
<arg value="${shrimpfactory.workspace}"/>
<classpath>
<pathelement location="${shrimpfactory.jenny.classes.dir}"/>
</classpath>
</java>
</target>
<!-- Remove all outputs and intermediate results -->
<target name="shrimpfactory.clean">
<delete file=".timestamp"/>
<delete dir="${shrimpfactory.work.dir}"/>
</target>
</project>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>