You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by John Coleman <jo...@eurobase-international.com> on 2008/09/18 10:15:36 UTC
Tests leave files that release number plugin won't allow
I have a problem whereby my tests create log files in the project root
and then sometimes fail to delete them when the test completes.
The build number plugin doesn't like this:-
[INFO] Cannot create the build number because you have local
modifications :
[ratemanager2\unit_test.log:unknown]
I think the solution is to place such files outside the project
directory in a temporary directory. However, the path for such a
directory is likely to be unpredictable, so I can't make it a property
in profiles for example. In windows I could use tmpdir property, but
what about linux, and what about permissions?
Any suggestions please?
TIA
John
Eurobase International Limited and its subsidiaries (Eurobase) are unable to exercise control over the content of information in E-Mails. Any views and opinions expressed may be personal to the sender and are not necessarily those of Eurobase. Eurobase will not enter into any contractual obligations in respect of any part of its business in any E-mail.
Privileged / confidential information may be contained in this message and /or any attachments. This E-mail is intended for the use of the addressee(s) only and may contain confidential information. If you are not the / an intended recipient, you are hereby notified that any use or dissemination of this communication is strictly prohibited. If you receive this transmission in error, please notify us immediately, and then delete this E-mail.
Neither the sender nor Eurobase accepts any liability whatsoever for any defects of any kind either in or arising from this E-mail transmission. E-Mail transmission cannot be guaranteed to be secure or error-free, as messages can be intercepted, lost, corrupted, destroyed, contain viruses, or arrive late or incomplete. Eurobase does not accept any responsibility for viruses and it is your responsibility to scan any attachments.
Eurobase Systems Limited is the main trading company in the Eurobase International Group; registered in England and Wales as company number 02251162; registered address: Essex House, 2 County Place, Chelmsford, Essex CM2 0RE, UK.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Tests leave files that release number plugin won't allow
Posted by Nick Stolwijk <ni...@gmail.com>.
You could place them in the target directory (ie. target/test-logs) or
you could ask the Java IO File object for a temporary file. (Under
Linux this would be created in /tmp, so no rights issues there.)
Hth,
Nick Stolwijk
~Java Developer~
Iprofs BV.
Claus Sluterweg 125
2012 WS Haarlem
www.iprofs.nl
On Thu, Sep 18, 2008 at 10:15 AM, John Coleman
<jo...@eurobase-international.com> wrote:
> I have a problem whereby my tests create log files in the project root
> and then sometimes fail to delete them when the test completes.
>
> The build number plugin doesn't like this:-
>
> [INFO] Cannot create the build number because you have local
> modifications :
> [ratemanager2\unit_test.log:unknown]
>
> I think the solution is to place such files outside the project
> directory in a temporary directory. However, the path for such a
> directory is likely to be unpredictable, so I can't make it a property
> in profiles for example. In windows I could use tmpdir property, but
> what about linux, and what about permissions?
>
> Any suggestions please?
>
> TIA
> John
>
> Eurobase International Limited and its subsidiaries (Eurobase) are unable to exercise control over the content of information in E-Mails. Any views and opinions expressed may be personal to the sender and are not necessarily those of Eurobase. Eurobase will not enter into any contractual obligations in respect of any part of its business in any E-mail.
>
> Privileged / confidential information may be contained in this message and /or any attachments. This E-mail is intended for the use of the addressee(s) only and may contain confidential information. If you are not the / an intended recipient, you are hereby notified that any use or dissemination of this communication is strictly prohibited. If you receive this transmission in error, please notify us immediately, and then delete this E-mail.
>
> Neither the sender nor Eurobase accepts any liability whatsoever for any defects of any kind either in or arising from this E-mail transmission. E-Mail transmission cannot be guaranteed to be secure or error-free, as messages can be intercepted, lost, corrupted, destroyed, contain viruses, or arrive late or incomplete. Eurobase does not accept any responsibility for viruses and it is your responsibility to scan any attachments.
>
> Eurobase Systems Limited is the main trading company in the Eurobase International Group; registered in England and Wales as company number 02251162; registered address: Essex House, 2 County Place, Chelmsford, Essex CM2 0RE, UK.
>
>
> ---------------------------------------------------------------------
> 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