Bug#543327: junit4 has dropped ant jar
On Tue, 25 Aug, 2009 at 12:57:18PM +0200, Damien Raude-Morvan wrote: > Hi, > > I've prepared a fix in pkg-jav SVN repository. Can someone sponsor this for > me > ? Done. Thanks, Varun -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Bug#543327: junit4 has dropped ant jar
Hi, I've prepared a fix in pkg-jav SVN repository. Can someone sponsor this for me ? Thanks, -- Damien Raude-Morvan - http://damien.raude-morvan.com/ signature.asc Description: This is a digitally signed message part.
Bug#543327: junit4 has dropped ant jar
On Mon, Aug 24, 2009 at 06:48:46PM +0200, Damien Raude-Morvan wrote: > I think there is some misunderstanding here :) No misunderstanding, I think, just my small outrage at the assumption that I was packaging something written in Java :) > Onkar suggests some structure like this in *your* project : > * build.xml : use ${lib.dir}/junit.jar > * build.properties : define lib.dir=lib/ > * lib/junit.jar : your own JUnit jar > (with all that your project will be portable accros distro and OS) Yeah, it's probably the best way, portably. But it also seems to make the point of a junit deb quite moot, from an individual Java developer's perspective. > - I'll not restore this link to /usr/share/ant/lib/ > - I'll add a NEWS.Debian about this in next upload This is ok with me. -- Antti-Juhani Kaijanaho, Jyväskylä, Finland http://antti-juhani.kaijanaho.fi/newblog/ http://www.flickr.com/photos/antti-juhani/ -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Bug#543327: junit4 has dropped ant jar
Hi all! >> I believe we are talking in context of Debian. Since we were talking >> about the installation of junit4 and ant in Debian. >> And the 1st solution I provided (which you quoted here) can apply to >> any package maintainer. > > Exactly. All the world's a Debian package. Except I'm just a user in > this > context, and a relatively clueless one, at that. > >> Overriding ant properties is a generic thing, >> nothing specific to Debian. > > Quite true, but debhelper and cdbs are. I think there is some misunderstanding here :) Onkar suggests some structure like this in *your* project : * build.xml : use ${lib.dir}/junit.jar * build.properties : define lib.dir=lib/ * lib/junit.jar : your own JUnit jar (with all that your project will be portable accros distro and OS) Given that, Onkar said that, if some DD wants to package *your* project, it will either : #1 use an override to set "lib.dir=/usr/share/java/" #2 use a tool like CDBS to set ant classpath via DEB_JARS But maybe you're working on an internal/non-free-software project and have no need for Debian packaging :) FYI, Ant upstream authors recommends [1] to use attribute for task instead of relying on Ant Classpath. So, to conclude on this : - You may use an explicit junit.jar (using properties or classpath as your prefer) - I'll not restore this link to /usr/share/ant/lib/ - I'll add a NEWS.Debian about this in next upload [1] http://ant.apache.org/manual/install.html#optionalTasks Kinds regards, -- Damien Raude-Morvan / www.drazzib.com -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Bug#543327: junit4 has dropped ant jar
On Mon, Aug 24, 2009 at 5:48 PM, Antti-Juhani Kaijanaho wrote: > On Mon, Aug 24, 2009 at 05:46:07PM +0530, Onkar Shinde wrote: >> How about specify the relative path like "${lib.dir}/junit.jar" so >> that lib.dir can be overridden by the package maintainer in the >> debian/rules. > > All the world's Debian, eh? I believe we are talking in context of Debian. Since we were talking about the installation of junit4 and ant in Debian. And the 1st solution I provided (which you quoted here) can apply to any package maintainer. Overriding ant properties is a generic thing, nothing specific to Debian. Onkar -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Bug#543327: junit4 has dropped ant jar
On Mon, Aug 24, 2009 at 06:01:33PM +0530, Onkar Shinde wrote: > > All the world's Debian, eh? > > I believe we are talking in context of Debian. Since we were talking > about the installation of junit4 and ant in Debian. > And the 1st solution I provided (which you quoted here) can apply to > any package maintainer. Exactly. All the world's a Debian package. Except I'm just a user in this context, and a relatively clueless one, at that. > Overriding ant properties is a generic thing, > nothing specific to Debian. Quite true, but debhelper and cdbs are. -- Antti-Juhani Kaijanaho, Jyväskylä, Finland http://antti-juhani.kaijanaho.fi/newblog/ http://www.flickr.com/photos/antti-juhani/ -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Bug#543327: junit4 has dropped ant jar
On Mon, Aug 24, 2009 at 05:46:07PM +0530, Onkar Shinde wrote: > How about specify the relative path like "${lib.dir}/junit.jar" so > that lib.dir can be overridden by the package maintainer in the > debian/rules. All the world's Debian, eh? -- Antti-Juhani Kaijanaho, Jyväskylä, Finland http://antti-juhani.kaijanaho.fi/newblog/ http://www.flickr.com/photos/antti-juhani/ -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Bug#543327: junit4 has dropped ant jar
On Mon, Aug 24, 2009 at 5:36 PM, Antti-Juhani Kaijanaho wrote: > On Mon, Aug 24, 2009 at 05:34:10PM +0530, Onkar Shinde wrote: >> Please do not add the link again. > > If this ends up being the result, a NEWS.Debian entry would be appropriate, > since I'm likely not the only one who was relying on the old behavior. > > OTOH, I wouldn't want to hardcode the junit path in my build.xml. Is there an > alternative way to specify the jar, short of putting one in my project > repository? How about specify the relative path like "${lib.dir}/junit.jar" so that lib.dir can be overridden by the package maintainer in the debian/rules. Also with cdbs you can specify DEB_JARS which simply contains names of libraries. The jar files will be looked for in a specific directory i.e. /usr/share/java. Onkar -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Bug#543327: junit4 has dropped ant jar
On Mon, Aug 24, 2009 at 05:34:10PM +0530, Onkar Shinde wrote: > Please do not add the link again. If this ends up being the result, a NEWS.Debian entry would be appropriate, since I'm likely not the only one who was relying on the old behavior. OTOH, I wouldn't want to hardcode the junit path in my build.xml. Is there an alternative way to specify the jar, short of putting one in my project repository? -- Antti-Juhani Kaijanaho, Jyväskylä, Finland http://antti-juhani.kaijanaho.fi/newblog/ http://www.flickr.com/photos/antti-juhani/ -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Bug#543327: junit4 has dropped ant jar
On Mon, Aug 24, 2009 at 4:18 PM, Antti-Juhani Kaijanaho wrote: > On Mon, Aug 24, 2009 at 12:21:21PM +0200, Damien Raude-Morvan wrote: >> BTW, I think there was a classpath conflict between : >> /usr/share/ant/lib/junit4.jar (4.7) >> and >> /usr/share/ant/lib/junit.jar (3.8.7) >> Both provides junit.* classes. >> >> Are you sure having both of them auto-loaded by Ant is the right thing to >> do ? > > Probably not. But how many have both installed at the same time? In my opinion, there shouldn't be any symlinks in ant lib directory for files that have nothing to do with ant. This unexpectedly modifies the default classpath for ant. It takes lot of time to hunt down build failures caused by such links. Fox example, velocity package was installing links to 3 libraries in ant lib directory. One of them was jdom0. And this caused problem for building packages which needed jdom1. Please do not add the link again. Onkar -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Bug#543327: junit4 has dropped ant jar
On Mon, Aug 24, 2009 at 12:21:21PM +0200, Damien Raude-Morvan wrote: > BTW, I think there was a classpath conflict between : > /usr/share/ant/lib/junit4.jar (4.7) > and > /usr/share/ant/lib/junit.jar (3.8.7) > Both provides junit.* classes. > > Are you sure having both of them auto-loaded by Ant is the right thing to > do ? Probably not. But how many have both installed at the same time? -- Antti-Juhani Kaijanaho, Jyväskylä, Finland http://antti-juhani.kaijanaho.fi/newblog/ http://www.flickr.com/photos/antti-juhani/ -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Bug#543327: junit4 has dropped ant jar
On Mon, 24 Aug 2009 11:56:17 +0300, Antti-Juhani Kaijanaho wrote: Hi, > $ dpkg -c junit4_4.6-2_all.deb | grep ant > drwxr-xr-x root/root 0 2009-06-22 23:48 ./usr/share/ant/ > drwxr-xr-x root/root 0 2009-06-22 23:48 ./usr/share/ant/lib/ > -rw-r--r-- root/root 8578 2009-06-22 23:48 > ./usr/share/doc/junit4/api/constant-values.html > lrwxrwxrwx root/root 0 2009-06-22 23:48 > ./usr/share/ant/lib/junit4.jar -> ../../java/junit4.jar > $ dpkg -c junit4_4.7-1_all.deb | grep ant > $ > > I see no note in the changelog.Debian that makes me think this is > deliberate, > so I'm assuming it's a bug. Yes, it's a mistake. I missed this symlink during migration to "Maven-Repo-Helper". BTW, I think there was a classpath conflict between : /usr/share/ant/lib/junit4.jar (4.7) and /usr/share/ant/lib/junit.jar (3.8.7) Both provides junit.* classes. Are you sure having both of them auto-loaded by Ant is the right thing to do ? Cheers, -- Damien Raude-Morvan - http://damien.raude-morvan.com/ -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Bug#543327: junit4 has dropped ant jar
Package: junit4 Version: 4.7-1 Severity: normal $ dpkg -c junit4_4.6-2_all.deb | grep ant drwxr-xr-x root/root 0 2009-06-22 23:48 ./usr/share/ant/ drwxr-xr-x root/root 0 2009-06-22 23:48 ./usr/share/ant/lib/ -rw-r--r-- root/root 8578 2009-06-22 23:48 ./usr/share/doc/junit4/api/constant-values.html lrwxrwxrwx root/root 0 2009-06-22 23:48 ./usr/share/ant/lib/junit4.jar -> ../../java/junit4.jar $ dpkg -c junit4_4.7-1_all.deb | grep ant $ I see no note in the changelog.Debian that makes me think this is deliberate, so I'm assuming it's a bug. -- System Information: Debian Release: squeeze/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'stable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 2.6.30.5-ibid-1 (SMP w/2 CPU cores; PREEMPT) Locale: LANG=fi_FI.UTF-8, LC_CTYPE=fi_FI.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages junit4 depends on: ii java-gcj-compat [java2-runtim 1.0.80-5.1 Java runtime environment using GIJ ii libhamcrest-java 1.1-2 library of matchers for building t ii openjdk-6-jre [java2-runtime] 6b16-4 OpenJDK Java runtime, using Hotspo junit4 recommends no packages. junit4 suggests no packages. -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org