summaryrefslogtreecommitdiff
path: root/recipes/xml-commons/jaxen_1.1.1.bb
blob: d78f303cde3ea971f864195811f5faf3141a1110 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
DESCRIPTION = "XPath library written in Java"
LICENSE = "BSD"

HOMEPAGE = "http://jaxen.codehaus.org/

DEPENDS = "fastjar-native xerces-j xom"

SRC_URI = "\
	http://dist.codehaus.org/jaxen/distributions/jaxen-${PV}-src.tar.gz \
	http://www.jdom.org/dist/binary/archive/jdom-1.1.tar.gz \
	"

inherit java-library

do_compile() {
  mkdir -p build

  oe_makeclasspath cp -s xercesImpl xom
	scp="src/java/main:${WORKDIR}/jdom-1.1/src/java"

  javac -sourcepath $scp -cp $cp -d build `find src/java/main -name "*.java" -and -not -wholename "*dom4j*"`
  (cd src && find org -name "*.properties" -exec cp {} ../build/{} \;)

	rm -rf build/org/jdom

  fastjar -C build -c -f ${JARFILENAME} .
}