You are viewing a plain text version of this content. The canonical link for it is here.
Posted to svn@forrest.apache.org by br...@apache.org on 2004/08/25 15:32:40 UTC
svn commit: rev 36853 - forrest/trunk/scratchpad/XXE-config
Author: brondsem
Date: Wed Aug 25 06:32:39 2004
New Revision: 36853
Modified:
forrest/trunk/scratchpad/XXE-config/ (props changed)
forrest/trunk/scratchpad/XXE-config/README.txt
forrest/trunk/scratchpad/XXE-config/build.xml
Log:
ignore generated dirs; add dist and clean targets
Modified: forrest/trunk/scratchpad/XXE-config/README.txt
==============================================================================
--- forrest/trunk/scratchpad/XXE-config/README.txt (original)
+++ forrest/trunk/scratchpad/XXE-config/README.txt Wed Aug 25 06:32:39 2004
@@ -38,6 +38,12 @@
* Specify the XML Catalog file:
* "[FORREST_HOME]/context/resources/schema/catalog.xcat" (where [FORREST_HOME] is the value of your FORREST_HOME environment variable)
+Building
+========
+To build the configuration:
+* set the FORREST_HOME environment variable
+* run 'ant' in this directory
+
References
==========
XMLmind XML Editor
Modified: forrest/trunk/scratchpad/XXE-config/build.xml
==============================================================================
--- forrest/trunk/scratchpad/XXE-config/build.xml (original)
+++ forrest/trunk/scratchpad/XXE-config/build.xml Wed Aug 25 06:32:39 2004
@@ -21,11 +21,30 @@
- You must update catalog.xml manually based on changes to forrest's catalog.xcat
-->
-<project basedir="." name="xxe-forrest" default="update">
+<project basedir="." name="xxe-forrest" default="dist">
<target name="-init">
<property environment="env"/>
- </target>
+ <property name="version" value="1.2"/>
+ <property name="dist.dir" location="dist"/>
+ <property name="dist.name" value="XXE_forrest_config"/>
+ </target>
+
+ <target name="clean" depends="-init" description="Clean all generated files">
+ <!-- created files -->
+ <delete dir="${dist.dir}"/>
+ <!-- copied files -->
+ <delete dir="entity"/>
+ <delete dir="dtd"/>
+ <delete file="catalog.xml"/>
+ </target>
+
+ <target name="dist" depends="-init, update" description="Build zip file">
+ <mkdir dir="${dist.dir}"/>
+ <zip destfile="${dist.dir}/${dist.name}-${version}.zip">
+ <zipfileset prefix="forrest" dir="." excludes="dist/**"/>
+ </zip>
+ </target>
<target name="update" depends="copy-dtds, copy-catalog" description="Update schemas from FORREST_HOME"/>