summaryrefslogtreecommitdiff
path: root/classes/java-library.bbclass
diff options
context:
space:
mode:
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
+}