From 89f8f2f11ff38add6164bc6e5728fda2b1132583 Mon Sep 17 00:00:00 2001 From: Robert Schuster Date: Thu, 2 Oct 2008 23:19:15 +0000 Subject: java.bbclass: Error out if classpath entry cannot be found. --- classes/java.bbclass | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3