forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cross...@apache.org
Subject svn commit: r1425427 - /forrest/trunk/main/targets/plugins.xml
Date Sun, 23 Dec 2012 07:16:37 GMT
Author: crossley
Date: Sun Dec 23 07:16:36 2012
New Revision: 1425427

URL: http://svn.apache.org/viewvc?rev=1425427&view=rev
Log:
If property "project.plugins.override=true" then use the already deployed plugins by skipping
the "install-plugin" step.
Issue: FOR-1235

Modified:
    forrest/trunk/main/targets/plugins.xml

Modified: forrest/trunk/main/targets/plugins.xml
URL: http://svn.apache.org/viewvc/forrest/trunk/main/targets/plugins.xml?rev=1425427&r1=1425426&r2=1425427&view=diff
==============================================================================
--- forrest/trunk/main/targets/plugins.xml (original)
+++ forrest/trunk/main/targets/plugins.xml Sun Dec 23 07:16:36 2012
@@ -410,13 +410,27 @@ to be installed again unless you delete 
               select="\2"
               casesensitive="false"
               defaultvalue=""/>
-        <antcall target="install-plugin">
-          <param name="plugin.name" value="${plugin.name}"/>
-          <param name="plugin.version" value="${plugin.version}"/>
-          <param name="versioned.name" value="@{name}"/>
-          <param name="plugins.desc.already.fetched" value="true"/>
-          <param name="proxy.already.set" value="true"/>
-        </antcall>
+        <condition property="project.plugins.overridden">
+          <and>
+            <isset property="project.plugins.override"/>
+            <istrue value="${project.plugins.override}"/>
+          </and>
+        </condition>
+        <if>
+          <isset property="project.plugins.overridden"/>
+          <then>
+            <echo level="info">Using already installed plugin because 'project.plugins.override'
property is ${project.plugins.override}.</echo>
+          </then>
+          <else>
+            <antcall target="install-plugin">
+              <param name="plugin.name" value="${plugin.name}"/>
+              <param name="plugin.version" value="${plugin.version}"/>
+              <param name="versioned.name" value="@{name}"/>
+              <param name="plugins.desc.already.fetched" value="true"/>
+              <param name="proxy.already.set" value="true"/>
+            </antcall>
+          </else>
+        </if>
         <antcall target="configure-plugin">
           <param name="plugin.name" value="${plugin.name}"/>
           <param name="plugin.version" value="${plugin.version}"/>



Mime
View raw message