You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by gd...@apache.org on 2007/05/10 00:07:57 UTC

svn commit: r536683 - /webservices/axis2/trunk/java/modules/integration/pom.xml

Author: gdaniels
Date: Wed May  9 15:07:57 2007
New Revision: 536683

URL: http://svn.apache.org/viewvc?view=rev&rev=536683
Log:
Move enterprise tests to a profile.  So now to build them you go:

mvn -P enterprise <goal>


Modified:
    webservices/axis2/trunk/java/modules/integration/pom.xml

Modified: webservices/axis2/trunk/java/modules/integration/pom.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/integration/pom.xml?view=diff&rev=536683&r1=536682&r2=536683
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/pom.xml (original)
+++ webservices/axis2/trunk/java/modules/integration/pom.xml Wed May  9 15:07:57 2007
@@ -193,6 +193,49 @@
             </exclusions>
         </dependency>
     </dependencies>
+    <profiles>
+        <profile>
+            <id>enterprise</id>
+            <build>
+                <plugins>
+                <plugin>
+                    <groupId>org.apache.maven.plugins</groupId>
+                    <artifactId>maven-antrun-plugin</artifactId>
+                    <dependencies>
+                        <dependency>
+                            <groupId>junit</groupId>
+                            <artifactId>junit</artifactId>
+                            <version>${junit.version}</version>
+                        </dependency>
+                    </dependencies>
+                    <executions>
+                        <execution>
+                            <id>gen-enterprise-ts</id>
+                            <phase>generate-test-sources</phase>
+                            <configuration>
+                                <tasks>
+                                    <!-- Set a property that can be picked up from the ant build.xml's -->
+                                    <property name="maven.class.path" refid="maven.runtime.classpath"/>
+                                    <echo>Building enterprise WSDLs...</echo>
+                                    <property name="axis2.home" value="${basedir}/target"/>
+                                    <property name="maven.junit.jvmargs" value=""/>
+                                    <path id="maven.dependency.classpath">
+                                        <path refid="maven.compile.classpath"/>
+                                    </path>
+                                    <ant antfile="itest-build.xml" inheritall="true" inheritrefs="true"
+                                         dir="." target="enterprise-wsdl-codegen"/>
+                                </tasks>
+                            </configuration>
+                            <goals>
+                                <goal>run</goal>
+                            </goals>
+                        </execution>
+                    </executions>
+                </plugin>
+                </plugins>
+            </build>
+        </profile>
+    </profiles>
     <build>
         <sourceDirectory>src</sourceDirectory>
         <testSourceDirectory>test</testSourceDirectory>
@@ -260,9 +303,9 @@
                                       tofile="target/test-classes/modules/addressing-${version}.mar"/>
 
                                 <property name="axis2.home" value="${basedir}/target"/>
-								<property name="maven.junit.jvmargs" value=""/>
-								<path id="maven.dependency.classpath">
-									<path refid="maven.compile.classpath"/>
+								<property name="maven.junit.jvmargs" value=""/>
+								<path id="maven.dependency.classpath">
+									<path refid="maven.compile.classpath"/>
 								</path>
                                 <!-- compiling some custom wsdl files -->
                                 <property name="wsdl.source.dir" value="test-resources/wsdl"/>
@@ -339,10 +382,8 @@
                                     <arg line="-src target/xmlbeans-src -d target/classes test-resources/xsd/type-test.xsd"/>
                                 </java>
 
-								<ant antfile="itest-build.xml" inheritall="true" inheritrefs="true"
-			    	        	     dir="." target="rpc-wsdl-codegen"/>
-			    	        	<ant antfile="itest-build.xml" inheritall="true" inheritrefs="true"
-							    	 dir="." target="enterprise-wsdl-codegen"/>
+								<ant antfile="itest-build.xml" inheritall="true" inheritrefs="true"
+			    	        	     dir="." target="rpc-wsdl-codegen"/>
 
                                 <ant antfile="build.xml" inheritall="true" inheritrefs="true"
                                      dir="test-resources/SOAP12Testing/SOAP12TestModuleB"/>
@@ -362,9 +403,9 @@
                         <id>build-repo</id>
                         <phase>test-compile</phase>
                         <configuration>
-                            <tasks>
-                            <property name="addressing_version" value="${version}"/>
-								<ant antfile="itest-build.xml" inheritall="true" inheritrefs="true"
+                            <tasks>
+                            <property name="addressing_version" value="${version}"/>
+								<ant antfile="itest-build.xml" inheritall="true" inheritrefs="true"
         	                         dir="." target="build-repos"/>
                             </tasks>
                         </configuration>



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org