Check for the library jars in the bsh sample and fail with information.
[jsvc.git] / 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">