Updated Branches:
  refs/heads/develop b26e5332e -> 6fb5740d1

add rat task for general purpose ratting


Project: http://git-wip-us.apache.org/repos/asf/flex-sdk/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-sdk/commit/28b71d31
Tree: http://git-wip-us.apache.org/repos/asf/flex-sdk/tree/28b71d31
Diff: http://git-wip-us.apache.org/repos/asf/flex-sdk/diff/28b71d31

Branch: refs/heads/develop
Commit: 28b71d316efe9f78e0a57038f1b57dc5ca62668b
Parents: b26e533
Author: Alex Harui <[email protected]>
Authored: Tue Jan 7 17:12:29 2014 -0800
Committer: Alex Harui <[email protected]>
Committed: Tue Jan 14 06:16:13 2014 -0800

----------------------------------------------------------------------
 build.xml | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/28b71d31/build.xml
----------------------------------------------------------------------
diff --git a/build.xml b/build.xml
index 40a8973..c1d3aa4 100644
--- a/build.xml
+++ b/build.xml
@@ -1900,4 +1900,34 @@ There are no known issues.
            <delete file="${basedir}/out/pb.tar" failonerror="false" />
        </target>
 
+    <!--
+     Run the Apache Rat audit tool against a directory without filters.
+     The report is written to rat.report.
+     
+     Specify the folder to scan with -Drat.dir=<dir>.
+     
+     You need to place apache-rat-tasks-0.8.jar and apache-rat-0.8.jar in the
+     anttask.classpath in order to do this.  If the jar isn't found, the report
+     will not be generated.
+     -->
+    <target name="rat-dir" depends="rat-taskdef" if="have.rattasks"
+        description="Report on licenses in a folder">
+        
+        <fail message="rat.dir not specified">
+            <condition>
+                <not>
+                    <isset property="rat.dir"/>
+                </not>
+            </condition>
+        </fail>
+        
+        <property name="rat.report" value="${basedir}/rat.report"/>
+        <echo message="Checking files at ${rat.dir}, report is ${rat.report}"/>
+        
+        <rat:report xmlns:rat="antlib:org.apache.rat.anttasks" 
reportFile="${rat.report}">
+            <fileset dir="${rat.dir}">
+            </fileset>
+        </rat:report>
+    </target>
+
 </project>

Reply via email to