Le 1/17/12 10:23 AM, Andreas Tille a écrit : > On Mon, Jan 16, 2012 at 10:50:51PM +0100, Ludovic Claude wrote: >> javahelper is a generic collection of scripts for building Java sources, >> packaging them into a jar and building a Debian package. >> >> maven-debian-helper is designed for upstream projects which use Maven as >> their build tool. The upstream project should contain at leat one >> pom.xml file, and the upstream sources should compile using the command >> 'mvn install'. >> >> So if your project doesn't build with Maven, the choice is easy: use >> javahelper. > I followed this hint and made some progress when using plain debuild. > However, when trying to use pbuilder something seems to be missing. > According to the Build log hint I added ant-optional but that's probably > not enough. > >> Can you post the url or the sources for the Options project, I cannot >> help you further without this information. > As I said there is no homepage but I updated my private repository at > > http://people.debian.org/~tille/packages/options/ > > with *.dsc file. The build log says: > > BUILD FAILED > /tmp/buildd/liboptions-java-0.0.20120113/nbproject/build-impl.xml:919: The > following error occurred while executing this line: > /tmp/buildd/liboptions-java-0.0.20120113/nbproject/build-impl.xml:341: The > <classpath> for <junit> must include junit.jar if not in Ant's own classpath > > So I tried several approaches. > > 1. Add to build.xml > <property name="javac.classpath" value="/usr/share/java/junit.jar"/> > as well as > <property name="javac.classpath" > value="/usr/share/java/ant-junit.jar"/> > (see patch in debian/patches) > Both variants did not help.
in nbproject/build-impl.xml, classpath does not use the same variable to set classpath: <classpath> <path path="${run.test.classpath}"/> </classpath> So you should set a new property like javac.classpath but with name run.test.classpath. I don't know if junit or ant-junit.jar should be used, but junit.jar should be ok. Could be something like: <property name="javac.classpath" value="/usr/share/java/junit.jar:/usr/share/java/jdom1.jar "/> > 2. Add to debian/rules > CLASS_PATH := > /usr/share/java/jdom1.jar:/usr/share/ant/lib/ant-junit.jar > as well as > export > CLASSPATH=/usr/share/java/jdom1.jar:/usr/share/ant/lib/ant-junit.jar > Both variants did not help and BTW, I have read both CLASS_PATH as > well as "export CLASSPATH" in debian/rules files and I'm confused which > one to use. > > The result for all these tests is the same. Any hint how to properly > specify junit.jar to be found by build system in pbuilder? > > Any help is welcome > > Andreas. > > -- Olivier Sallou IRISA / University of Rennes 1 Campus de Beaulieu, 35000 RENNES - FRANCE Tel: 02.99.84.71.95 gpg key id: 4096R/326D8438 (pgp.mit.edu) Key fingerprint = 5FB4 6F83 D3B9 5204 6335 D26D 78DC 68DB 326D 8438 -- To UNSUBSCRIBE, email to debian-java-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4f153fc5.9060...@irisa.fr