diff options
author | Robert Schuster <thebohemian@gmx.net> | 2008-10-02 23:19:15 +0000 |
---|---|---|
committer | Robert Schuster <thebohemian@gmx.net> | 2008-10-02 23:19:15 +0000 |
commit | 89f8f2f11ff38add6164bc6e5728fda2b1132583 (patch) | |
tree | d34d3ddcaf57474cc2dd4fd9e8f6128fb78d434a | |
parent | b8cbd46f38b680533955a682db4cf9b0b6dee878 (diff) |
java.bbclass: Error out if classpath entry cannot be found.
-rw-r--r-- | classes/java.bbclass | 8 |
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 |