java.bbclass: Error out if classpath entry cannot be found.
authorRobert Schuster <thebohemian@gmx.net>
Thu, 2 Oct 2008 23:19:15 +0000 (23:19 +0000)
committerRobert Schuster <thebohemian@gmx.net>
Thu, 2 Oct 2008 23:19:15 +0000 (23:19 +0000)
classes/java.bbclass

index 17f833c..9e51a0b 100644 (file)
@@ -93,7 +93,13 @@ oe_makeclasspath() {
       oefatal "oe_makeclasspath: unknown option: $1"
       ;;
     *)
-      classpath=$classpath$delimiter$dir/$1.jar
+      file=$dir/$1.jar
+
+                       if [ ! -f $file ]; then
+                               oefatal "oe_makeclasspath: Jar file for '$1' not found at $file"
+                       fi
+
+      classpath=$classpath$file
       delimiter=":"
       ;;
     esac