Over-riding, preceeding, or anhancing the clean target

2011-02-17 Thread Hahn, Christopher (SAN DIEGO)
Hello,

I would like to change the way the clean target operates.

I have had process failures because some dilbert (moi) left
focus in a build folder which makes the clean action fail.

In perl, I have wrapped such calls in error trapping code that
would send an announcement out, sleep, and then try again.

This would be advantageous to do in Maven.

So, I am thinking that I either need to call my own code either before
clean fires off, or from inside the clean module.  If my action obviates
clean, then this would be fineit can still run, no-op.

Has anyone done something like this?  I am just hoping for a bread crumb
to follow.  Google didn't really get too close.

Thank you for the kind attention, in any case,

Christopher



[cid:image001.png@01CBCEAD.D5B00DA0]

Christopher Hahn
The Dude
Software Production Engineering
RD Services, Hewlett-Packard
Phone: 858-655-4096
Cell: 619-630-9791
ch...@hp.commailto:christopher.h...@hp.com

Visit our SPE Portalhttp://teams5.sharepoint.hp.com/teams/SPE/default.aspx







Re: Over-riding, preceeding, or anhancing the clean target

2011-02-17 Thread Zilvinas Vilutis
you may also write your own clean plugin ;)

Žilvinas Vilutis

Mobile:   (+370) 652 38353
E-mail:   cika...@gmail.com


On Thu, Feb 17, 2011 at 3:22 PM, Hahn, Christopher (SAN DIEGO) 
christopher.h...@hp.com wrote:

 Hello,



 I would like to change the way the clean target operates.



 I have had process failures because some dilbert (moi) left

 focus in a build folder which makes the clean action fail.



 In perl, I have wrapped such calls in error trapping code that

 would send an announcement out, sleep, and then try again.



 This would be advantageous to do in Maven.



 So, I am thinking that I either need to call my own code either before

 clean fires off, or from inside the clean module.  If my action obviates

 clean, then this would be fineit can still run, no-op.



 Has anyone done something like this?  I am just hoping for a bread crumb

 to follow.  Google didn’t really get too close.



 Thank you for the kind attention, in any case,



 Christopher


 --

 [image: cid:image001.png@01CAF080.AD65F1E0]

 *Christopher Hahn*
 The Dude

 Software Production Engineering
 RD Services, Hewlett-Packard
 Phone: 858-655-4096
 Cell: 619-630-9791
 ch...@hp.com christopher.h...@hp.com



 *Visit our SPE Portal*http://teams5.sharepoint.hp.com/teams/SPE/default.aspx
 **
 --