ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maart...@apache.org
Subject svn commit: r957741 - /ant/ivy/core/trunk/build-release.xml
Date Thu, 24 Jun 2010 22:31:24 GMT
Author: maartenc
Date: Thu Jun 24 22:31:24 2010
New Revision: 957741

URL: http://svn.apache.org/viewvc?rev=957741&view=rev
Log:
- The "rat-report" target now fails if there are missing/incorrect licenses.
- Excluded some extra files from the RAT report

Modified:
    ant/ivy/core/trunk/build-release.xml

Modified: ant/ivy/core/trunk/build-release.xml
URL: http://svn.apache.org/viewvc/ant/ivy/core/trunk/build-release.xml?rev=957741&r1=957740&r2=957741&view=diff
==============================================================================
--- ant/ivy/core/trunk/build-release.xml (original)
+++ ant/ivy/core/trunk/build-release.xml Thu Jun 24 22:31:24 2010
@@ -443,12 +443,27 @@
 		<mkdir dir="${rat.report.dir}"/>
 	    <rat:report xmlns:rat="antlib:org.apache.rat.anttasks" reportFile="${rat.report.dir}/rat-report.txt">
 	      <fileset dir="${basedir}">
-	        <exclude name="build/**/*"/>
-	      	<exclude name="**/*.sha1"/>
-            <exclude name="**/*.md5"/>
+	      	<exclude name=".classpath" />
+	        <exclude name="build/**/*" />
+	      	<exclude name="**/*.sha1" />
+            <exclude name="**/*.md5" />
+	      	<exclude name="**/*.txt" />
+	      	<exclude name="META-INF/MANIFEST.MF" />
+	      	<exclude name="**/*.json" />
+            <exclude name="doc/config.js" />
+            <exclude name="doc/js/jquery.pack.js" />
+            <exclude name="doc/js/jquery.treeview.js" />
+	      	<exclude name="doc/xooki/tiddly/util.js" />
 	      </fileset>
 	    </rat:report>
 
+		<fail message="Some files have missing or incorrect license information. Check RAT report
for more details!">
+			<condition>
+			    <not>
+			        <resourcecontains resource="${rat.report.dir}/rat-report.txt" substring="0
Unknown Licenses" casesensitive="false" /> 
+			    </not>
+			</condition>
+		</fail>
 	</target>
 	
 	<target name="prepare-snapshot" 



Mime
View raw message