Author: ltheussl
Date: Thu Aug 17 12:00:49 2006
New Revision: 432339

URL: http://svn.apache.org/viewvc?rev=432339&view=rev
Log:
PR: MPWAR-36
Only create tld and lib folders if corresponding dependencies are present.

Modified:
    maven/maven-1/plugins/trunk/war/plugin.jelly
    maven/maven-1/plugins/trunk/war/xdocs/changes.xml

Modified: maven/maven-1/plugins/trunk/war/plugin.jelly
URL: 
http://svn.apache.org/viewvc/maven/maven-1/plugins/trunk/war/plugin.jelly?rev=432339&r1=432338&r2=432339&view=diff
==============================================================================
--- maven/maven-1/plugins/trunk/war/plugin.jelly (original)
+++ maven/maven-1/plugins/trunk/war/plugin.jelly Thu Aug 17 12:00:49 2006
@@ -190,22 +190,19 @@
     <ant:echo>Assembling webapp ${pom.artifactId}</ant:echo>
 
     <j:set var="webapp.build.lib" value="${webapp.build.webinf}/lib"/>
-    <ant:mkdir dir="${webapp.build.lib}"/>
-    
     <j:set var="webapp.build.tlds" 
value="${maven.war.webapp.dir}/${maven.war.tld.dir}"/>
-    <ant:mkdir dir="${webapp.build.tlds}"/>
-    
     <j:set var="webapp.build.classes" value="${webapp.build.webinf}/classes"/>
-    <ant:mkdir dir="${webapp.build.classes}"/>
 
     <j:forEach var="lib" items="${pom.artifacts}">
       <j:set var="dep" value="${lib.dependency}"/>     
       <j:if test="${dep.getProperty('war.bundle')=='true'}">
          <j:choose>
            <j:when test="${dep.type =='jar' or dep.type =='ejb' or dep.type == 
'ejb-client'}"> 
+             <ant:mkdir dir="${webapp.build.lib}"/>
              <ant:copy todir="${webapp.build.lib}" file="${lib.path}"/>  
            </j:when> 
            <j:when test="${dep.type =='tld'}"> 
+             <ant:mkdir dir="${webapp.build.tlds}"/>
              <ant:copy todir="${webapp.build.tlds}" file="${lib.path}"/>  
            </j:when> 
          </j:choose>           
@@ -216,6 +213,7 @@
             DEPRECATION WARNING:            
             Use : war.bundle instead of war.bundle.jar
           </ant:echo>
+        <ant:mkdir dir="${webapp.build.lib}"/>
         <ant:copy todir="${webapp.build.lib}" file="${lib.path}"/>
       </j:if>  
       <!-- END OF TO BE REMOVED -->
@@ -227,6 +225,7 @@
     </j:forEach>            
 
     <util:available file="${maven.build.dest}">
+      <ant:mkdir dir="${webapp.build.classes}"/>
       <ant:copy todir="${webapp.build.classes}">
         <ant:fileset dir="${maven.build.dest}"
           includes="${maven.war.classes.includes}"

Modified: maven/maven-1/plugins/trunk/war/xdocs/changes.xml
URL: 
http://svn.apache.org/viewvc/maven/maven-1/plugins/trunk/war/xdocs/changes.xml?rev=432339&r1=432338&r2=432339&view=diff
==============================================================================
--- maven/maven-1/plugins/trunk/war/xdocs/changes.xml (original)
+++ maven/maven-1/plugins/trunk/war/xdocs/changes.xml Thu Aug 17 12:00:49 2006
@@ -24,6 +24,7 @@
   </properties>
   <body>
     <release version="1.6.3-SNAPSHOT" date="in SVN">
+      <action dev="ltheussl" type="fix" issue="MPWAR-36">Only create tld and 
lib folders if corresponding dependencies are present.</action>
       <action dev="ltheussl" type="fix" issue="MPWAR-45" due-to="Kim 
Dykeman">war:inplace should check for maven.war.src.</action>
       <action dev="ltheussl" type="fix">
         <description>Java sources are not compiled when used with 
maven-test-plugin-1.8 and maven.test.skip=true.</description>


Reply via email to