forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cross...@apache.org
Subject svn commit: r1425367 - /forrest/trunk/main/build.xml
Date Sat, 22 Dec 2012 22:59:44 GMT
Author: crossley
Date: Sat Dec 22 22:59:43 2012
New Revision: 1425367

URL: http://svn.apache.org/viewvc?rev=1425367&view=rev
Log:
Report the list of installed plugins.
Issue: FOR-1235

Modified:
    forrest/trunk/main/build.xml

Modified: forrest/trunk/main/build.xml
URL: http://svn.apache.org/viewvc/forrest/trunk/main/build.xml?rev=1425367&r1=1425366&r2=1425367&view=diff
==============================================================================
--- forrest/trunk/main/build.xml (original)
+++ forrest/trunk/main/build.xml Sat Dec 22 22:59:43 2012
@@ -217,6 +217,22 @@ See other notes above.
 <!-- =================================================================== -->
   <target name="validate-config" depends="init"
     description="Validate the important core configuration files">
+    <if>
+      <available file="${build.dir}/plugins"/>
+      <then>
+        <dirset dir="${build.dir}/plugins" id="installed-plugins">
+          <include name="*"/>
+          <exclude name="lib"/>
+        </dirset>
+        <pathconvert pathsep=", " property="installed-plugins" refid="installed-plugins">
+          <mapper type="flatten"/>
+        </pathconvert>
+      </then>
+      <else>
+        <property name="installed-plugins" value="None"/>
+      </else>
+    </if>
+    <echo level="info">Installed plugins: ${installed-plugins}</echo>
 <!-- FIXME allow switch if="validate.config"  -->
     <taskdef name="jing" classname="com.thaiopensource.relaxng.util.JingTask">
       <classpath>



Mime
View raw message