keeping and restoring old version
---------------------------------
Key: MTOMCAT-26
URL: http://jira.codehaus.org/browse/MTOMCAT-26
Project: Maven 2.x Tomcat Plugin
Issue Type: Wish
Affects Versions: 1.0-beta-1
Environment: worked with RedHat workstation/server
Reporter: Simon Arame
Fix For: 1.0
Attachments: install&restore_dependancies.zip, Install.java,
Restore.java
Proposition consist of two new goals : tomcat:install and tomcat:restore (the
goals names are up for change)
the install mojo extends deploy mojo so that it first does what deploy does and
then it copy the war file to a standard location (that could be given as a
parameter) in the maven-repository (I am using new
File(localRepository.getBasedir()+"/tomcat/tomcat-deploy-repo/"+groupId+"/"+artifactId+"/"+profileId+"/"+version);
the war file is copied with a timestamp so that the tomcat:restore goal can
redeploy a previously "installed" war file.
the usefullness is obvious for web developpers when commiting many changes to a
trunk and the webapp suddenly stops to work properly it is easier to quickly
restore a working war file to a production server than having to figure out
what is the bug first and this happens even when intensive testing is done.
Tthe only delicated thing regarding the actual code is the addition of
protected setWarFile() method in AbstractDeploWarMojo class
this is the diff output :
diff
tomcat-maven-plugin-1.0-beta-1/src/main/java/org/codehaus/mojo/tomcat/AbstractDeployWarMojo.java
tomcat-maven-plugin-1.0-beta-2/src/main/java/org/codehaus/mojo/tomcat/AbstractDeployWarMojo.java
59a60,63
>
> protected void setWarFile(File warFile){
> this.warFile = warFile;
> }
Only in tomcat-maven-plugin-1.0-beta-2/src/main/java/org/codehaus/mojo/tomcat:
FileUtils.java
Only in tomcat-maven-plugin-1.0-beta-2/src/main/java/org/codehaus/mojo/tomcat:
Install.java
Only in tomcat-maven-plugin-1.0-beta-2/src/main/java/org/codehaus/mojo/tomcat:
Keyboard.java
Only in tomcat-maven-plugin-1.0-beta-2/src/main/java/org/codehaus/mojo/tomcat:
Restore.java
Only in tomcat-maven-plugin-1.0-beta-1/src/main/java/org/codehaus/mojo/tomcat:
.svn
--
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 from this list, please visit:
http://xircles.codehaus.org/manage_email