You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Olivier Lamy (JIRA)" <ji...@codehaus.org> on 2005/11/22 16:55:06 UTC

[jira] Created: (MNG-1655) [maven-war-plugin] adding war:clean to delete webappDirectory

[maven-war-plugin] adding war:clean to delete webappDirectory
-------------------------------------------------------------

         Key: MNG-1655
         URL: http://jira.codehaus.org/browse/MNG-1655
     Project: Maven 2
        Type: New Feature
  Components: maven-war-plugin  
 Environment: all
    Reporter: Olivier Lamy
    Priority: Minor


Just simply add a goal war:clean to delete the directory (if exists) configured in webappDirectory which could not be in  target directory. 
Actually  I do it by inserting ant script but it's not very clean ;-)


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Closed: (MNG-1655) [maven-war-plugin] adding war:clean to delete webappDirectory

Posted by "Olivier Lamy (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-1655?page=all ]
     
Olivier Lamy closed MNG-1655:
-----------------------------

    Resolution: Duplicate

patch  provided with MNG-1669

> [maven-war-plugin] adding war:clean to delete webappDirectory
> -------------------------------------------------------------
>
>          Key: MNG-1655
>          URL: http://jira.codehaus.org/browse/MNG-1655
>      Project: Maven 2
>         Type: New Feature
>   Components: maven-war-plugin
>  Environment: all
>     Reporter: Olivier Lamy
>     Priority: Minor
>  Attachments: WarCleanMojo.java, WarCleanMojo.java, WarExplodedMojo.java, lifecycle.xml
>
>
> Just simply add a goal war:clean to delete the directory (if exists) configured in webappDirectory which could not be in  target directory. 
> Actually  I do it by inserting ant script but it's not very clean ;-)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Updated: (MNG-1655) [maven-war-plugin] adding war:clean to delete webappDirectory

Posted by "Olivier Lamy (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-1655?page=all ]

Olivier Lamy updated MNG-1655:
------------------------------

    Attachment: WarExplodedMojo.java
                WarCleanMojo.java
                lifecycle.xml

I provided different files to attach the clean in the clean phase of the war packaging. 
Note the same annotation : @execute phase="clean" lifecycle="warclean"
must be applied to  :
WarInPlaceMojo.java
WarMojo.java



> [maven-war-plugin] adding war:clean to delete webappDirectory
> -------------------------------------------------------------
>
>          Key: MNG-1655
>          URL: http://jira.codehaus.org/browse/MNG-1655
>      Project: Maven 2
>         Type: New Feature
>   Components: maven-war-plugin
>  Environment: all
>     Reporter: Olivier Lamy
>     Priority: Minor
>  Attachments: WarCleanMojo.java, WarCleanMojo.java, WarExplodedMojo.java, lifecycle.xml
>
>
> Just simply add a goal war:clean to delete the directory (if exists) configured in webappDirectory which could not be in  target directory. 
> Actually  I do it by inserting ant script but it's not very clean ;-)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Commented: (MNG-1655) [maven-war-plugin] adding war:clean to delete webappDirectory

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-1655?page=comments#action_51707 ] 

Brett Porter commented on MNG-1655:
-----------------------------------

sounds good. it should be in the "clean" phase for the war packaging so that it gets called as part of "mvn clean"

> [maven-war-plugin] adding war:clean to delete webappDirectory
> -------------------------------------------------------------
>
>          Key: MNG-1655
>          URL: http://jira.codehaus.org/browse/MNG-1655
>      Project: Maven 2
>         Type: New Feature
>   Components: maven-war-plugin
>  Environment: all
>     Reporter: Olivier Lamy
>     Priority: Minor

>
>
> Just simply add a goal war:clean to delete the directory (if exists) configured in webappDirectory which could not be in  target directory. 
> Actually  I do it by inserting ant script but it's not very clean ;-)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Updated: (MNG-1655) [maven-war-plugin] adding war:clean to delete webappDirectory

Posted by "Olivier Lamy (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-1655?page=all ]

Olivier Lamy updated MNG-1655:
------------------------------

    Attachment: WarCleanMojo.java

Hi,
Find in the attached file the simple class which delete the WebappDirectory().
I don't known how to attach it  to the clean phase of the war packaging.
- Olivier

> [maven-war-plugin] adding war:clean to delete webappDirectory
> -------------------------------------------------------------
>
>          Key: MNG-1655
>          URL: http://jira.codehaus.org/browse/MNG-1655
>      Project: Maven 2
>         Type: New Feature
>   Components: maven-war-plugin
>  Environment: all
>     Reporter: Olivier Lamy
>     Priority: Minor
>  Attachments: WarCleanMojo.java
>
>
> Just simply add a goal war:clean to delete the directory (if exists) configured in webappDirectory which could not be in  target directory. 
> Actually  I do it by inserting ant script but it's not very clean ;-)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org