Re: Cleaning a Directory After Tests
Or you could configure an antrun to do the deleting Roland On Friday 28 July 2006 04:12, Ole Ersoy wrote: Actually, I think it's cleaner just to use the apache commons.io library FileUtils.delete(File directory) method in the teardown of the test. Here's the dependency in case anyone else wants to do this: dependency groupIdcommons-io/groupId artifactIdcommons-io/artifactId version1.2/version scopetest/scope /dependency Cheers, - Ole --- Ole Ersoy [EMAIL PROTECTED] wrote: Hi, My tests create a directory in the root of the project. Does anyone know of a plugin that will clean a specified directory? Something similar to doing this in ant: delete directory=parent/child/directoryToDelete/ Thanks, - Ole __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cleaning a Directory After Tests
On 7/27/06, Ole Ersoy [EMAIL PROTECTED] wrote: My tests create a directory in the root of the project. Does it have to? If you put it under target then it will naturally get cleaned up with 'mvn clean'. Does anyone know of a plugin that will clean a specified directory? Something similar to doing this in ant: delete directory=parent/child/directoryToDelete/ You can always bind an execution of antrun and do the delete, but I'd suggest changing the tests if possible. Surefire sets some system properties before running the tests, you can use those (or pass in your own) in order to get the path you need to create the directory. -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Cleaning a Directory After Tests
Hi, My tests create a directory in the root of the project. Does anyone know of a plugin that will clean a specified directory? Something similar to doing this in ant: delete directory=parent/child/directoryToDelete/ Thanks, - Ole __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cleaning a Directory After Tests
Actually, I think it's cleaner just to use the apache commons.io library FileUtils.delete(File directory) method in the teardown of the test. Here's the dependency in case anyone else wants to do this: dependency groupIdcommons-io/groupId artifactIdcommons-io/artifactId version1.2/version scopetest/scope /dependency Cheers, - Ole --- Ole Ersoy [EMAIL PROTECTED] wrote: Hi, My tests create a directory in the root of the project. Does anyone know of a plugin that will clean a specified directory? Something similar to doing this in ant: delete directory=parent/child/directoryToDelete/ Thanks, - Ole __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]