summaryrefslogtreecommitdiff
path: root/classes/java-library.bbclass
diff options
context:
space:
mode:
authorRobert Schuster <thebohemian@gmx.net>2008-05-15 15:01:03 +0000
committerRobert Schuster <thebohemian@gmx.net>2008-05-15 15:01:03 +0000
commit553272e336a5fbf721c1cb7f4f7d7789d91c93c4 (patch)
treef14595a69561398a2f661d067558fbadf29909f9 /classes/java-library.bbclass
parent9a91743ec2c23ce8e68e65b052234d6e9dc30274 (diff)
java-library.bbclass: Default implementation for do_install/do_stage.
java.bbclass: Added oe_makeclasspath function.
Diffstat (limited to 'classes/java-library.bbclass')
-rw-r--r--classes/java-library.bbclass21
1 files changed, 21 insertions, 0 deletions
diff --git a/classes/java-library.bbclass b/classes/java-library.bbclass
index 8aecfef1b9..b6cb5dcbde 100644
--- a/classes/java-library.bbclass
+++ b/classes/java-library.bbclass
@@ -35,3 +35,24 @@ PACKAGE_ARCH_${JPN} = "all"
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
+}