forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject svn commit: rev 10544 - xml/forrest/branches/copyless/src/core
Date Thu, 06 May 2004 13:27:49 GMT
Author: brondsem
Date: Thu May  6 06:27:48 2004
New Revision: 10544

Modified:
   xml/forrest/branches/copyless/src/core/forrest.build.xml
Log:
check for xml-forrest.jar before running

Modified: xml/forrest/branches/copyless/src/core/forrest.build.xml
==============================================================================
--- xml/forrest/branches/copyless/src/core/forrest.build.xml	(original)
+++ xml/forrest/branches/copyless/src/core/forrest.build.xml	Thu May  6 06:27:48 2004
@@ -190,7 +190,10 @@
   </target>
 
   <!-- Sets up properties and filters -->
-  <target name="init" depends="init-props, init-skins"/>
+  <target name="init" depends="init-props, init-skins">
+    <available property="xml-forrest.jar.exists" file="${forrest.build.lib-dir}/xml-forrest.jar"/>
+    <fail unless="xml-forrest.jar.exists">You must build forrest before you can run
it.  In ${forrest.root-dir} run './build.sh' (linux) or 'build' (windows)</fail>
+  </target>
 
   <!-- ===============================================================
        Echo's the settings if requested. [-Dforrest.echo=true]
@@ -211,7 +214,7 @@
     <path id="forrest.cp">
          <pathelement path="${env.CLASSPATH}" />
          <pathelement location="${forrest.home}/context/WEB-INF/classes"/>
-         <pathelement location="${forrest.build.lib-dir}/classes"/>
+         <pathelement location="${forrest.build.lib-dir}/xml-forrest.jar"/>
          <fileset dir="${forrest.jetty.lib-dir}">
            <include name="*.jar"/>
            <include name="*.JAR"/>

Mime
View raw message