You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Maarten Coene <Ma...@toughguy.net> on 2004/06/23 17:03:36 UTC
clean-up test garbage
Hi,
everytime I execute my unit tests, maven creates a new file in my
basedir, e.g. "junit458743546.properties". These files never gets
deleted, so if you don't do this manually, after a while the basedir
contains a lot of these files. How can I tell the test-plugin to stop
generating this file, or how can I tell the clean-plugin to delete this
file?
I'm using maven RC3.
thanks,
Maarten
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: clean-up test garbage
Posted by "Jefferson K. French" <je...@frenches.org>.
You can add a postGoal to clean:clean to get rid of them:
<postGoal name="clean:clean">
<delete>
<fileset dir="${basedir}" includes="junit*.properties"/>
</delete>
</postGoal>
I do that to get rid of some files like maven.log and velocity.log.
Jeff
On Wed, 23 Jun 2004, at 17:03:36 [GMT +0200] Maarten Coene wrote:
> Hi,
> everytime I execute my unit tests, maven creates a new file in my
> basedir, e.g. "junit458743546.properties". These files never gets
> deleted, so if you don't do this manually, after a while the basedir
> contains a lot of these files. How can I tell the test-plugin to stop
> generating this file, or how can I tell the clean-plugin to delete this
> file?
> I'm using maven RC3.
> thanks,
> Maarten
--
mailto:jeff@frenches.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: clean-up test garbage
Posted by Eric Pugh <ep...@upstate.com>.
I often stick a post goal on clean to fix these if I have a bunch..
> -----Original Message-----
> From: dan tran [mailto:dantran@gmail.com]
> Sent: Wednesday, June 23, 2004 5:34 PM
> To: Maven Users List
> Subject: Re: clean-up test garbage
>
>
> Maarten,
>
> Internally maven-test-plugin uses junit's ant task to do the job
> junitxxxx.properties is generated by ant task. Therefore, i doubt
> maven can disable this generated file. Normally this file
> is removed automatically by ant task unless you interrupt it.
>
> -Dan
>
>
> On Wed, 23 Jun 2004 17:03:36 +0200, Maarten Coene
> <ma...@toughguy.net> wrote:
> >
> > Hi,
> >
> > everytime I execute my unit tests, maven creates a new file in my
> > basedir, e.g. "junit458743546.properties". These files never gets
> > deleted, so if you don't do this manually, after a while the basedir
> > contains a lot of these files. How can I tell the test-plugin to stop
> > generating this file, or how can I tell the clean-plugin to delete this
> > file?
> >
> > I'm using maven RC3.
> >
> > thanks,
> > Maarten
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: clean-up test garbage
Posted by dan tran <da...@gmail.com>.
Maarten,
Internally maven-test-plugin uses junit's ant task to do the job
junitxxxx.properties is generated by ant task. Therefore, i doubt
maven can disable this generated file. Normally this file
is removed automatically by ant task unless you interrupt it.
-Dan
On Wed, 23 Jun 2004 17:03:36 +0200, Maarten Coene
<ma...@toughguy.net> wrote:
>
> Hi,
>
> everytime I execute my unit tests, maven creates a new file in my
> basedir, e.g. "junit458743546.properties". These files never gets
> deleted, so if you don't do this manually, after a while the basedir
> contains a lot of these files. How can I tell the test-plugin to stop
> generating this file, or how can I tell the clean-plugin to delete this
> file?
>
> I'm using maven RC3.
>
> thanks,
> Maarten
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org