2 AUTHOR = "Apache Software Foundation"
6 DEPENDS = "fastjar-native"
8 S = "${WORKDIR}/${BP}-src"
10 # Directory in which the projects sources are located.
11 MAINSOURCES = "src/java"
13 # Directories which should appear in the -sourcepath argument.
14 COMPILE_SOURCEPATH = "src/java"
16 COMPILE_FINDARGS = "-name '*.java'"
17 FINDARGS = "-name '*.properties'"
19 # Directories to be removed after compilation.
22 # Some projects have a replaceable version number in their manifest template.
27 sed -i -e "s|@version@|${PV}|" {} \;
31 addtask unpackpost after do_unpack before do_patch
32 # Compile step is very similar for Jakarta commons packages
38 oe_makeclasspath cp -s ${CP}
43 echo "javac -sourcepath ${COMPILE_SOURCEPATH} -cp $cp -d build \`find ${MAINSOURCES} ${COMPILE_FINDARGS}\`"
44 javac -sourcepath ${COMPILE_SOURCEPATH} -cp $cp -d build `find ${MAINSOURCES} ${COMPILE_FINDARGS}`
46 # Copy extraneous files
47 echo "(cd ${MAINSOURCES} && find . ${FINDARGS} -exec cp {} ../../build/{} \;)"
48 (cd ${MAINSOURCES} && find . ${FINDARGS} -exec cp {} ../../build/{} \;)
50 # Optionally remove stuff after compilation (needed for sourcepath hacks).
51 if [ ${CLEAN_PATH} ]; then
55 # Some projects have manifest, some have not. This works for both.
56 if [ -f src/conf/MANIFEST.MF ]
58 fastjar -C build -c -m src/conf/MANIFEST.MF -f ${JARFILENAME} .
60 fastjar -C build -c -f ${JARFILENAME} .