[oe-commits] Stefan Schmidt : bug-java-library.bbclass: Add a class to install jar files without symlinks

git version control git at git.openembedded.org
Tue Jan 18 09:16:09 UTC 2011


Module: openembedded.git
Branch: master
Commit: 34f1803ff68101ff4f4959ff229e7b1c47c5976f
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=34f1803ff68101ff4f4959ff229e7b1c47c5976f

Author: Stefan Schmidt <stefan at buglabs.net>
Date:   Tue Nov  2 16:08:48 2010 +0100

bug-java-library.bbclass: Add a class to install jar files without symlinks

Signed-off-by: Stefan Schmidt <stefan at buglabs.net>

---

 classes/bug-java-library.bbclass |   17 +++++++++++++++++
 1 files changed, 17 insertions(+), 0 deletions(-)

diff --git a/classes/bug-java-library.bbclass b/classes/bug-java-library.bbclass
new file mode 100644
index 0000000..3a76a55
--- /dev/null
+++ b/classes/bug-java-library.bbclass
@@ -0,0 +1,17 @@
+# We do not want to have symlinks for jar files
+
+inherit java-library
+
+# File name of the libraries' main Jar file (no version in name)
+JARFILENAME = "${BPN}.jar"
+
+# We do not want symlinks for jar files
+ALTJARFILENAMES = ""
+
+java_install() {
+  oe_jarinstall ${JARFILENAME}
+}
+
+java_stage() {
+  oe_jarinstall -s ${JARFILENAME}
+}





More information about the Openembedded-commits mailing list