1 DESCRIPTION = "Reference implementation of XNI, the Xerces Native Interface, and also a fully conforming XML Schema processor."
3 AUTHOR = "Apache Software Foundation"
5 SRC_URI = "http://www.apache.org/dist/xerces/j/Xerces-J-src.${PV}.tar.gz"
7 S = "${WORKDIR}/xerces-2_9_1"
11 JPN = "libxerces2-java"
13 DEPENDS = "fastjar-native jaxp1.3 xml-commons-resolver1.1"
14 RDEPENDS = "libjaxp1.3-java libxml-commons-resolver1.1-java"
18 sed -i -e "s|@impl.name@|Xerces-J ${PV}|" \
19 -e "s|@impl.version@|${PV}|" {} \;
22 addtask unpackpost after do_unpack before do_patch
24 JARFILENAME = "xercesImpl.jar"
30 # Prepend the bootclasspath with the earlier XML API to make
31 # compilation succeed.
32 oe_makeclasspath bcp -s jaxp-1.3 resolver
33 bcp=$bcp:${STAGING_DATADIR_NATIVE}/classpath/glibj.zip
35 javac -sourcepath src -d build -bootclasspath $bcp `find src -name "*.java"`
37 (cd src && find org ! -name "*.java" -exec cp {} ../build/{} \;)
39 fastjar -C build -c -m src/manifest.xerces -f ${JARFILENAME} .
41 # Like Debian we provide a symlink called xmlParserAPIs.jar pointing to the JAXP
43 ln -sf ${D}${datadir_java}/xmlParserAPIs.jar jaxp-1.3.jar