brett 2004/02/23 14:20:27
Modified: war plugin.jelly
war/xdocs changes.xml goals.xml
Log:
add description of changes, add guard against cleaning source files
Revision Changes Path
1.35 +3 -1 maven-plugins/war/plugin.jelly
Index: plugin.jelly
===================================================================
RCS file: /home/cvs/maven-plugins/war/plugin.jelly,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -r1.34 -r1.35
--- plugin.jelly 23 Feb 2004 00:45:52 -0000 1.34
+++ plugin.jelly 23 Feb 2004 22:20:27 -0000 1.35
@@ -211,7 +211,9 @@
description="Remove all artifacts created by war plugin">
<!-- TODO: delete also snapshot and md5 files -->
- <ant:delete dir="${maven.war.webapp.dir}"/>
+ <j:if test="${context.getVariable('maven.war.webapp.dir') !=
context.getVariable('maven.war.src')}">
+ <ant:delete dir="${maven.war.webapp.dir}"/>
+ </j:if>
<ant:delete file="${maven.war.build.dir}/${maven.war.final.name}"
quiet="true" failonerror="false"/>
</goal>
1.17 +7 -0 maven-plugins/war/xdocs/changes.xml
Index: changes.xml
===================================================================
RCS file: /home/cvs/maven-plugins/war/xdocs/changes.xml,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- changes.xml 9 Nov 2003 23:24:34 -0000 1.16
+++ changes.xml 23 Feb 2004 22:20:27 -0000 1.17
@@ -15,6 +15,13 @@
Use the new <code>caller</code> plugin to isolate the
java compilation goal called from its implementation.
</action>
+ <action dev="bporter" type="add">
+ Add war:inplace goal for building the webapp into maven.war.src. You should
cvsignore WEB-INF/lib and
+ WEB-INF/classes
+ </action>
+ <action dev="bporter" type="add">
+ Add target path to dependencies so you can copy to elsewhere than
WEB-INF/lib. Useful for applets.
+ </action>
</release>
<release version="1.4" date="2003-09-29">
1.5 +10 -1 maven-plugins/war/xdocs/goals.xml
Index: goals.xml
===================================================================
RCS file: /home/cvs/maven-plugins/war/xdocs/goals.xml,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- goals.xml 5 Jul 2003 17:10:45 -0000 1.4
+++ goals.xml 23 Feb 2004 22:20:27 -0000 1.5
@@ -54,7 +54,16 @@
<name>war:clean</name>
<description>Delete all artifacts created by war plugin</description>
</goal>
+ <goal>
+ <name>war:inplace</name>
+ <description>
+ Build an exploded web application into ${maven.war.src}. This allows you
to mount it in your application
+ server, and you only need to run it again for dependency and class
changes, not JSP changes.
+ This goal will not clean old dependencies - due to the dangers involved
in automating this for your
+ source tree, you must do that yourself.
+ </description>
+ </goal>
</goals>
</body>
-</document>
\ No newline at end of file
+</document>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]