aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMing Liu <liu.ming50@gmail.com>2018-01-04 14:19:10 +0100
committerOtavio Salvador <otavio@ossystems.com.br>2018-01-09 13:41:35 -0200
commit952e92b035b94b700abf094415db7c189362f146 (patch)
treed6794b4a0a68add1f4d6a41f109393d0831b8256
parentf1ceb8474deb3670a9a1cd86e283e4fffd162bc6 (diff)
downloadmeta-java-952e92b035b94b700abf094415db7c189362f146.tar.gz
meta-java-952e92b035b94b700abf094415db7c189362f146.tar.bz2
meta-java-952e92b035b94b700abf094415db7c189362f146.zip
ant-contrib-native: add recipe
The Ant-Contrib project is a collection of tasks (and at one point maybe types and other tools) for Apache Ant. Signed-off-by: Ming Liu <liu.ming50@gmail.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
-rw-r--r--recipes-core/ant-contrib/ant-contrib-native_1.0b3.bb37
1 files changed, 37 insertions, 0 deletions
diff --git a/recipes-core/ant-contrib/ant-contrib-native_1.0b3.bb b/recipes-core/ant-contrib/ant-contrib-native_1.0b3.bb
new file mode 100644
index 0000000..2a44ea2
--- /dev/null
+++ b/recipes-core/ant-contrib/ant-contrib-native_1.0b3.bb
@@ -0,0 +1,37 @@
+SUMMARY = "(java): collection of tasks, types and other tools for Apache Ant"
+DESCRIPTION = "The Ant-Contrib project is a collection of tasks (and at one \
+point maybe types and other tools) for Apache Ant."
+HOMEPAGE = "http://ant-contrib.sourceforge.net"
+PRIORITY = "optional"
+SECTION = "libs"
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://docs/LICENSE.txt;md5=f84919efee8dbf5c7730927c5b8716f9"
+
+DEPENDS = "ant-native commons-cli-native commons-codec-native \
+ commons-httpclient-native commons-logging-native \
+ oro-native bcel-native xerces-j-native \
+ "
+
+inherit java-library java-native
+
+SRC_URI = "${SOURCEFORGE_MIRROR}/ant-contrib/ant-contrib-${PV}-src.zip"
+
+SRC_URI[md5sum] = "07b23539bef04ec56970c876a33f7665"
+SRC_URI[sha256sum] = "ba3621f397af14d5a19375f391ec9bf2908c46c5558ca0df8365e04fe3ac3633"
+
+S = "${WORKDIR}/ant-contrib"
+
+do_compile() {
+ mkdir -p build
+
+ oe_makeclasspath cp -s ant commons-cli commons-codec commons-httpclient commons-logging oro bcel xercesImpl
+ cp=build:${S}/lib/ivy/jars/ivy-1.3.1.jar:$cp
+
+ find src/java -name "*.java" > java_files
+
+ javac -sourcepath src/java -cp $cp -d build @java_files
+
+ (cd src/java && find . \( -name "*.properties" -or -name "*.xml" -or -name "*.mf" \) -exec cp {} ../../build/{} \;)
+
+ fastjar cf ${JARFILENAME} -C build .
+}