Author: veithen
Date: Mon Mar 15 12:37:25 2010
New Revision: 923194
URL: http://svn.apache.org/viewvc?rev=923194&view=rev
Log:
Fixed a build failure with maven.test.skip=true.
Modified:
axis/axis2/java/core/trunk/modules/java2wsdl/pom.xml
axis/axis2/java/core/trunk/modules/tool/axis2-ant-plugin/pom.xml
Modified: axis/axis2/java/core/trunk/modules/java2wsdl/pom.xml
URL:
http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/modules/java2wsdl/pom.xml?rev=923194&r1=923193&r2=923194&view=diff
==============================================================================
--- axis/axis2/java/core/trunk/modules/java2wsdl/pom.xml (original)
+++ axis/axis2/java/core/trunk/modules/java2wsdl/pom.xml Mon Mar 15 12:37:25
2010
@@ -135,7 +135,7 @@
</goals>
<phase>test</phase>
<configuration>
- <tasks>
+ <tasks unless="maven.test.skip">
<echo message="Generating p2n.wsdl"/>
<java
classname="org.apache.ws.java2wsdl.Java2WSDL"
classpathref="maven.test.classpath" fork="true" failonerror="true">
@@ -169,6 +169,11 @@
<source>
import groovy.xml.*
+ if (project.properties['maven.test.skip']) {
+ println 'Tests are skipped'
+ return
+ }
+
def parser = new XmlParser()
def wsdl = new
Namespace('http://schemas.xmlsoap.org/wsdl/')
def xs = new
Namespace('http://www.w3.org/2001/XMLSchema')
Modified: axis/axis2/java/core/trunk/modules/tool/axis2-ant-plugin/pom.xml
URL:
http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/modules/tool/axis2-ant-plugin/pom.xml?rev=923194&r1=923193&r2=923194&view=diff
==============================================================================
--- axis/axis2/java/core/trunk/modules/tool/axis2-ant-plugin/pom.xml (original)
+++ axis/axis2/java/core/trunk/modules/tool/axis2-ant-plugin/pom.xml Mon Mar 15
12:37:25 2010
@@ -119,7 +119,7 @@
</goals>
<phase>test</phase>
<configuration>
- <tasks>
+ <tasks unless="maven.test.skip">
<taskdef name="java2wsdl"
classname="org.apache.axis2.tool.ant.Java2WSDLTask">
<classpath>
<path refid="maven.test.classpath"/>
@@ -174,6 +174,11 @@
<source>
import groovy.xml.*
+ if (project.properties['maven.test.skip']) {
+ println 'Tests are skipped'
+ return
+ }
+
def parser = new XmlParser()
def wsdl = new
Namespace('http://schemas.xmlsoap.org/wsdl/')
def xs = new
Namespace('http://www.w3.org/2001/XMLSchema')