jicarilla-sandbox/buildsystem/install build.xml,1.1,1.2

[email protected]
Newsgroups gmane.comp.java.jicarilla.cvs
Message-ID <[email protected]>
Update of /cvsroot/jicarilla/jicarilla-sandbox/buildsystem/install
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2685/buildsystem/install

Modified Files:
	build.xml 
Log Message:
guard against weirdly failing <copy/>

Index: build.xml
===================================================================
RCS file: /cvsroot/jicarilla/jicarilla-sandbox/buildsystem/install/build.xml,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- build.xml	12 Feb 2004 16:16:38 -0000	1.1
+++ build.xml	22 Feb 2004 14:21:28 -0000	1.2
@@ -83,9 +83,50 @@
             </fileset>
         </move>
 
+        <!-- the checks should be rather redundant as copy should fail, but
+             lets just be real sure as people have reported problems... -->
+
         <copy todir="${ant.home}/lib" file="${jbs.repository.local}/bsf/jars/bsf-2.3.0.jar"/>
+        <available file="${ant.home}/lib/bsf-2.3.0.jar" property="bsf.installed.successfully"/>
+        <antcall target="bsf.required"/>
+
         <copy todir="${ant.home}/lib" file="${jbs.repository.local}/js/jars/js.jar"/>
+        <available file="${ant.home}/lib/js.jar" property="js.installed.successfully"/>
+        <antcall target="js.required"/>
 
         <antcall target="jbs:done"/>
     </target>
+
+    <target name="bsf.required" unless="bsf.installed.successfully">
+        <fail>=======================================================================
+                      ERROR installing!
+
+  The Jicarilla build system requires the script task to be available.
+  We just tried installing the required BSF jar, but apparently that
+  did not work. Please install the
+
+            ${jbs.repository.local}/bsf/jars/bsf-2.3.0.jar
+
+  jar into your ant lib directory manually, which should be
+
+            ${ant.home}/lib
+=======================================================================</fail>
+    </target>
+
+    <target name="js.required" unless="js.installed.successfully">
+        <fail>=======================================================================
+                      ERROR installing!
+
+  The Jicarilla build system requires the script task to be available.
+  We just tried installing the required rhino jar, but apparently that
+  did not work. Please install the
+
+            ${jbs.repository.local}/bsf/jars/js.jar
+
+  jar into your ant lib directory manually, which should be
+
+            ${ant.home}/lib
+=======================================================================</fail>
+    </target>
+
 </project>
\ No newline at end of file



-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.