Skip to contentSkip to conversation

java-library: make easy to override jar package name

PATCH New Nicola Lunghi 1 participant 1 message Nov 23, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 java-library: make easy to override jar package name

define JARFILENAME and ALTJARFILENAMES with ?= to make simple to override them

---
 classes/java-library.bbclass | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
classes/java-library.bbclass +2 -2
index ce1cd28..c69cf6b 100644
@@ -42,10 +42,10 @@ PACKAGES += "${JPN}"
 FILES_${JPN} = "${datadir_java}"
 
 # File name of the libraries' main Jar file
-JARFILENAME = "${BP}.jar"
+JARFILENAME ?= "${BP}.jar"
 
 # Space-separated list of alternative file names.
-ALTJARFILENAMES = "${BPN}.jar"
+ALTJARFILENAMES ?= "${BPN}.jar"
 
 # Java "source" distributions often contain precompiled things
 # we want to delete first.
Signature · 1 line
2.19.1