summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--classes/java.bbclass8
1 files changed, 7 insertions, 1 deletions
diff --git a/classes/java.bbclass b/classes/java.bbclass
index 17f833ce3d..9e51a0b7b2 100644
--- a/classes/java.bbclass
+++ b/classes/java.bbclass
@@ -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