[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Help with CLASSPATH needed (Was: Need help with packaging: ...)



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.

   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.


-- 
http://fam-tille.de


Reply to: