Author: ruchithf
Date: Mon Jul 30 08:38:19 2007
New Revision: 561014

URL: http://svn.apache.org/viewvc?view=rev&rev=561014
Log:
Got clover reports working ... but it is yet to be configured properly

Modified:
    webservices/rampart/trunk/java/modules/rampart-integration/pom.xml
    webservices/rampart/trunk/java/pom.xml

Modified: webservices/rampart/trunk/java/modules/rampart-integration/pom.xml
URL: 
http://svn.apache.org/viewvc/webservices/rampart/trunk/java/modules/rampart-integration/pom.xml?view=diff&rev=561014&r1=561013&r2=561014
==============================================================================
--- webservices/rampart/trunk/java/modules/rampart-integration/pom.xml 
(original)
+++ webservices/rampart/trunk/java/modules/rampart-integration/pom.xml Mon Jul 
30 08:38:19 2007
@@ -15,27 +15,9 @@
     <name>Rampart - Integration</name>
 
     <build>
-        <!--unitTest>
-              <excludes>
-                  <exclude>**/ScenarioST1Test.class</exclude>
-               </excludes>
-      </unitTest-->
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-surefire-plugin</artifactId>
-                <configuration>
-                    <!-- The pertest forkMode is not ideal but seems to be 
necessary
-                         because the test server doesn't shut down properly :-(
-                         Should be removed if possible -->
-                    <forkMode>pertest</forkMode>
-                    <excludes>
-                        <exclude>**/ScenarioST1Test.class</exclude>
-                    </excludes>
-                </configuration>
-            </plugin>
-            <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-dependency-plugin</artifactId>
                 <executions>
                     <execution>
@@ -96,7 +78,7 @@
                         </goals>
                         <configuration>
                             <tasks>
-                              <java 
classname="org.apache.axis2.wsdl.WSDL2Java" fork="true">
+                                                               <java 
classname="org.apache.axis2.wsdl.WSDL2Java" fork="true">
                                     <arg line="-uri 
src/main/resources/ping/ping.wsdl -ss -o target/generated-code -p 
org.apache.axis2.oasis.ping -d xmlbeans -g"/>
                                     <classpath 
refid="maven.dependency.classpath"/>
                                     <classpath 
refid="maven.compile.classpath"/>
@@ -115,18 +97,31 @@
                                       
tofile="target/generated-code/src/org/apache/axis2/security/InteropScenarioClient.java"
                                       overwrite="yes"/>
 
-                               <copy todir="target/test-classes">
+                                               <copy 
todir="target/test-classes">
                                     <fileset 
dir="target/generated-code/resources">
                                         <include name="**/*"/>
                                     </fileset>
                                 </copy>
+
+                                               <copy 
todir="target/clover/test-classes">
+                                    <fileset 
dir="target/generated-code/resources">
+                                        <include name="**/*"/>
+                                    </fileset>
+                                </copy>
+                                                               
+                                                               <javac 
srcdir="target/generated-code" destdir="target/classes" fork="true">
+                                                       <classpath 
refid="maven.dependency.classpath"/>
+                                       <classpath 
refid="maven.compile.classpath"/>
+                                       <classpath 
refid="maven.runtime.classpath"/>
+                                                               </javac>
                                                                
-                               <javac srcdir="target/generated-code" 
destdir="target/classes" fork="true">
-                                       <classpath 
refid="maven.dependency.classpath"/>
+                                                               <mkdir 
dir="target/clover/classes"/>
+                                                               <javac 
srcdir="target/generated-code" destdir="target/clover/classes" fork="true">
+                                                       <classpath 
refid="maven.dependency.classpath"/>
                                        <classpath 
refid="maven.compile.classpath"/>
                                        <classpath 
refid="maven.runtime.classpath"/>
-                               </javac>
-                           </tasks>
+                                                               </javac>
+                                                       </tasks>
                         </configuration>
                     </execution>
                     <execution>

Modified: webservices/rampart/trunk/java/pom.xml
URL: 
http://svn.apache.org/viewvc/webservices/rampart/trunk/java/pom.xml?view=diff&rev=561014&r1=561013&r2=561014
==============================================================================
--- webservices/rampart/trunk/java/pom.xml (original)
+++ webservices/rampart/trunk/java/pom.xml Mon Jul 30 08:38:19 2007
@@ -138,6 +138,22 @@
 
     </pluginRepositories>
 
+       <reporting>
+               <excludeDefaults>true</excludeDefaults>
+               <plugins>
+                 <plugin>
+                       <artifactId>maven-clover-plugin</artifactId>
+                       <configuration>
+                         <generateHistorical>true</generateHistorical>
+                               <!-- Verify that we can generate all types of 
Clover reports -->
+                               <generateHtml>true</generateHtml>
+                               <generatePdf>true</generatePdf>
+                               <generateXml>true</generateXml>
+                       </configuration>
+                 </plugin>
+               </plugins>
+       </reporting>
+
     <build>
         <plugins>
 
@@ -152,17 +168,43 @@
             </plugin>
 
             <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-surefire-plugin</artifactId>
-                <version>2.2</version>
-            </plugin>
-
-            <plugin>
-                <artifactId>maven-site-plugin</artifactId>
-                <version>2.0-beta-5</version>
-                <inherited>false</inherited>
+                <artifactId>maven-site-plugin</artifactId>
+                <version>2.0-beta-5</version>
+                <inherited>false</inherited>
             </plugin>
 
+                       <plugin>
+                               <artifactId>maven-clover-plugin</artifactId>
+                               <configuration>
+                                 <flushPolicy>threaded</flushPolicy>
+                                 <flushInterval>100</flushInterval>
+                                 <targetPercentage>0%</targetPercentage>
+                               </configuration>
+                               <executions>
+                                 <execution>
+                                       <id>main</id>
+                                       <phase>verify</phase>
+                                       <goals>
+                                         <goal>instrument</goal>
+                                         <goal>aggregate</goal>
+                                         <goal>check</goal>
+                                         <goal>log</goal>
+                                       </goals>
+                                 </execution>
+                                 <execution>
+                                       <id>site</id>
+                                       <phase>pre-site</phase>
+                                       <goals>
+                                         <goal>instrument</goal>
+                                         <goal>aggregate</goal>
+                               
+                                         <!-- We save a history point in order 
to have data to generate a historical report -->
+                                         <goal>save-history</goal>
+                               
+                                       </goals>
+                                 </execution>
+                               </executions>
+                       </plugin>
         </plugins>
     </build>
 
@@ -473,10 +515,10 @@
             <id>apache-snapshots</id>
             <name>Apache Development Repository</name>
             
<url>scpexe://people.apache.org//www/people.apache.org/repo/m2-snapshot-repository</url>
-        </snapshotRepository>
-        <site>
-            <id>website</id>
-            <url>scpexe://people.apache.org/www/ws.apache.org/rampart</url>
+        </snapshotRepository>
+        <site>
+            <id>website</id>
+            <url>scpexe://people.apache.org/www/ws.apache.org/rampart</url>
         </site>
     </distributionManagement>
 </project>


Reply via email to