Re: Transition from junit to junit4

2012-05-27 Thread Emmanuel Bourg

Le 20/05/2012 14:55, Onkar Shinde a écrit :


I haven't received any response on this. Any thoughts?


How would you do that for Maven based projects depending on JUnit 3, 
like several projects from Apache Commons? Do you plan to rewrite the 
POM on the fly?



Emmanuel Bourg



smime.p7s
Description: S/MIME Cryptographic Signature


Re: Transition from junit to junit4

2012-05-27 Thread Ludovic Claude
That's quite easy. If the package uses maven-debian-helper or
maven-repo-helper, then you need to use the following rule in
debian/maven.rules to use unconditionally Junit 4:

junit junit jar s/.*/4.x/ * *

Change the dependency from junit to junit4 in debian/control, and it
should work!

Ludovic

On 27/05/2012 22:12, Emmanuel Bourg wrote:
 Le 20/05/2012 14:55, Onkar Shinde a écrit :
 
 I haven't received any response on this. Any thoughts?
 
 How would you do that for Maven based projects depending on JUnit 3,
 like several projects from Apache Commons? Do you plan to rewrite the
 POM on the fly?
 
 
 Emmanuel Bourg
 


-- 
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/4fc296f4.7060...@laposte.net



Re: Transition from junit to junit4

2012-05-27 Thread Onkar Shinde
On Mon, May 28, 2012 at 2:34 AM, Ludovic Claude
ludovic.cla...@laposte.net wrote:
 That's quite easy. If the package uses maven-debian-helper or
 maven-repo-helper, then you need to use the following rule in
 debian/maven.rules to use unconditionally Junit 4:

 junit junit jar s/.*/4.x/ * *

 Change the dependency from junit to junit4 in debian/control, and it
 should work!

My Debian machine went down yesterday because of some sort of file
system corruption. So I could not manage to create a wiki page listing
all packages.

For now I have created list against Ubuntu Quantal sources. This
should be at least 90% similar to the list you will get in Debian
Wheezy installation.
http://people.ubuntu.com/~onkarshinde/junit_build_depends.txt

For packages that use ant as build system you will simply need to
change junit build dep to junit4 and update build classpath in
d/rules. You may need to change some build properties passed to ant in
some cases.

Ludovic has already explained how to modify maven based packages.

Please note that this is not an official transition. As I have
specified work on this only if you are making other important changes
to package (similar to how we removed jre dependencies from library
packages). Feel free to keep this change if you face any issues.

Cheers,
Onkar
-- 
Passion - Some people climb mountains - others write Free software.
Don't ask why - the reason is the same.


-- 
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/cakbpjyggtq5mzscno0xvqgjdkxbovukmrcmh1x8nwcwlt_b...@mail.gmail.com



Re: Transition from junit to junit4

2012-05-23 Thread Niels Thykier
On 2012-05-20 14:55, Onkar Shinde wrote:
 On Sun, May 6, 2012 at 6:55 PM, Onkar Shinde onkarshi...@gmail.com wrote:
 Hi all,

 We have considerable number of packages (close to 200) in archive
 which build depend on junit package (3.x version). Considering that
 this version has been unsupported for long time by upstream authors,
 do you think it is time to transition packages to junit4 as and when
 possible?
 junit4 is backward compatible with junit. Also considering that in
 most cases this is just a build dependency, as long as build does not
 fail with junit4 we are safe with the transition. We need not make
 this a compulsion. Just make the change if you are working on other
 updates for any package.

 Let me know your thoughts.
 
 I haven't received any response on this. Any thoughts?
 
 Cheers,
 Onkar

Hi,

Sorry for the silence on my part.

Personally I would be okay with migrating to junit4 if junit4 is
backwards compatible and it means we can get rid of junit3.  It is
probably too late for Wheezy, but I see no problem in already starting now.

~Niels


-- 
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/4fbc938...@thykier.net



Re: Transition from junit to junit4

2012-05-23 Thread Arnaud Vandyck
Le 6/05/12 15:25, Onkar Shinde a écrit :
 Hi all,

Hi,

 We have considerable number of packages (close to 200) in archive
 which build depend on junit package (3.x version).

Is there a list published on some wiki to know who works on which package?

Are there priority packages?

I'd like to help but I made my last package a long time ago! I first
have to read some docs on the new practices. Any link to help? ;-)

Regards

-- 
Arnaud Vandyck
http://be.linkedin.com/in/avdyk
http://facebook.com/avdyk


-- 
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/4fbc9d59.1050...@gmail.com



Re: Transition from junit to junit4

2012-05-20 Thread Onkar Shinde
On Sun, May 6, 2012 at 6:55 PM, Onkar Shinde onkarshi...@gmail.com wrote:
 Hi all,

 We have considerable number of packages (close to 200) in archive
 which build depend on junit package (3.x version). Considering that
 this version has been unsupported for long time by upstream authors,
 do you think it is time to transition packages to junit4 as and when
 possible?
 junit4 is backward compatible with junit. Also considering that in
 most cases this is just a build dependency, as long as build does not
 fail with junit4 we are safe with the transition. We need not make
 this a compulsion. Just make the change if you are working on other
 updates for any package.

 Let me know your thoughts.

I haven't received any response on this. Any thoughts?

Cheers,
Onkar
-- 
Passion - Some people climb mountains - others write Free software.
Don't ask why - the reason is the same.


-- 
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/CAKBPJygoO=VB_ydnE9STg_Mzv=asmusyrt2_k7+wadta5ww...@mail.gmail.com



Transition from junit to junit4

2012-05-06 Thread Onkar Shinde
Hi all,

We have considerable number of packages (close to 200) in archive
which build depend on junit package (3.x version). Considering that
this version has been unsupported for long time by upstream authors,
do you think it is time to transition packages to junit4 as and when
possible?
junit4 is backward compatible with junit. Also considering that in
most cases this is just a build dependency, as long as build does not
fail with junit4 we are safe with the transition. We need not make
this a compulsion. Just make the change if you are working on other
updates for any package.

Let me know your thoughts.


Cheers,
Onkar
-- 
Passion - Some people climb mountains - others write Free software.
Don't ask why - the reason is the same.


-- 
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/cakbpjyjjxanbvuosh3+zle52ak8a5t9wg+ilzm0v_vjc72v...@mail.gmail.com