Patchwork [1/3] bug-java-library.bbclass: Add a class to install jar files without symlinks

login
register
mail settings
Submitter Stefan Schmidt
Date Jan. 12, 2011, 9:13 a.m.
Message ID <1294823599-2669-1-git-send-email-stefan@buglabs.net>
Download mbox | patch
Permalink /patch/252/
State Accepted
Headers show

Comments

Stefan Schmidt - Jan. 12, 2011, 9:13 a.m.
Signed-off-by: Stefan Schmidt <stefan@buglabs.net>
---
 classes/bug-java-library.bbclass |   17 +++++++++++++++++
 1 files changed, 17 insertions(+), 0 deletions(-)
 create mode 100644 classes/bug-java-library.bbclass

Patch

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}
+}