[weld-commits] Weld SVN: r5542 - build/trunk/dist-tck.
weld-commits at lists.jboss.org
weld-commits at lists.jboss.org
Wed Jan 20 18:21:01 EST 2010
Author: pete.muir at jboss.org
Date: 2010-01-20 18:21:00 -0500 (Wed, 20 Jan 2010)
New Revision: 5542
Added:
build/trunk/dist-tck/generate-custom-dd-report.sh
Modified:
build/trunk/dist-tck/assembly.xml
Log:
add a report for overridden dds
Modified: build/trunk/dist-tck/assembly.xml
===================================================================
--- build/trunk/dist-tck/assembly.xml 2010-01-20 23:15:10 UTC (rev 5541)
+++ build/trunk/dist-tck/assembly.xml 2010-01-20 23:21:00 UTC (rev 5542)
@@ -18,6 +18,7 @@
<include>readme.txt</include>
<include>apl.txt</include>
<include>release-notes.txt</include>
+ <include>dd-override-report.txt</include>
</includes>
</fileSet>
</fileSets>
Added: build/trunk/dist-tck/generate-custom-dd-report.sh
===================================================================
--- build/trunk/dist-tck/generate-custom-dd-report.sh (rev 0)
+++ build/trunk/dist-tck/generate-custom-dd-report.sh 2010-01-20 23:21:00 UTC (rev 5542)
@@ -0,0 +1,24 @@
+#!/bin/sh
+
+ANNOTATIONS="@PersistenceXml @WebXml @EjbJarXml"
+
+report=`pwd`/dd-override-report.txt
+echo "Deployment Descripters overriden by the TCK\n\n" > dd-override-report.txt
+
+if [[ -z $TCK_HOME ]]
+then
+ echo "ERROR: You must set the environment variable TCK_HOME to point at the TCK to report on"
+ exit
+fi
+
+echo "Using TCK in $TCK_HOME"
+
+cd $TCK_HOME/impl/src/main/java
+for annotation in $ANNOTATIONS
+do
+ echo "$annotation\n" >> $report
+ echo "------------\n" >> $report
+ grep -r "$annotation" --include "*.java" * | sed 's/[A-z]*\.java:@[A-z]*("//g' | sed 's/")//g' | sed 's/
+//g' >> $report
+ echo "\n" >> $report
+done
Property changes on: build/trunk/dist-tck/generate-custom-dd-report.sh
___________________________________________________________________
Name: svn:executable
+ *
More information about the weld-commits
mailing list