Check for the library jars in the bsh sample and fail with information.
authorFredrik Tolf <fredrik@dolda2000.com>
Mon, 26 Oct 2009 05:33:36 +0000 (06:33 +0100)
committerFredrik Tolf <fredrik@dolda2000.com>
Mon, 26 Oct 2009 05:33:36 +0000 (06:33 +0100)
samples/bsh/build.xml

index ad2e8c3..fd6d4df 100644 (file)
@@ -5,6 +5,11 @@
    <target name="build-env">
      <mkdir dir="build" />
      <mkdir dir="build/bin" />
+     <fail message="You need to add the files jsvc.jar and bsh.jar to the lib directory manually.">
+       <condition>
+        <not><and><available file="lib/jsvc.jar" /><available file="lib/bsh.jar" /></and></not>
+       </condition>
+     </fail>
    </target>
 
    <target name="bin" depends="build-env">