FILES_${JPN} = "${datadir_java}"
+# File name of the libraries' main Jar file
+JARFILENAME = "${P}.jar"
+
+# Space-separated list of alternative file names.
+ALTJARFILENAMES = "${PN}.jar"
+
+java_install() {
+ oe_jarinstall ${JARFILENAME} ${ALTJARFILENAMES}
+}
+
+do_install() {
+ java_install
+}
+
+java_stage() {
+ oe_jarinstall -s ${JARFILENAME} ${ALTJARFILENAMES}
+}
+
+do_stage() {
+ java_stage
+}
done
}
+oe_makeclasspath() {
+ # Purpose: Generate a classpath variable from the given Jar file names
+ # where the ".jar" has been omitted.
+ #
+ # oe_makeclasspath foo baz bar
+ # Prints ${datadir_java}/foo.jar:${datadir_java}/baz.jar:${datadir_java}/bar.jar
+ #
+ # oe_makeclasspath -s foo baz bar
+ # Prints ${STAGING_DATADIR_JAVA}/foo.jar:${STAGING_DATADIR_JAVA}/baz.jar:${STAGING_DATADIR_JAVA}/bar.jar
+ #
+ # Provide the -s at the beginning otherwise strange things happen.
+ #
+ dir=${datadir_java}
+ classpath=
+ delimiter=
+
+ while [ "$#" -gt 0 ]; do
+ case "$1" in
+ -s)
+ dir=${STAGING_DATADIR_JAVA}
+ ;;
+ -*)
+ oefatal "oe_makeclasspath: unknown option: $1"
+ ;;
+ *)
+ classpath=$classpath$delimiter$dir/$1.jar
+ delimiter=":"
+ ;;
+ esac
+ shift
+ done
+
+ echo $classpath
+}
+
# Creates a simple wrapper script for your Java program.
# The script is written to ${PN} by default.
#