JBossWS SVN: r17598 - in stack/cxf/trunk: modules/dist and 1 other directories.
by jbossws-commits@lists.jboss.org
Author: alessio.soldano(a)jboss.com
Date: 2013-05-19 11:42:47 -0400 (Sun, 19 May 2013)
New Revision: 17598
Modified:
stack/cxf/trunk/modules/dist/pom.xml
stack/cxf/trunk/modules/testsuite/pom.xml
stack/cxf/trunk/pom.xml
Log:
[JBWS-3627] Updating jboss-as-webservices-tests GAV
Modified: stack/cxf/trunk/modules/dist/pom.xml
===================================================================
--- stack/cxf/trunk/modules/dist/pom.xml 2013-05-19 15:17:45 UTC (rev 17597)
+++ stack/cxf/trunk/modules/dist/pom.xml 2013-05-19 15:42:47 UTC (rev 17598)
@@ -246,8 +246,8 @@
<scope>provided</scope>
</dependency>
<dependency>
- <groupId>org.jboss.as</groupId>
- <artifactId>jboss-as-webservices-tests-integration</artifactId>
+ <groupId>org.wildfly</groupId>
+ <artifactId>wildfly-webservices-tests-integration</artifactId>
<scope>provided</scope>
</dependency>
</dependencies>
Modified: stack/cxf/trunk/modules/testsuite/pom.xml
===================================================================
--- stack/cxf/trunk/modules/testsuite/pom.xml 2013-05-19 15:17:45 UTC (rev 17597)
+++ stack/cxf/trunk/modules/testsuite/pom.xml 2013-05-19 15:42:47 UTC (rev 17598)
@@ -803,8 +803,8 @@
</properties>
<dependencies>
<dependency>
- <groupId>org.jboss.as</groupId>
- <artifactId>jboss-as-webservices-tests-integration</artifactId>
+ <groupId>org.wildfly</groupId>
+ <artifactId>wildfly-webservices-tests-integration</artifactId>
<version>${jboss.version}</version>
</dependency>
</dependencies>
Modified: stack/cxf/trunk/pom.xml
===================================================================
--- stack/cxf/trunk/pom.xml 2013-05-19 15:17:45 UTC (rev 17597)
+++ stack/cxf/trunk/pom.xml 2013-05-19 15:42:47 UTC (rev 17598)
@@ -165,8 +165,8 @@
<version>${jbossws.jboss720.version}</version>
</dependency>
<dependency>
- <groupId>org.jboss.as</groupId>
- <artifactId>jboss-as-webservices-tests-integration</artifactId>
+ <groupId>org.wildfly</groupId>
+ <artifactId>wildfly-webservices-tests-integration</artifactId>
<version>${wildfly800.version}</version>
</dependency>
<dependency>
11 years, 7 months
JBossWS SVN: r17597 - stack/cxf/trunk.
by jbossws-commits@lists.jboss.org
Author: alessio.soldano(a)jboss.com
Date: 2013-05-19 11:17:45 -0400 (Sun, 19 May 2013)
New Revision: 17597
Modified:
stack/cxf/trunk/pom.xml
Log:
Moving to WF 8.0.0.Alpha2-SNAPSHOT
Modified: stack/cxf/trunk/pom.xml
===================================================================
--- stack/cxf/trunk/pom.xml 2013-05-19 14:42:36 UTC (rev 17596)
+++ stack/cxf/trunk/pom.xml 2013-05-19 15:17:45 UTC (rev 17597)
@@ -70,7 +70,7 @@
<jboss712.version>7.1.2.Final</jboss712.version>
<jboss713.version>7.1.3.Final</jboss713.version>
<jboss720.version>7.2.0.Final</jboss720.version>
- <wildfly800.version>8.0.0.Alpha1-SNAPSHOT</wildfly800.version>
+ <wildfly800.version>8.0.0.Alpha2-SNAPSHOT</wildfly800.version>
<ejb.api.version>1.0.1.Final</ejb.api.version>
<cxf.version>2.7.5</cxf.version>
<cxf.asm.version>3.3.1</cxf.asm.version>
11 years, 7 months
JBossWS SVN: r17596 - hudson/trunk.
by jbossws-commits@lists.jboss.org
Author: alessio.soldano(a)jboss.com
Date: 2013-05-19 10:42:36 -0400 (Sun, 19 May 2013)
New Revision: 17596
Modified:
hudson/trunk/ant.properties.example
Log:
Moving to WF 8.0.0.Alpha2-SNAPSHOT
Modified: hudson/trunk/ant.properties.example
===================================================================
--- hudson/trunk/ant.properties.example 2013-05-17 10:21:30 UTC (rev 17595)
+++ hudson/trunk/ant.properties.example 2013-05-19 14:42:36 UTC (rev 17596)
@@ -33,7 +33,7 @@
hudson.jboss720.rev=7.2.0.Final-prerelease1
hudson.jboss800.url=https://github.com/wildfly/wildfly
-hudson.jboss800.build=wildfly-8.0.0.Alpha1-SNAPSHOT
+hudson.jboss800.build=wildfly-8.0.0.Alpha2-SNAPSHOT
hudson.jboss800.rev=master
hudson.mail.recipients=
11 years, 7 months
JBossWS SVN: r17595 - stack/cxf/trunk/modules/testsuite/test-utils/src/main/java/org/jboss/wsf/test.
by jbossws-commits@lists.jboss.org
Author: jim.ma
Date: 2013-05-17 06:21:30 -0400 (Fri, 17 May 2013)
New Revision: 17595
Modified:
stack/cxf/trunk/modules/testsuite/test-utils/src/main/java/org/jboss/wsf/test/JBossWSTestHelper.java
Log:
[JBWS-3640]:Failed to get jmx connection in JBWS2150TestCaseForked on Windows
Modified: stack/cxf/trunk/modules/testsuite/test-utils/src/main/java/org/jboss/wsf/test/JBossWSTestHelper.java
===================================================================
--- stack/cxf/trunk/modules/testsuite/test-utils/src/main/java/org/jboss/wsf/test/JBossWSTestHelper.java 2013-05-17 10:17:56 UTC (rev 17594)
+++ stack/cxf/trunk/modules/testsuite/test-utils/src/main/java/org/jboss/wsf/test/JBossWSTestHelper.java 2013-05-17 10:21:30 UTC (rev 17595)
@@ -32,6 +32,7 @@
import java.util.Map;
import javax.management.MBeanServerConnection;
+import javax.management.remote.JMXConnector;
import javax.management.remote.JMXConnectorFactory;
import javax.management.remote.JMXServiceURL;
import javax.xml.namespace.QName;
@@ -260,12 +261,39 @@
{
String host = getServerHost();
String urlString = System.getProperty("jmx.service.url", "service:jmx:remoting-jmx://" + host + ":" + 9999);
- try {
- JMXServiceURL serviceURL = new JMXServiceURL(urlString);
- return JMXConnectorFactory.connect(serviceURL, null).getMBeanServerConnection();
- } catch (IOException ex) {
- throw new IllegalStateException("Cannot obtain MBeanServerConnection to: " + urlString, ex);
+ JMXServiceURL serviceURL = null;
+ JMXConnector connector = null;
+ try
+ {
+ serviceURL = new JMXServiceURL(urlString);
}
+ catch (MalformedURLException e1)
+ {
+ //NO_OP
+ }
+ //add more tries to get the connection. Workaround to fix some test failures caused by connection is not established in 5 seconds
+ for (int i = 0 ; i < 5; i++) {
+ try {
+ connector = JMXConnectorFactory.connect(serviceURL, null);
+ } catch (IOException ex) {
+ throw new IllegalStateException("Cannot obtain MBeanServerConnection to: " + urlString, ex);
+ } catch (RuntimeException e) {
+ if (e.getMessage().contains("WAITING")) {
+ continue;
+ } else {
+ throw e;
+ }
+ }
+ }
+
+ try
+ {
+ return connector.getMBeanServerConnection();
+ }
+ catch (Exception e)
+ {
+ throw new IllegalStateException("Cannot obtain MBeanServerConnection to: " + urlString, e);
+ }
}
public static String getIntegrationTarget()
11 years, 7 months
JBossWS SVN: r17594 - stack/cxf/trunk/modules/testsuite/test-utils/src/main/java/org/jboss/wsf/test.
by jbossws-commits@lists.jboss.org
Author: jim.ma
Date: 2013-05-17 06:17:56 -0400 (Fri, 17 May 2013)
New Revision: 17594
Modified:
stack/cxf/trunk/modules/testsuite/test-utils/src/main/java/org/jboss/wsf/test/JBossWSTest.java
Log:
[JBWS-3639]:Add more timeout value for the thread join to fix the JBWS1666TestCase failure on Windows
Modified: stack/cxf/trunk/modules/testsuite/test-utils/src/main/java/org/jboss/wsf/test/JBossWSTest.java
===================================================================
--- stack/cxf/trunk/modules/testsuite/test-utils/src/main/java/org/jboss/wsf/test/JBossWSTest.java 2013-05-17 10:15:11 UTC (rev 17593)
+++ stack/cxf/trunk/modules/testsuite/test-utils/src/main/java/org/jboss/wsf/test/JBossWSTest.java 2013-05-17 10:17:56 UTC (rev 17594)
@@ -178,9 +178,9 @@
try
{
inputJob.start();
- inputJob.join(5000);
+ inputJob.join(60000);
outputJob.start();
- outputJob.join(5000);
+ outputJob.join(60000);
int statusCode = p.waitFor();
String fallbackMessage = "Process did exit with status " + statusCode;
assertTrue(message != null ? message : fallbackMessage, statusCode == 0);
@@ -452,4 +452,4 @@
}
}
-}
+}
\ No newline at end of file
11 years, 7 months
JBossWS SVN: r17593 - stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/securityDomain.
by jbossws-commits@lists.jboss.org
Author: jim.ma
Date: 2013-05-17 06:15:11 -0400 (Fri, 17 May 2013)
New Revision: 17593
Modified:
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/securityDomain/SecurityDomainTestCase.java
Log:
[JBWS-3638]:Fix SecurityDomainTestCase failure only happens with IBM JDK6
Modified: stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/securityDomain/SecurityDomainTestCase.java
===================================================================
--- stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/securityDomain/SecurityDomainTestCase.java 2013-05-17 08:02:15 UTC (rev 17592)
+++ stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/securityDomain/SecurityDomainTestCase.java 2013-05-17 10:15:11 UTC (rev 17593)
@@ -72,6 +72,54 @@
return Service.create(wsdlURL, serviceName).getPort(SecureEndpoint.class);
}
+
+ public void testUnauthenticated() throws Exception
+ {
+ SecureEndpoint port1 = getAuthzPort();
+
+ try {
+ port1.echoForAll("Hello");
+ fail("Authentication exception expected!");
+ } catch (Exception e) {
+ //expected web layer exception
+ assertTrue(e.getMessage().contains("Could not send Message"));
+ assertTrue("Exception Cause message: " + e.getCause().getMessage(), e.getCause().getMessage().contains("401: Unauthorized"));
+ }
+
+ try {
+ port1.echo("Hello");
+ fail("Authentication exception expected!");
+ } catch (Exception e) {
+ //expected web layer exception
+ assertTrue(e.getMessage().contains("Could not send Message"));
+ assertTrue("Exception Cause message: " + e.getCause().getMessage(), e.getCause().getMessage().contains("401: Unauthorized"));
+ }
+
+ try {
+ port1.restrictedEcho("Hello");
+ fail("Authentication exception expected!");
+ } catch (Exception e) {
+ //expected web layer exception
+ assertTrue(e.getMessage().contains("Could not send Message"));
+ assertTrue("Exception Cause message: " + e.getCause().getMessage(), e.getCause().getMessage().contains("401: Unauthorized"));
+ }
+ }
+
+ public void testUnauthorized() throws Exception
+ {
+ SecureEndpoint port2 = getAuthzPort();
+ ((BindingProvider)port2).getRequestContext().put(BindingProvider.USERNAME_PROPERTY, "john");
+ ((BindingProvider)port2).getRequestContext().put(BindingProvider.PASSWORD_PROPERTY, "bar");
+ try {
+ port2.restrictedEcho("Hello");
+ fail("Authorization exception expected!");
+ } catch (Exception e) {
+ //expected EJB3 layer authorization exception
+ assertTrue("Exception message: " + e.getMessage(), e.getMessage().contains("not allowed"));
+ }
+ }
+
+
public void testAuthorizedAccess() throws Exception
{
SecureEndpoint port = getAuthzPort();
@@ -99,7 +147,7 @@
} catch (Exception e) {
//expected web layer exception
assertTrue(e.getMessage().contains("Could not send Message"));
- assertTrue(e.getCause().getMessage().contains("403: Forbidden"));
+ assertTrue("Exception Cause message: " + e.getCause().getMessage(), e.getCause().getMessage().contains("403: Forbidden"));
}
try {
port.echo("Hello");
@@ -107,7 +155,7 @@
} catch (Exception e) {
//expected web layer exception
assertTrue(e.getMessage().contains("Could not send Message"));
- assertTrue(e.getCause().getMessage().contains("403: Forbidden"));
+ assertTrue("Exception Cause message: " + e.getCause().getMessage(), e.getCause().getMessage().contains("403: Forbidden"));
}
try {
port.restrictedEcho("Hello");
@@ -115,54 +163,8 @@
} catch (Exception e) {
//expected web layer exception
assertTrue(e.getMessage().contains("Could not send Message"));
- assertTrue(e.getCause().getMessage().contains("403: Forbidden"));
+ assertTrue("Exception Cause message: " + e.getCause().getMessage(), e.getCause().getMessage().contains("403: Forbidden"));
}
}
- public void testUnauthenticated() throws Exception
- {
- SecureEndpoint port = getAuthzPort();
-
- try {
- port.echoForAll("Hello");
- fail("Authentication exception expected!");
- } catch (Exception e) {
- //expected web layer exception
- assertTrue(e.getMessage().contains("Could not send Message"));
- assertTrue(e.getCause().getMessage().contains("401: Unauthorized"));
- }
-
- try {
- port.echo("Hello");
- fail("Authentication exception expected!");
- } catch (Exception e) {
- //expected web layer exception
- assertTrue(e.getMessage().contains("Could not send Message"));
- assertTrue(e.getCause().getMessage().contains("401: Unauthorized"));
- }
-
- try {
- port.restrictedEcho("Hello");
- fail("Authentication exception expected!");
- } catch (Exception e) {
- //expected web layer exception
- assertTrue(e.getMessage().contains("Could not send Message"));
- assertTrue(e.getCause().getMessage().contains("401: Unauthorized"));
- }
- }
-
- public void testUnauthorized() throws Exception
- {
- SecureEndpoint port = getAuthzPort();
- ((BindingProvider)port).getRequestContext().put(BindingProvider.USERNAME_PROPERTY, "john");
- ((BindingProvider)port).getRequestContext().put(BindingProvider.PASSWORD_PROPERTY, "bar");
- try {
- port.restrictedEcho("Hello");
- fail("Authorization exception expected!");
- } catch (Exception e) {
- //expected EJB3 layer authorization exception
- assertTrue(e.getMessage().contains("not allowed"));
- }
- }
-
-}
+}
\ No newline at end of file
11 years, 7 months
JBossWS SVN: r17592 - shared-testsuite/branches/jbossws-shared-testsuite-4.1.x/src/main/java/org/jboss/wsf/test.
by jbossws-commits@lists.jboss.org
Author: jim.ma
Date: 2013-05-17 04:02:15 -0400 (Fri, 17 May 2013)
New Revision: 17592
Modified:
shared-testsuite/branches/jbossws-shared-testsuite-4.1.x/src/main/java/org/jboss/wsf/test/JBossWSTestHelper.java
Log:
[BZ-927881]:Workaround to add more tries to get connection
Modified: shared-testsuite/branches/jbossws-shared-testsuite-4.1.x/src/main/java/org/jboss/wsf/test/JBossWSTestHelper.java
===================================================================
--- shared-testsuite/branches/jbossws-shared-testsuite-4.1.x/src/main/java/org/jboss/wsf/test/JBossWSTestHelper.java 2013-05-16 12:29:55 UTC (rev 17591)
+++ shared-testsuite/branches/jbossws-shared-testsuite-4.1.x/src/main/java/org/jboss/wsf/test/JBossWSTestHelper.java 2013-05-17 08:02:15 UTC (rev 17592)
@@ -32,6 +32,7 @@
import java.util.Map;
import javax.management.MBeanServerConnection;
+import javax.management.remote.JMXConnector;
import javax.management.remote.JMXConnectorFactory;
import javax.management.remote.JMXServiceURL;
import javax.xml.namespace.QName;
@@ -244,12 +245,39 @@
{
String host = getServerHost();
String urlString = System.getProperty("jmx.service.url", "service:jmx:remoting-jmx://" + host + ":" + 9999);
- try {
- JMXServiceURL serviceURL = new JMXServiceURL(urlString);
- return JMXConnectorFactory.connect(serviceURL, null).getMBeanServerConnection();
- } catch (IOException ex) {
- throw new IllegalStateException("Cannot obtain MBeanServerConnection to: " + urlString, ex);
+ JMXServiceURL serviceURL = null;
+ JMXConnector connector = null;
+ try
+ {
+ serviceURL = new JMXServiceURL(urlString);
}
+ catch (MalformedURLException e1)
+ {
+ //NO_OP
+ }
+ //add more tries to get the connection. Workaround to fix some test failures caused by connection is not established in 5 seconds
+ for (int i = 0 ; i < 5; i++) {
+ try {
+ connector = JMXConnectorFactory.connect(serviceURL, null);
+ } catch (IOException ex) {
+ throw new IllegalStateException("Cannot obtain MBeanServerConnection to: " + urlString, ex);
+ } catch (RuntimeException e) {
+ if (e.getMessage().contains("WAITING")) {
+ continue;
+ } else {
+ throw e;
+ }
+ }
+ }
+
+ try
+ {
+ return connector.getMBeanServerConnection();
+ }
+ catch (Exception e)
+ {
+ throw new IllegalStateException("Cannot obtain MBeanServerConnection to: " + urlString, e);
+ }
}
public static String getIntegrationTarget()
11 years, 7 months
JBossWS SVN: r17591 - shared-testsuite.
by jbossws-commits@lists.jboss.org
Author: alessio.soldano(a)jboss.com
Date: 2013-05-16 08:29:55 -0400 (Thu, 16 May 2013)
New Revision: 17591
Removed:
shared-testsuite/trunk/
Log:
[JBWS-3636] Removing jbossws-shared-testsuite
11 years, 7 months
JBossWS SVN: r17590 - stack/cxf/trunk/modules/testsuite/shared-tests.
by jbossws-commits@lists.jboss.org
Author: alessio.soldano(a)jboss.com
Date: 2013-05-16 08:22:23 -0400 (Thu, 16 May 2013)
New Revision: 17590
Modified:
stack/cxf/trunk/modules/testsuite/shared-tests/pom.xml
Log:
Make sure shared-tests are not compiled using JBossWS-CXF / Apache CXF classes
Modified: stack/cxf/trunk/modules/testsuite/shared-tests/pom.xml
===================================================================
--- stack/cxf/trunk/modules/testsuite/shared-tests/pom.xml 2013-05-16 11:01:02 UTC (rev 17589)
+++ stack/cxf/trunk/modules/testsuite/shared-tests/pom.xml 2013-05-16 12:22:23 UTC (rev 17590)
@@ -23,6 +23,12 @@
<scope>test</scope>
</dependency>
<dependency>
+ <groupId>org.jboss.ws.cxf</groupId>
+ <artifactId>jbossws-cxf-client</artifactId>
+ <version>${project.version}</version>
+ <scope>runtime</scope> <!-- override scope from parent dependency to make sure tests are not compiled using (JBWS-)CXF classes -->
+ </dependency>
+ <dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
11 years, 7 months
JBossWS SVN: r17589 - in stack/cxf/trunk/modules: dist/src/main/scripts and 2 other directories.
by jbossws-commits@lists.jboss.org
Author: alessio.soldano(a)jboss.com
Date: 2013-05-16 07:01:02 -0400 (Thu, 16 May 2013)
New Revision: 17589
Added:
stack/cxf/trunk/modules/dist/src/main/distro/build-testsuite.xml
Removed:
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/ant-import/build-testsuite.xml
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/scripts/
Modified:
stack/cxf/trunk/modules/dist/src/main/scripts/assembly-bin-dist.xml
Log:
[JBWS-3636] Removing unused script + moving build-testsuite.xml to distro area where it really belongs to
Added: stack/cxf/trunk/modules/dist/src/main/distro/build-testsuite.xml
===================================================================
--- stack/cxf/trunk/modules/dist/src/main/distro/build-testsuite.xml (rev 0)
+++ stack/cxf/trunk/modules/dist/src/main/distro/build-testsuite.xml 2013-05-16 11:01:02 UTC (rev 17589)
@@ -0,0 +1,892 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+ ~ JBoss, Home of Professional Open Source.
+ ~ Copyright 2011, Red Hat, Inc., and individual contributors
+ ~ as indicated by the @author tags. See the copyright.txt file in the
+ ~ distribution for a full listing of individual contributors.
+ ~
+ ~ This is free software; you can redistribute it and/or modify it
+ ~ under the terms of the GNU Lesser General Public License as
+ ~ published by the Free Software Foundation; either version 2.1 of
+ ~ the License, or (at your option) any later version.
+ ~
+ ~ This software is distributed in the hope that it will be useful,
+ ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ ~ Lesser General Public License for more details.
+ ~
+ ~ You should have received a copy of the GNU Lesser General Public
+ ~ License along with this software; if not, write to the Free
+ ~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ ~ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ -->
+
+<project>
+
+ <!-- ================================================================== -->
+ <!-- Initialization -->
+ <!-- ================================================================== -->
+
+ <target name="tests-prepare" depends="prepare">
+
+ <!-- Define jboss.home -->
+ <condition property="jboss.home" value="${jboss712.home}">
+ <equals arg1="${jbossws.integration.target}" arg2="jboss712"/>
+ </condition>
+ <condition property="jboss.home" value="${jboss713.home}">
+ <equals arg1="${jbossws.integration.target}" arg2="jboss713"/>
+ </condition>
+ <condition property="jboss.home" value="${jboss720.home}">
+ <equals arg1="${jbossws.integration.target}" arg2="jboss720"/>
+ </condition>
+ <condition property="jboss.home" value="${wildfly800.home}">
+ <equals arg1="${jbossws.integration.target}" arg2="wildfly800"/>
+ </condition>
+
+ <!-- Verify required properties that must be set before this file is imported -->
+ <fail message="Tests output dir not set." unless="tests.output.dir"/>
+
+ <!-- appclient patch -->
+ <copy
+ file="${basedir}/tests/etc/appclient/${jbossws.integration.target}/appclient-ws.xml"
+ tofile="${jboss.home}/appclient/configuration/appclient-ws.xml"
+ failonerror="false"
+ overwrite="true"
+ verbose="true"
+ />
+
+ <!-- Verify availabililty of tools.jar -->
+ <condition property="tools.jar" value="${java.home}/lib/tools.jar">
+ <available file="${java.home}/lib/tools.jar"/>
+ </condition>
+ <condition property="tools.jar" value="${java.home}/../lib/tools.jar">
+ <available file="${java.home}/../lib/tools.jar"/>
+ </condition>
+ <!-- [JBWS-2113] tools.jar not available on Mac OS X -->
+ <condition property="tools.jar" value="${java.home}/../Classes/classes.jar">
+ <available file="${java.home}/../Classes/classes.jar"/>
+ </condition>
+ <fail message="Not available: ${java.home}/lib/tools.jar, ${java.home}/../lib/tools.jar" unless="tools.jar"/>
+
+ <!-- Use -Ddebug=true for remote debugging -->
+ <condition property="remote.debug.line" value="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005">
+ <isset property="debug"/>
+ </condition>
+ <condition property="remote.debug.line" value="">
+ <not>
+ <isset property="debug"/>
+ </not>
+ </condition>
+
+ <!-- Set a hostname property based on COMPUTERNAME for win32, HOSTNAME
+ otherwise and initialize the node0/node1 cluster hostnames to localhost
+ and ${hostname} by default. If you cannot route multicast traffic between
+ localhost and hostname, then you need to specify node0 and node1 binding
+ in the local.properties that can in order to be able to run the clustering
+ tests.
+ -->
+ <property environment="env"/>
+ <condition property="hostname" value="${env.COMPUTERNAME}">
+ <os family="windows"/>
+ </condition>
+ <condition property="hostname" value="${env.HOSTNAME}">
+ <not>
+ <os family="windows"/>
+ </not>
+ </condition>
+
+ <!-- node0 defaults -->
+ <property name="node0" value="${jboss.bind.address}"/>
+ <property name="node0.http.url" value="http://${node0}:8080"/>
+ <property name="node0.jndi.url" value="jnp://${node0}:1099"/>
+ <property name="node0.hajndi.url" value="jnp://${node0}:1100"/>
+
+ <mkdir dir="${tests.output.dir}"/>
+ <delete file="${tests.output.dir}/test.log" failonerror="false"/>
+
+ <property name="jboss.lib" value="${jboss.home}/lib"/>
+
+ <echo/>
+ <echo message="-----------------------------------------------"/>
+ <echo message="jboss.home = ${jboss.home}"/>
+ <echo message="excludesfile = ${excludesfile}"/>
+ <echo message="java.home = ${java.home}"/>
+ <echo message="jboss.bind = ${jboss.bind.address}"/>
+ <echo message="-----------------------------------------------"/>
+
+ <tstamp>
+ <format property="build.id" pattern="yyyyMMddHHmm"/>
+ </tstamp>
+ </target>
+
+ <target name="tests-classpath" depends="tests-classpath-jboss71x,tests-classpath-jboss72x,tests-classpath-wildfly80x">
+ <path id="tests.javac.classpath">
+ <path refid="ws.stack.classpath"/>
+ <path refid="integration.target.javac.classpath"/>
+ </path>
+ <path id="tests.client.classpath">
+ <path refid="ws.stack.classpath"/>
+ <path refid="integration.target.client.classpath"/>
+ </path>
+ </target>
+
+ <target name="tests-classpath-jboss71x" depends="tests-prepare" if="jbossws.integration.jboss71x">
+
+ <!-- Java Endorsed -->
+ <condition property="endorsed.dirs" value="${jboss.home}/modules/javax/xml/ws/api/main/">
+ <isset property="jboss.home"/>
+ </condition>
+
+ <path id="integration.target.javac.classpath">
+ <fileset dir="${jboss.home}/modules/javax/activation/api/main/">
+ <include name="activation-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/javax/mail/api/main/">
+ <include name="mail-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/org/jboss/common-core/main/">
+ <include name="jboss-common-core-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/org/jboss/logging/main/">
+ <include name="jboss-logging-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/org/picketlink/main/">
+ <include name="picketlink-core*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/javax/ejb/api/main/">
+ <include name="jboss-ejb-api_3.1_spec-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/org/jboss/ejb3/main/">
+ <include name="jboss-ejb3-ext-api-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/javax/servlet/api/main/">
+ <include name="jboss-servlet-api_3.0_spec-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/javax/annotation/api/main/">
+ <include name="jboss-annotations-api_1.1_spec-*.jar"/>
+ </fileset>
+ </path>
+
+ <!--
+ The 's.client.classpath' contains jars that are available in the target container's client directory.
+ There jars apply to all supported stacks. It MUST NOT contains jars from a local thirdparty dir.
+
+ The 'ws.stack.classpath' contains jars that come with a specific stack distribution.
+ The 's.extra.classpath' contains stack specific jars that are needed to run the stack specific tests.
+ -->
+ <path id="integration.target.client.classpath">
+ <!-- included from thirdparty local dir as it's not installed on AS - START -->
+ <pathelement location="${thirdparty.dir}/jbossws-${jbossws.integration.target}-tests-integration.jar"/>
+ <!-- included from thirdparty local dir as it's not installed on AS - END -->
+ <pathelement location="${jboss.home}/jboss-modules.jar"/>
+ <fileset dir="${jboss.home}/modules/org/jboss/logging/main/">
+ <include name="jboss-logging-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/org/jboss/as/controller/main/">
+ <include name="jboss-as-controller-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/org/jboss/as/controller-client/main/">
+ <include name="jboss-as-controller-client-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/org/jboss/as/server/main/">
+ <include name="jboss-as-server-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/org/jboss/as/protocol/main/">
+ <include name="jboss-as-protocol-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/org/jboss/dmr/main/">
+ <include name="jboss-dmr-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/org/jboss/marshalling/main/">
+ <include name="jboss-marshalling-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/org/slf4j/main/">
+ <include name="slf4j-api-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/org/slf4j/jcl-over-slf4j/main/">
+ <include name="jcl-over-slf4j-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/org/slf4j/impl/main/">
+ <include name="slf4j-jboss-logmanager-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/org/jboss/logmanager/main/">
+ <include name="jboss-logmanager-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/org/apache/log4j/main/">
+ <include name="log4j-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/javax/mail/api/main/">
+ <include name="mail-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/javax/servlet/api/main/">
+ <include name="jboss-servlet-api_3.0_spec-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/javax/transaction/api/main/">
+ <include name="jboss-transaction-api_1.1_spec-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/org/jboss/threads/main/">
+ <include name="jboss-threads-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/org/picketbox/main/">
+ <include name="picketbox-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/org/picketlink/main/">
+ <include name="picketlink-core*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/javax/ejb/api/main/">
+ <include name="jboss-ejb-api_3.1_spec-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/org/jboss/ejb-client/main/">
+ <include name="jboss-ejb-client-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/org/apache/xerces/main/">
+ <include name="xercesImpl-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/org/jboss/common-core/main/">
+ <include name="jboss-common-core-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/org/javassist/main/">
+ <include name="javassist-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/javax/security/jacc/api/main/">
+ <include name="jboss-jacc-api*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/org/jboss/remoting3/main/">
+ <include name="jboss-remoting-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/org/jboss/marshalling/river/main/">
+ <include name="jboss-marshalling-river-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/org/jboss/remoting3/remoting-jmx/main/">
+ <include name="remoting-jmx-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/org/jboss/sasl/main/">
+ <include name="jboss-sasl-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/org/jboss/netty/main/">
+ <include name="netty-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/org/jboss/xb/main/">
+ <include name="jbossxb-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/org/joda/time/main/">
+ <include name="joda-time-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/org/apache/xalan/main/">
+ <include name="serializer-*.jar"/>
+ <include name="xalan-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/org/codehaus/woodstox/main/">
+ <include name="woodstox-core-asl-*.jar"/>
+ <include name="stax2-api-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/org/jboss/xnio/main/">
+ <include name="xnio-api-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/org/jboss/xnio/nio/main/">
+ <include name="xnio-nio-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/org/jboss/remote-naming/main/">
+ <include name="jboss-remote-naming-*.jar"/>
+ </fileset>
+ <pathelement location="${tools.jar}"/>
+ </path>
+ </target>
+
+ <target name="tests-classpath-jboss72x" depends="tests-prepare" if="jbossws.integration.jboss72x">
+
+ <!-- Java Endorsed -->
+ <condition property="endorsed.dirs" value="${jboss.home}/modules/system/layers/base/javax/xml/ws/api/main/">
+ <isset property="jboss.home"/>
+ </condition>
+
+ <path id="integration.target.javac.classpath">
+ <fileset dir="${jboss.home}/modules/system/layers/base/javax/activation/api/main/">
+ <include name="activation-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/system/layers/base/javax/mail/api/main/">
+ <include name="mail-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/system/layers/base/org/jboss/common-core/main/">
+ <include name="jboss-common-core-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/system/layers/base/org/jboss/logging/main/">
+ <include name="jboss-logging-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/system/layers/base/org/picketlink/main/">
+ <include name="picketlink-core*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/system/layers/base/javax/ejb/api/main/">
+ <include name="jboss-ejb-api_3.1_spec-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/system/layers/base/org/jboss/ejb3/main/">
+ <include name="jboss-ejb3-ext-api-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/system/layers/base/javax/servlet/api/main/">
+ <include name="jboss-servlet-api_3.0_spec-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/system/layers/base/javax/annotation/api/main/">
+ <include name="jboss-annotations-api_1.1_spec-*.jar"/>
+ </fileset>
+ </path>
+
+ <!--
+ The 's.client.classpath' contains jars that are available in the target container's client directory.
+ There jars apply to all supported stacks. It MUST NOT contains jars from a local thirdparty dir.
+
+ The 'ws.stack.classpath' contains jars that come with a specific stack distribution.
+ The 's.extra.classpath' contains stack specific jars that are needed to run the stack specific tests.
+ -->
+ <path id="integration.target.client.classpath">
+ <!-- included from thirdparty local dir as it's not installed on AS - START -->
+ <pathelement location="${thirdparty.dir}/jbossws-${jbossws.integration.target}-tests-integration.jar"/>
+ <!-- included from thirdparty local dir as it's not installed on AS - END -->
+ <pathelement location="${jboss.home}/jboss-modules.jar"/>
+ <fileset dir="${jboss.home}/modules/system/layers/base/org/jboss/logging/main/">
+ <include name="jboss-logging-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/system/layers/base/org/jboss/as/controller/main/">
+ <include name="jboss-as-controller-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/system/layers/base/org/jboss/as/controller-client/main/">
+ <include name="jboss-as-controller-client-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/system/layers/base/org/jboss/as/server/main/">
+ <include name="jboss-as-server-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/system/layers/base/org/jboss/as/protocol/main/">
+ <include name="jboss-as-protocol-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/system/layers/base/org/jboss/dmr/main/">
+ <include name="jboss-dmr-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/system/layers/base/org/jboss/marshalling/main/">
+ <include name="jboss-marshalling-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/system/layers/base/org/slf4j/main/">
+ <include name="slf4j-api-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/system/layers/base/org/slf4j/jcl-over-slf4j/main/">
+ <include name="jcl-over-slf4j-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/system/layers/base/org/slf4j/impl/main/">
+ <include name="slf4j-jboss-logmanager-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/system/layers/base/org/jboss/logmanager/main/">
+ <include name="jboss-logmanager-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/system/layers/base/org/apache/log4j/main/">
+ <include name="log4j-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/system/layers/base/javax/mail/api/main/">
+ <include name="mail-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/system/layers/base/javax/servlet/api/main/">
+ <include name="jboss-servlet-api_3.0_spec-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/system/layers/base/javax/transaction/api/main/">
+ <include name="jboss-transaction-api_1.1_spec-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/system/layers/base/org/jboss/threads/main/">
+ <include name="jboss-threads-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/system/layers/base/org/picketbox/main/">
+ <include name="picketbox-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/system/layers/base/org/picketlink/main/">
+ <include name="picketlink-core*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/system/layers/base/javax/ejb/api/main/">
+ <include name="jboss-ejb-api_3.1_spec-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/system/layers/base/org/jboss/ejb-client/main/">
+ <include name="jboss-ejb-client-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/system/layers/base/org/apache/xerces/main/">
+ <include name="xercesImpl-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/system/layers/base/org/jboss/common-core/main/">
+ <include name="jboss-common-core-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/system/layers/base/org/javassist/main/">
+ <include name="javassist-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/system/layers/base/javax/security/jacc/api/main/">
+ <include name="jboss-jacc-api*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/system/layers/base/org/jboss/remoting3/main/">
+ <include name="jboss-remoting-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/system/layers/base/org/jboss/marshalling/river/main/">
+ <include name="jboss-marshalling-river-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/system/layers/base/org/jboss/remoting-jmx/main/">
+ <include name="remoting-jmx-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/system/layers/base/org/jboss/sasl/main/">
+ <include name="jboss-sasl-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/system/layers/base/org/jboss/netty/main/">
+ <include name="netty-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/system/layers/base/org/jboss/xb/main/">
+ <include name="jbossxb-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/system/layers/base/org/joda/time/main/">
+ <include name="joda-time-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/system/layers/base/org/apache/xalan/main/">
+ <include name="serializer-*.jar"/>
+ <include name="xalan-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/system/layers/base/org/codehaus/woodstox/main/">
+ <include name="woodstox-core-asl-*.jar"/>
+ <include name="stax2-api-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/system/layers/base/org/jboss/xnio/main/">
+ <include name="xnio-api-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/system/layers/base/org/jboss/xnio/nio/main/">
+ <include name="xnio-nio-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/system/layers/base/org/jboss/remote-naming/main/">
+ <include name="jboss-remote-naming-*.jar"/>
+ </fileset>
+ <pathelement location="${tools.jar}"/>
+ </path>
+ </target>
+
+ <target name="tests-classpath-wildfly80x" depends="tests-prepare" if="jbossws.integration.wildfly80x">
+
+ <!-- Java Endorsed -->
+ <condition property="endorsed.dirs" value="${jboss.home}/modules/system/layers/base/javax/xml/ws/api/main/">
+ <isset property="jboss.home"/>
+ </condition>
+
+ <path id="integration.target.javac.classpath">
+ <fileset dir="${jboss.home}/modules/system/layers/base/javax/activation/api/main/">
+ <include name="activation-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/system/layers/base/javax/mail/api/main/">
+ <include name="mail-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/system/layers/base/org/jboss/common-core/main/">
+ <include name="jboss-common-core-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/system/layers/base/org/jboss/logging/main/">
+ <include name="jboss-logging-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/system/layers/base/org/picketlink/main/">
+ <include name="picketlink-core*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/system/layers/base/javax/ejb/api/main/">
+ <include name="jboss-ejb-api_3.2_spec-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/system/layers/base/org/jboss/ejb3/main/">
+ <include name="jboss-ejb3-ext-api-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/system/layers/base/javax/servlet/api/main/">
+ <include name="jboss-servlet-api_3.1_spec-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/system/layers/base/javax/annotation/api/main/">
+ <include name="jboss-annotations-api_1.2_spec-*.jar"/>
+ </fileset>
+ </path>
+
+ <!--
+ The 's.client.classpath' contains jars that are available in the target container's client directory.
+ There jars apply to all supported stacks. It MUST NOT contains jars from a local thirdparty dir.
+
+ The 'ws.stack.classpath' contains jars that come with a specific stack distribution.
+ The 's.extra.classpath' contains stack specific jars that are needed to run the stack specific tests.
+ -->
+ <path id="integration.target.client.classpath">
+ <!-- included from thirdparty local dir as it's not installed on AS - START -->
+ <pathelement location="${thirdparty.dir}/jbossws-${jbossws.integration.target}-tests-integration.jar"/>
+ <!-- included from thirdparty local dir as it's not installed on AS - END -->
+ <pathelement location="${jboss.home}/jboss-modules.jar"/>
+ <fileset dir="${jboss.home}/modules/system/layers/base/org/jboss/logging/main/">
+ <include name="jboss-logging-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/system/layers/base/org/jboss/as/controller/main/">
+ <include name="wildfly-controller-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/system/layers/base/org/jboss/as/controller-client/main/">
+ <include name="wildfly-controller-client-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/system/layers/base/org/wildfly/security/manager/main/">
+ <include name="wildfly-security-manager-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/system/layers/base/org/jboss/as/server/main/">
+ <include name="wildfly-server-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/system/layers/base/org/jboss/as/protocol/main/">
+ <include name="wildfly-protocol-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/system/layers/base/org/jboss/dmr/main/">
+ <include name="jboss-dmr-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/system/layers/base/org/jboss/marshalling/main/">
+ <include name="jboss-marshalling-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/system/layers/base/org/slf4j/main/">
+ <include name="slf4j-api-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/system/layers/base/org/slf4j/jcl-over-slf4j/main/">
+ <include name="jcl-over-slf4j-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/system/layers/base/org/slf4j/impl/main/">
+ <include name="slf4j-jboss-logmanager-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/system/layers/base/org/jboss/logmanager/main/">
+ <include name="jboss-logmanager-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/system/layers/base/org/apache/log4j/main/">
+ <include name="log4j-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/system/layers/base/javax/mail/api/main/">
+ <include name="mail-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/system/layers/base/javax/servlet/api/main/">
+ <include name="jboss-servlet-api_3.1_spec-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/system/layers/base/javax/transaction/api/main/">
+ <include name="jboss-transaction-api_1.1_spec-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/system/layers/base/org/jboss/threads/main/">
+ <include name="jboss-threads-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/system/layers/base/org/picketbox/main/">
+ <include name="picketbox-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/system/layers/base/org/picketlink/main/">
+ <include name="picketlink-core*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/system/layers/base/javax/ejb/api/main/">
+ <include name="jboss-ejb-api_3.2_spec-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/system/layers/base/org/jboss/ejb-client/main/">
+ <include name="jboss-ejb-client-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/system/layers/base/org/apache/xerces/main/">
+ <include name="xercesImpl-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/system/layers/base/org/jboss/common-core/main/">
+ <include name="jboss-common-core-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/system/layers/base/org/javassist/main/">
+ <include name="javassist-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/system/layers/base/javax/security/jacc/api/main/">
+ <include name="jboss-jacc-api*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/system/layers/base/org/jboss/remoting3/main/">
+ <include name="jboss-remoting-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/system/layers/base/org/jboss/marshalling/river/main/">
+ <include name="jboss-marshalling-river-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/system/layers/base/org/jboss/remoting-jmx/main/">
+ <include name="remoting-jmx-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/system/layers/base/org/jboss/sasl/main/">
+ <include name="jboss-sasl-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/system/layers/base/org/jboss/netty/main/">
+ <include name="netty-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/system/layers/base/org/jboss/xb/main/">
+ <include name="jbossxb-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/system/layers/base/org/joda/time/main/">
+ <include name="joda-time-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/system/layers/base/org/apache/xalan/main/">
+ <include name="serializer-*.jar"/>
+ <include name="xalan-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/system/layers/base/org/codehaus/woodstox/main/">
+ <include name="woodstox-core-asl-*.jar"/>
+ <include name="stax2-api-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/system/layers/base/org/jboss/xnio/main/">
+ <include name="xnio-api-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/system/layers/base/org/jboss/xnio/nio/main/">
+ <include name="xnio-nio-*.jar"/>
+ </fileset>
+ <fileset dir="${jboss.home}/modules/system/layers/base/org/jboss/remote-naming/main/">
+ <include name="jboss-remote-naming-*.jar"/>
+ </fileset>
+ <pathelement location="${tools.jar}"/>
+ </path>
+ </target>
+
+ <!-- ================================================================== -->
+ <!-- Compiling -->
+ <!-- ================================================================== -->
+
+ <macrodef name="macro-compile-classes">
+ <attribute name="excludesfile"/>
+ <attribute name="srcdir"/>
+ <sequential>
+ <mkdir dir="${tests.output.dir}/test-classes"/>
+ <javac destdir="${tests.output.dir}/test-classes" debug="${javac.debug}" encoding="utf-8" verbose="${javac.verbose}" deprecation="${javac.deprecation}"
+ failonerror="${javac.fail.onerror}" excludesfile="${excludesfile}">
+ <src path="@{srcdir}"/>
+ <classpath refid="tests.javac.classpath"/>
+ </javac>
+ </sequential>
+ </macrodef>
+
+ <!-- ================================================================== -->
+ <!-- Building -->
+ <!-- ================================================================== -->
+
+ <macrodef name="macro-copy-resources">
+ <attribute name="srcdir"/>
+ <sequential>
+
+ <!-- copy etc -->
+ <copy todir="${tests.output.dir}/test-classes">
+ <fileset dir="@{srcdir}/etc">
+ <include name="*.properties"/>
+ <include name="tst.policy"/>
+ <include name="log4j.xml"/>
+ </fileset>
+ <filterset>
+ <filter token="jboss.bind.address" value="${node0}"/>
+ </filterset>
+ </copy>
+ <copy todir="${tests.output.dir}/test-classes">
+ <fileset dir="@{srcdir}/etc">
+ <include name="*.keystore"/>
+ <include name="*.truststore"/>
+ </fileset>
+ </copy>
+
+ <!-- copy handler definitions -->
+ <copy todir="${tests.output.dir}/test-classes">
+ <fileset dir="@{srcdir}/java">
+ <include name="**/*.xml"/>
+ </fileset>
+ </copy>
+
+ <!-- copy non binary files -->
+ <copy todir="${tests.output.dir}/test-resources">
+ <fileset dir="@{srcdir}/resources">
+ <include name="**/*.wsdl"/>
+ <include name="**/*.xml"/>
+ <exclude name="jaxrpc/samples-override/**"/>
+ </fileset>
+ <filterset>
+ <filter token="java.home" value="${java.home}"/>
+ <filter token="jboss.bind.address" value="${node0}"/>
+ <filter token="tests.output.dir" value="${tests.output.dir}"/>
+ <filter token="wsdl-publish-location" value="${tests.output.dir}/wsdl-publish"/>
+ </filterset>
+ </copy>
+
+ <!-- Copy binary files -->
+ <copy todir="${tests.output.dir}/test-resources">
+ <fileset dir="@{srcdir}/resources">
+ <exclude name="**/*.wsdl"/>
+ <exclude name="**/*.xml"/>
+ </fileset>
+ </copy>
+ </sequential>
+ </macrodef>
+
+ <!-- ================================================================== -->
+ <!-- Testing -->
+ <!-- ================================================================== -->
+
+ <!-- Run all unit tests and generate a report -->
+ <target name="tests" depends="tests-jars" description="Run all unit tests and generate a report">
+ <antcall target="tests-run-internal">
+ <param name="include.wildcard" value="org/jboss/test/ws/**/*TestCase.class org/jboss/test/ws/**/*TestCaseForked.class"/>
+ <param name="exclude.wildcard" value="no-wildcard-exclude-see-excludesfile"/>
+ <param name="haltonfailure" value="false"/>
+ </antcall>
+ <antcall target="tests-report"/>
+ </target>
+
+ <!-- Run smoke test cases -->
+ <target name="tests-smoke" depends="tests-init" description="Run smoke unit tests">
+ <antcall target="tests-run-internal">
+ <param name="include.wildcard" value="org/jboss/test/ws/jaxws/samples/**/*TestCase.class org/jboss/test/ws/*/smoke/**/*TestCase.class org/jboss/test/ws/*/smoke/**/*TestCaseForked.class"/>
+ <!--
+ According to our commit policy, haltonfailure MUST be be true for tests-smoke
+ It is a prerequisite for any commit that this target passes without failure.
+ -->
+ <param name="haltonfailure" value="true"/>
+ </antcall>
+ <antcall target="tests-report"/>
+ </target>
+
+ <!-- Run samples test cases -->
+ <target name="tests-samples" depends="tests-init" description="Run samples unit tests">
+ <antcall target="tests-run-internal">
+ <param name="include.wildcard" value="org/jboss/test/ws/*/samples/**/*TestCase.class"/>
+ <param name="haltonfailure" value="false"/>
+ </antcall>
+ </target>
+
+ <!-- Run integration test cases -->
+ <target name="tests-integration" depends="tests-jars" description="Run integration unit tests">
+ <antcall target="tests-run-internal">
+ <param name="include.wildcard" value="org/jboss/test/ws/jaxws/samples/**/*TestCase.class org/jboss/test/ws/*/smoke/**/*TestCase.class"/>
+ <param name="haltonfailure" value="false"/>
+ </antcall>
+ <antcall target="tests-report"/>
+ </target>
+
+ <!--
+ Run a collection of unit tests.
+ ant -Dtest=jaxws/samples/provider test
+ -->
+ <target name="test" depends="tests-init" if="test" description="Run all unit tests in a given directory">
+ <antcall target="tests-run-internal">
+ <param name="include.wildcard" value="org/jboss/test/ws/${test}/**/*TestCase.class"/>
+ <param name="exclude.wildcard" value="no-wildcard-exclude-see-excludesfile"/>
+ <param name="haltonfailure" value="false"/>
+ </antcall>
+ </target>
+
+ <!-- Common test target -->
+ <target name="tests-run-internal" depends="tests-init">
+ <mkdir dir="${tests.output.dir}/test-reports"/>
+ <junit printsummary="yes" showoutput="yes" dir="${tests.output.dir}" haltonfailure="${haltonfailure}">
+ <jvmarg value="-Djava.security.manager"/>
+ <jvmarg value="-ea"/>
+ <!--jvmarg value="-Dcom.sun.xml.ws.transport.http.HttpAdapter.dump=true"/>
+ <jvmarg value="-Dcom.sun.xml.ws.transport.http.client.HttpTransportPipe.dump=true"/-->
+
+ <sysproperty key="jdk.home" value="${env.JAVA_HOME}"/>
+ <sysproperty key="log4j.output.dir" value="${tests.output.dir}"/>
+ <sysproperty key="appclient.output.dir" value="${tests.output.dir}/appclient-logs"/>
+ <sysproperty key="client.scenario" value="${client.scenario}"/>
+ <sysproperty key="interop" value="${interop}"/>
+ <sysproperty key="java.endorsed.dirs" value="${endorsed.dirs}"/>
+ <sysproperty key="java.naming.provider.url" value="${node0.jndi.url}"/>
+ <sysproperty key="java.protocol.handler.pkgs" value="org.jboss.net.protocol|org.jboss.vfs.protocol|org.jboss.virtual.protocol"/>
+ <sysproperty key="javax.net.ssl.trustStore" value="${tests.output.dir}/test-classes/test.truststore"/>
+ <sysproperty key="javax.net.ssl.trustStorePassword" value="changeit"/>
+ <sysproperty key="javax.net.ssl.trustStoreType" value="jks"/>
+ <sysproperty key="javax.net.ssl.keyStore" value="${tests.output.dir}/test-classes/client.keystore"/>
+ <sysproperty key="javax.net.ssl.keyStorePassword" value="changeit"/>
+ <sysproperty key="javax.net.ssl.keyStoreType" value="jks"/>
+ <sysproperty key="org.jboss.security.ignoreHttpsHost" value="true"/>
+ <sysproperty key="java.security.policy" value="${tests.output.dir}/test-classes/tst.policy"/>
+ <sysproperty key="jboss.home" value="${jboss.home}"/>
+ <sysproperty key="jboss.bind.address" value="${node0}"/>
+ <sysproperty key="jbossws.integration.target" value="${jbossws.integration.target}"/>
+ <sysproperty key="jbossws.deployer.authentication.username" value="${jbossws.deployer.authentication.username}"/>
+ <sysproperty key="jbossws.deployer.authentication.password" value="${jbossws.deployer.authentication.password}"/>
+ <sysproperty key="jmx.authentication.username" value="${jmx.authentication.username}"/>
+ <sysproperty key="jmx.authentication.password" value="${jmx.authentication.password}"/>
+ <sysproperty key="org.jboss.ws.testsuite.securityDomain.users.propfile" value="${tests.output.dir}/test-classes/jbossws-users.properties"/>
+ <sysproperty key="org.jboss.ws.testsuite.securityDomain.roles.propfile" value="${tests.output.dir}/test-classes/jbossws-roles.properties"/>
+ <sysproperty key="org.jboss.ws.testsuite.server.keystore" value="${tests.output.dir}/test-classes/test.keystore"/>
+ <sysproperty key="org.jboss.ws.testsuite.server.truststore" value="${tests.output.dir}/test-classes/test.truststore"/>
+ <sysproperty key="test.archive.directory" value="${tests.output.dir}/test-libs"/>
+ <sysproperty key="test.classes.directory" value="${tests.output.dir}/test-classes"/>
+ <sysproperty key="test.resources.directory" value="${tests.output.dir}/test-resources"/>
+ <sysproperty key="test.username" value="${test.username}"/>
+ <sysproperty key="test.password" value="${test.password}"/>
+ <classpath>
+ <path refid="tests.client.classpath"/>
+ <pathelement location="${tests.output.dir}/test-classes"/>
+ </classpath>
+ <formatter type="plain" usefile="true"/>
+ <formatter type="xml" usefile="true"/>
+ <batchtest todir="${tests.output.dir}/test-reports" fork="true">
+ <fileset dir="${tests.output.dir}/test-classes" includes="${include.wildcard}" excludes="${exclude.wildcard}"/>
+ </batchtest>
+ </junit>
+ </target>
+
+ <!--
+ Run a single unit test.
+ ant -Dtest=org.jboss.test.ws.jaxws.samples.provider.ProviderPayloadTestCase one-test
+ -->
+ <target name="one-test" depends="tests-init" if="test" description="Run a single unit test">
+ <mkdir dir="${tests.output.dir}/test-reports"/>
+
+ <junit printsummary="yes" showoutput="yes" dir="${tests.output.dir}">
+ <jvmarg line="${remote.debug.line}"/>
+ <jvmarg value="-Djava.security.manager"/>
+ <jvmarg value="-ea"/>
+ <!--jvmarg value="-Dcom.sun.xml.ws.transport.http.HttpAdapter.dump=true"/>
+ <jvmarg value="-Dcom.sun.xml.ws.transport.http.client.HttpTransportPipe.dump=true"/-->
+
+ <sysproperty key="jdk.home" value="${env.JAVA_HOME}"/>
+ <sysproperty key="log4j.output.dir" value="${tests.output.dir}"/>
+ <sysproperty key="appclient.output.dir" value="${tests.output.dir}/appclient-logs"/>
+ <sysproperty key="client.scenario" value="${client.scenario}"/>
+ <sysproperty key="interop" value="${interop}"/>
+ <sysproperty key="java.endorsed.dirs" value="${endorsed.dirs}"/>
+ <sysproperty key="java.naming.provider.url" value="${node0.jndi.url}"/>
+ <sysproperty key="java.protocol.handler.pkgs" value="org.jboss.net.protocol|org.jboss.vfs.protocol|org.jboss.virtual.protocol"/>
+ <sysproperty key="javax.net.ssl.trustStore" value="${tests.output.dir}/test-classes/test.truststore"/>
+ <sysproperty key="javax.net.ssl.trustStorePassword" value="changeit"/>
+ <sysproperty key="javax.net.ssl.trustStoreType" value="jks"/>
+ <sysproperty key="javax.net.ssl.keyStore" value="${tests.output.dir}/test-classes/client.keystore"/>
+ <sysproperty key="javax.net.ssl.keyStorePassword" value="changeit"/>
+ <sysproperty key="javax.net.ssl.keyStoreType" value="jks"/>
+ <sysproperty key="org.jboss.security.ignoreHttpsHost" value="true"/>
+ <sysproperty key="java.security.policy" value="${tests.output.dir}/test-classes/tst.policy"/>
+ <sysproperty key="jboss.home" value="${jboss.home}"/>
+ <sysproperty key="jboss.bind.address" value="${node0}"/>
+ <sysproperty key="jbossws.integration.target" value="${jbossws.integration.target}"/>
+ <sysproperty key="jbossws.deployer.authentication.username" value="${jbossws.deployer.authentication.username}"/>
+ <sysproperty key="jbossws.deployer.authentication.password" value="${jbossws.deployer.authentication.password}"/>
+ <sysproperty key="jmx.authentication.username" value="${jmx.authentication.username}"/>
+ <sysproperty key="jmx.authentication.password" value="${jmx.authentication.password}"/>
+ <sysproperty key="org.jboss.ws.testsuite.securityDomain.users.propfile" value="${tests.output.dir}/test-classes/jbossws-users.properties"/>
+ <sysproperty key="org.jboss.ws.testsuite.securityDomain.roles.propfile" value="${tests.output.dir}/test-classes/jbossws-roles.properties"/>
+ <sysproperty key="org.jboss.ws.testsuite.server.keystore" value="${tests.output.dir}/test-classes/test.keystore"/>
+ <sysproperty key="org.jboss.ws.testsuite.server.truststore" value="${tests.output.dir}/test-classes/test.truststore"/>
+ <sysproperty key="test.archive.directory" value="${tests.output.dir}/test-libs"/>
+ <sysproperty key="test.classes.directory" value="${tests.output.dir}/test-classes"/>
+ <sysproperty key="test.resources.directory" value="${tests.output.dir}/test-resources"/>
+ <sysproperty key="test.username" value="${test.username}"/>
+ <sysproperty key="test.password" value="${test.password}"/>
+ <classpath>
+ <path refid="tests.client.classpath"/>
+ <pathelement location="${tests.output.dir}/test-classes"/>
+ </classpath>
+ <formatter type="plain" usefile="true"/>
+ <formatter type="xml" usefile="true"/>
+ <test todir="${tests.output.dir}/test-reports" name="${test}" fork="true"/>
+ </junit>
+ </target>
+
+ <!-- ================================================================== -->
+ <!-- Reporting -->
+ <!-- ================================================================== -->
+
+ <!-- Build the tests report -->
+ <target name="tests-report" depends="tests-init" description="Build the tests report">
+ <mkdir dir="${tests.output.dir}/test-reports"/>
+ <junitreport todir="${tests.output.dir}/test-reports">
+ <fileset dir="${tests.output.dir}/test-reports">
+ <include name="TEST-*.xml"/>
+ </fileset>
+ <report format="frames" todir="${tests.output.dir}/test-reports/html"/>
+ </junitreport>
+ <zip destfile="${tests.output.dir}/test-report-${build.id}.zip">
+ <fileset dir="${tests.output.dir}" includes="test-reports/**"/>
+ </zip>
+ </target>
+
+ <!-- ================================================================== -->
+ <!-- Cleaning -->
+ <!-- ================================================================== -->
+
+ <target name="tests-clean" description="Delete all generated test files.">
+ <delete dir="${tests.output.dir}"/>
+ </target>
+
+</project>
Modified: stack/cxf/trunk/modules/dist/src/main/scripts/assembly-bin-dist.xml
===================================================================
--- stack/cxf/trunk/modules/dist/src/main/scripts/assembly-bin-dist.xml 2013-05-16 10:41:19 UTC (rev 17588)
+++ stack/cxf/trunk/modules/dist/src/main/scripts/assembly-bin-dist.xml 2013-05-16 11:01:02 UTC (rev 17589)
@@ -87,6 +87,13 @@
<include>resources/jaxws/samples/**</include>
</includes>
</fileSet>
+ <fileSet>
+ <directory>../testsuite/cxf-tests/scripts</directory>
+ <outputDirectory>jbossws-cxf-bin-dist/tests/ant-import</outputDirectory>
+ <includes>
+ <include>cxf-samples-jars-jaxws.xml</include>
+ </includes>
+ </fileSet>
<!-- Test utils -->
<fileSet>
<directory>../testsuite/test-utils/src/main</directory>
@@ -115,17 +122,18 @@
<include>resources/saaj/**</include>
</includes>
</fileSet>
+ <!-- Testsuite build -->
+ <fileSet>
+ <directory>src/main/distro</directory>
+ <outputDirectory>jbossws-cxf-bin-dist/tests/ant-import</outputDirectory>
+ <includes>
+ <include>build-testsuite.xml</include>
+ </includes>
+ </fileSet>
<!-- Appclient patches -->
<fileSet>
<directory>../testsuite/src/test/resources/</directory>
<outputDirectory>jbossws-cxf-bin-dist/tests/etc/appclient</outputDirectory>
</fileSet>
- <fileSet>
- <directory>../testsuite/cxf-tests/scripts</directory>
- <outputDirectory>jbossws-cxf-bin-dist/tests/ant-import</outputDirectory>
- <includes>
- <include>cxf-samples-jars-jaxws.xml</include>
- </includes>
- </fileSet>
</fileSets>
</assembly>
Deleted: stack/cxf/trunk/modules/testsuite/shared-tests/src/test/ant-import/build-testsuite.xml
===================================================================
--- stack/cxf/trunk/modules/testsuite/shared-tests/src/test/ant-import/build-testsuite.xml 2013-05-16 10:41:19 UTC (rev 17588)
+++ stack/cxf/trunk/modules/testsuite/shared-tests/src/test/ant-import/build-testsuite.xml 2013-05-16 11:01:02 UTC (rev 17589)
@@ -1,892 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<!--
- ~ JBoss, Home of Professional Open Source.
- ~ Copyright 2011, Red Hat, Inc., and individual contributors
- ~ as indicated by the @author tags. See the copyright.txt file in the
- ~ distribution for a full listing of individual contributors.
- ~
- ~ This is free software; you can redistribute it and/or modify it
- ~ under the terms of the GNU Lesser General Public License as
- ~ published by the Free Software Foundation; either version 2.1 of
- ~ the License, or (at your option) any later version.
- ~
- ~ This software is distributed in the hope that it will be useful,
- ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
- ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- ~ Lesser General Public License for more details.
- ~
- ~ You should have received a copy of the GNU Lesser General Public
- ~ License along with this software; if not, write to the Free
- ~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- ~ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- -->
-
-<project>
-
- <!-- ================================================================== -->
- <!-- Initialization -->
- <!-- ================================================================== -->
-
- <target name="tests-prepare" depends="prepare">
-
- <!-- Define jboss.home -->
- <condition property="jboss.home" value="${jboss712.home}">
- <equals arg1="${jbossws.integration.target}" arg2="jboss712"/>
- </condition>
- <condition property="jboss.home" value="${jboss713.home}">
- <equals arg1="${jbossws.integration.target}" arg2="jboss713"/>
- </condition>
- <condition property="jboss.home" value="${jboss720.home}">
- <equals arg1="${jbossws.integration.target}" arg2="jboss720"/>
- </condition>
- <condition property="jboss.home" value="${wildfly800.home}">
- <equals arg1="${jbossws.integration.target}" arg2="wildfly800"/>
- </condition>
-
- <!-- Verify required properties that must be set before this file is imported -->
- <fail message="Tests output dir not set." unless="tests.output.dir"/>
-
- <!-- appclient patch -->
- <copy
- file="${basedir}/tests/etc/appclient/${jbossws.integration.target}/appclient-ws.xml"
- tofile="${jboss.home}/appclient/configuration/appclient-ws.xml"
- failonerror="false"
- overwrite="true"
- verbose="true"
- />
-
- <!-- Verify availabililty of tools.jar -->
- <condition property="tools.jar" value="${java.home}/lib/tools.jar">
- <available file="${java.home}/lib/tools.jar"/>
- </condition>
- <condition property="tools.jar" value="${java.home}/../lib/tools.jar">
- <available file="${java.home}/../lib/tools.jar"/>
- </condition>
- <!-- [JBWS-2113] tools.jar not available on Mac OS X -->
- <condition property="tools.jar" value="${java.home}/../Classes/classes.jar">
- <available file="${java.home}/../Classes/classes.jar"/>
- </condition>
- <fail message="Not available: ${java.home}/lib/tools.jar, ${java.home}/../lib/tools.jar" unless="tools.jar"/>
-
- <!-- Use -Ddebug=true for remote debugging -->
- <condition property="remote.debug.line" value="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005">
- <isset property="debug"/>
- </condition>
- <condition property="remote.debug.line" value="">
- <not>
- <isset property="debug"/>
- </not>
- </condition>
-
- <!-- Set a hostname property based on COMPUTERNAME for win32, HOSTNAME
- otherwise and initialize the node0/node1 cluster hostnames to localhost
- and ${hostname} by default. If you cannot route multicast traffic between
- localhost and hostname, then you need to specify node0 and node1 binding
- in the local.properties that can in order to be able to run the clustering
- tests.
- -->
- <property environment="env"/>
- <condition property="hostname" value="${env.COMPUTERNAME}">
- <os family="windows"/>
- </condition>
- <condition property="hostname" value="${env.HOSTNAME}">
- <not>
- <os family="windows"/>
- </not>
- </condition>
-
- <!-- node0 defaults -->
- <property name="node0" value="${jboss.bind.address}"/>
- <property name="node0.http.url" value="http://${node0}:8080"/>
- <property name="node0.jndi.url" value="jnp://${node0}:1099"/>
- <property name="node0.hajndi.url" value="jnp://${node0}:1100"/>
-
- <mkdir dir="${tests.output.dir}"/>
- <delete file="${tests.output.dir}/test.log" failonerror="false"/>
-
- <property name="jboss.lib" value="${jboss.home}/lib"/>
-
- <echo/>
- <echo message="-----------------------------------------------"/>
- <echo message="jboss.home = ${jboss.home}"/>
- <echo message="excludesfile = ${excludesfile}"/>
- <echo message="java.home = ${java.home}"/>
- <echo message="jboss.bind = ${jboss.bind.address}"/>
- <echo message="-----------------------------------------------"/>
-
- <tstamp>
- <format property="build.id" pattern="yyyyMMddHHmm"/>
- </tstamp>
- </target>
-
- <target name="tests-classpath" depends="tests-classpath-jboss71x,tests-classpath-jboss72x,tests-classpath-wildfly80x">
- <path id="tests.javac.classpath">
- <path refid="ws.stack.classpath"/>
- <path refid="integration.target.javac.classpath"/>
- </path>
- <path id="tests.client.classpath">
- <path refid="ws.stack.classpath"/>
- <path refid="integration.target.client.classpath"/>
- </path>
- </target>
-
- <target name="tests-classpath-jboss71x" depends="tests-prepare" if="jbossws.integration.jboss71x">
-
- <!-- Java Endorsed -->
- <condition property="endorsed.dirs" value="${jboss.home}/modules/javax/xml/ws/api/main/">
- <isset property="jboss.home"/>
- </condition>
-
- <path id="integration.target.javac.classpath">
- <fileset dir="${jboss.home}/modules/javax/activation/api/main/">
- <include name="activation-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/javax/mail/api/main/">
- <include name="mail-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/org/jboss/common-core/main/">
- <include name="jboss-common-core-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/org/jboss/logging/main/">
- <include name="jboss-logging-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/org/picketlink/main/">
- <include name="picketlink-core*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/javax/ejb/api/main/">
- <include name="jboss-ejb-api_3.1_spec-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/org/jboss/ejb3/main/">
- <include name="jboss-ejb3-ext-api-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/javax/servlet/api/main/">
- <include name="jboss-servlet-api_3.0_spec-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/javax/annotation/api/main/">
- <include name="jboss-annotations-api_1.1_spec-*.jar"/>
- </fileset>
- </path>
-
- <!--
- The 's.client.classpath' contains jars that are available in the target container's client directory.
- There jars apply to all supported stacks. It MUST NOT contains jars from a local thirdparty dir.
-
- The 'ws.stack.classpath' contains jars that come with a specific stack distribution.
- The 's.extra.classpath' contains stack specific jars that are needed to run the stack specific tests.
- -->
- <path id="integration.target.client.classpath">
- <!-- included from thirdparty local dir as it's not installed on AS - START -->
- <pathelement location="${thirdparty.dir}/jbossws-${jbossws.integration.target}-tests-integration.jar"/>
- <!-- included from thirdparty local dir as it's not installed on AS - END -->
- <pathelement location="${jboss.home}/jboss-modules.jar"/>
- <fileset dir="${jboss.home}/modules/org/jboss/logging/main/">
- <include name="jboss-logging-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/org/jboss/as/controller/main/">
- <include name="jboss-as-controller-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/org/jboss/as/controller-client/main/">
- <include name="jboss-as-controller-client-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/org/jboss/as/server/main/">
- <include name="jboss-as-server-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/org/jboss/as/protocol/main/">
- <include name="jboss-as-protocol-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/org/jboss/dmr/main/">
- <include name="jboss-dmr-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/org/jboss/marshalling/main/">
- <include name="jboss-marshalling-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/org/slf4j/main/">
- <include name="slf4j-api-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/org/slf4j/jcl-over-slf4j/main/">
- <include name="jcl-over-slf4j-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/org/slf4j/impl/main/">
- <include name="slf4j-jboss-logmanager-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/org/jboss/logmanager/main/">
- <include name="jboss-logmanager-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/org/apache/log4j/main/">
- <include name="log4j-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/javax/mail/api/main/">
- <include name="mail-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/javax/servlet/api/main/">
- <include name="jboss-servlet-api_3.0_spec-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/javax/transaction/api/main/">
- <include name="jboss-transaction-api_1.1_spec-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/org/jboss/threads/main/">
- <include name="jboss-threads-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/org/picketbox/main/">
- <include name="picketbox-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/org/picketlink/main/">
- <include name="picketlink-core*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/javax/ejb/api/main/">
- <include name="jboss-ejb-api_3.1_spec-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/org/jboss/ejb-client/main/">
- <include name="jboss-ejb-client-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/org/apache/xerces/main/">
- <include name="xercesImpl-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/org/jboss/common-core/main/">
- <include name="jboss-common-core-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/org/javassist/main/">
- <include name="javassist-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/javax/security/jacc/api/main/">
- <include name="jboss-jacc-api*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/org/jboss/remoting3/main/">
- <include name="jboss-remoting-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/org/jboss/marshalling/river/main/">
- <include name="jboss-marshalling-river-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/org/jboss/remoting3/remoting-jmx/main/">
- <include name="remoting-jmx-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/org/jboss/sasl/main/">
- <include name="jboss-sasl-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/org/jboss/netty/main/">
- <include name="netty-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/org/jboss/xb/main/">
- <include name="jbossxb-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/org/joda/time/main/">
- <include name="joda-time-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/org/apache/xalan/main/">
- <include name="serializer-*.jar"/>
- <include name="xalan-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/org/codehaus/woodstox/main/">
- <include name="woodstox-core-asl-*.jar"/>
- <include name="stax2-api-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/org/jboss/xnio/main/">
- <include name="xnio-api-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/org/jboss/xnio/nio/main/">
- <include name="xnio-nio-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/org/jboss/remote-naming/main/">
- <include name="jboss-remote-naming-*.jar"/>
- </fileset>
- <pathelement location="${tools.jar}"/>
- </path>
- </target>
-
- <target name="tests-classpath-jboss72x" depends="tests-prepare" if="jbossws.integration.jboss72x">
-
- <!-- Java Endorsed -->
- <condition property="endorsed.dirs" value="${jboss.home}/modules/system/layers/base/javax/xml/ws/api/main/">
- <isset property="jboss.home"/>
- </condition>
-
- <path id="integration.target.javac.classpath">
- <fileset dir="${jboss.home}/modules/system/layers/base/javax/activation/api/main/">
- <include name="activation-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/system/layers/base/javax/mail/api/main/">
- <include name="mail-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/system/layers/base/org/jboss/common-core/main/">
- <include name="jboss-common-core-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/system/layers/base/org/jboss/logging/main/">
- <include name="jboss-logging-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/system/layers/base/org/picketlink/main/">
- <include name="picketlink-core*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/system/layers/base/javax/ejb/api/main/">
- <include name="jboss-ejb-api_3.1_spec-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/system/layers/base/org/jboss/ejb3/main/">
- <include name="jboss-ejb3-ext-api-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/system/layers/base/javax/servlet/api/main/">
- <include name="jboss-servlet-api_3.0_spec-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/system/layers/base/javax/annotation/api/main/">
- <include name="jboss-annotations-api_1.1_spec-*.jar"/>
- </fileset>
- </path>
-
- <!--
- The 's.client.classpath' contains jars that are available in the target container's client directory.
- There jars apply to all supported stacks. It MUST NOT contains jars from a local thirdparty dir.
-
- The 'ws.stack.classpath' contains jars that come with a specific stack distribution.
- The 's.extra.classpath' contains stack specific jars that are needed to run the stack specific tests.
- -->
- <path id="integration.target.client.classpath">
- <!-- included from thirdparty local dir as it's not installed on AS - START -->
- <pathelement location="${thirdparty.dir}/jbossws-${jbossws.integration.target}-tests-integration.jar"/>
- <!-- included from thirdparty local dir as it's not installed on AS - END -->
- <pathelement location="${jboss.home}/jboss-modules.jar"/>
- <fileset dir="${jboss.home}/modules/system/layers/base/org/jboss/logging/main/">
- <include name="jboss-logging-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/system/layers/base/org/jboss/as/controller/main/">
- <include name="jboss-as-controller-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/system/layers/base/org/jboss/as/controller-client/main/">
- <include name="jboss-as-controller-client-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/system/layers/base/org/jboss/as/server/main/">
- <include name="jboss-as-server-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/system/layers/base/org/jboss/as/protocol/main/">
- <include name="jboss-as-protocol-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/system/layers/base/org/jboss/dmr/main/">
- <include name="jboss-dmr-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/system/layers/base/org/jboss/marshalling/main/">
- <include name="jboss-marshalling-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/system/layers/base/org/slf4j/main/">
- <include name="slf4j-api-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/system/layers/base/org/slf4j/jcl-over-slf4j/main/">
- <include name="jcl-over-slf4j-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/system/layers/base/org/slf4j/impl/main/">
- <include name="slf4j-jboss-logmanager-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/system/layers/base/org/jboss/logmanager/main/">
- <include name="jboss-logmanager-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/system/layers/base/org/apache/log4j/main/">
- <include name="log4j-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/system/layers/base/javax/mail/api/main/">
- <include name="mail-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/system/layers/base/javax/servlet/api/main/">
- <include name="jboss-servlet-api_3.0_spec-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/system/layers/base/javax/transaction/api/main/">
- <include name="jboss-transaction-api_1.1_spec-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/system/layers/base/org/jboss/threads/main/">
- <include name="jboss-threads-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/system/layers/base/org/picketbox/main/">
- <include name="picketbox-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/system/layers/base/org/picketlink/main/">
- <include name="picketlink-core*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/system/layers/base/javax/ejb/api/main/">
- <include name="jboss-ejb-api_3.1_spec-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/system/layers/base/org/jboss/ejb-client/main/">
- <include name="jboss-ejb-client-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/system/layers/base/org/apache/xerces/main/">
- <include name="xercesImpl-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/system/layers/base/org/jboss/common-core/main/">
- <include name="jboss-common-core-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/system/layers/base/org/javassist/main/">
- <include name="javassist-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/system/layers/base/javax/security/jacc/api/main/">
- <include name="jboss-jacc-api*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/system/layers/base/org/jboss/remoting3/main/">
- <include name="jboss-remoting-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/system/layers/base/org/jboss/marshalling/river/main/">
- <include name="jboss-marshalling-river-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/system/layers/base/org/jboss/remoting-jmx/main/">
- <include name="remoting-jmx-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/system/layers/base/org/jboss/sasl/main/">
- <include name="jboss-sasl-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/system/layers/base/org/jboss/netty/main/">
- <include name="netty-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/system/layers/base/org/jboss/xb/main/">
- <include name="jbossxb-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/system/layers/base/org/joda/time/main/">
- <include name="joda-time-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/system/layers/base/org/apache/xalan/main/">
- <include name="serializer-*.jar"/>
- <include name="xalan-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/system/layers/base/org/codehaus/woodstox/main/">
- <include name="woodstox-core-asl-*.jar"/>
- <include name="stax2-api-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/system/layers/base/org/jboss/xnio/main/">
- <include name="xnio-api-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/system/layers/base/org/jboss/xnio/nio/main/">
- <include name="xnio-nio-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/system/layers/base/org/jboss/remote-naming/main/">
- <include name="jboss-remote-naming-*.jar"/>
- </fileset>
- <pathelement location="${tools.jar}"/>
- </path>
- </target>
-
- <target name="tests-classpath-wildfly80x" depends="tests-prepare" if="jbossws.integration.wildfly80x">
-
- <!-- Java Endorsed -->
- <condition property="endorsed.dirs" value="${jboss.home}/modules/system/layers/base/javax/xml/ws/api/main/">
- <isset property="jboss.home"/>
- </condition>
-
- <path id="integration.target.javac.classpath">
- <fileset dir="${jboss.home}/modules/system/layers/base/javax/activation/api/main/">
- <include name="activation-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/system/layers/base/javax/mail/api/main/">
- <include name="mail-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/system/layers/base/org/jboss/common-core/main/">
- <include name="jboss-common-core-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/system/layers/base/org/jboss/logging/main/">
- <include name="jboss-logging-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/system/layers/base/org/picketlink/main/">
- <include name="picketlink-core*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/system/layers/base/javax/ejb/api/main/">
- <include name="jboss-ejb-api_3.2_spec-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/system/layers/base/org/jboss/ejb3/main/">
- <include name="jboss-ejb3-ext-api-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/system/layers/base/javax/servlet/api/main/">
- <include name="jboss-servlet-api_3.1_spec-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/system/layers/base/javax/annotation/api/main/">
- <include name="jboss-annotations-api_1.2_spec-*.jar"/>
- </fileset>
- </path>
-
- <!--
- The 's.client.classpath' contains jars that are available in the target container's client directory.
- There jars apply to all supported stacks. It MUST NOT contains jars from a local thirdparty dir.
-
- The 'ws.stack.classpath' contains jars that come with a specific stack distribution.
- The 's.extra.classpath' contains stack specific jars that are needed to run the stack specific tests.
- -->
- <path id="integration.target.client.classpath">
- <!-- included from thirdparty local dir as it's not installed on AS - START -->
- <pathelement location="${thirdparty.dir}/jbossws-${jbossws.integration.target}-tests-integration.jar"/>
- <!-- included from thirdparty local dir as it's not installed on AS - END -->
- <pathelement location="${jboss.home}/jboss-modules.jar"/>
- <fileset dir="${jboss.home}/modules/system/layers/base/org/jboss/logging/main/">
- <include name="jboss-logging-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/system/layers/base/org/jboss/as/controller/main/">
- <include name="wildfly-controller-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/system/layers/base/org/jboss/as/controller-client/main/">
- <include name="wildfly-controller-client-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/system/layers/base/org/wildfly/security/manager/main/">
- <include name="wildfly-security-manager-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/system/layers/base/org/jboss/as/server/main/">
- <include name="wildfly-server-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/system/layers/base/org/jboss/as/protocol/main/">
- <include name="wildfly-protocol-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/system/layers/base/org/jboss/dmr/main/">
- <include name="jboss-dmr-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/system/layers/base/org/jboss/marshalling/main/">
- <include name="jboss-marshalling-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/system/layers/base/org/slf4j/main/">
- <include name="slf4j-api-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/system/layers/base/org/slf4j/jcl-over-slf4j/main/">
- <include name="jcl-over-slf4j-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/system/layers/base/org/slf4j/impl/main/">
- <include name="slf4j-jboss-logmanager-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/system/layers/base/org/jboss/logmanager/main/">
- <include name="jboss-logmanager-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/system/layers/base/org/apache/log4j/main/">
- <include name="log4j-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/system/layers/base/javax/mail/api/main/">
- <include name="mail-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/system/layers/base/javax/servlet/api/main/">
- <include name="jboss-servlet-api_3.1_spec-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/system/layers/base/javax/transaction/api/main/">
- <include name="jboss-transaction-api_1.1_spec-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/system/layers/base/org/jboss/threads/main/">
- <include name="jboss-threads-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/system/layers/base/org/picketbox/main/">
- <include name="picketbox-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/system/layers/base/org/picketlink/main/">
- <include name="picketlink-core*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/system/layers/base/javax/ejb/api/main/">
- <include name="jboss-ejb-api_3.2_spec-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/system/layers/base/org/jboss/ejb-client/main/">
- <include name="jboss-ejb-client-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/system/layers/base/org/apache/xerces/main/">
- <include name="xercesImpl-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/system/layers/base/org/jboss/common-core/main/">
- <include name="jboss-common-core-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/system/layers/base/org/javassist/main/">
- <include name="javassist-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/system/layers/base/javax/security/jacc/api/main/">
- <include name="jboss-jacc-api*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/system/layers/base/org/jboss/remoting3/main/">
- <include name="jboss-remoting-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/system/layers/base/org/jboss/marshalling/river/main/">
- <include name="jboss-marshalling-river-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/system/layers/base/org/jboss/remoting-jmx/main/">
- <include name="remoting-jmx-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/system/layers/base/org/jboss/sasl/main/">
- <include name="jboss-sasl-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/system/layers/base/org/jboss/netty/main/">
- <include name="netty-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/system/layers/base/org/jboss/xb/main/">
- <include name="jbossxb-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/system/layers/base/org/joda/time/main/">
- <include name="joda-time-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/system/layers/base/org/apache/xalan/main/">
- <include name="serializer-*.jar"/>
- <include name="xalan-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/system/layers/base/org/codehaus/woodstox/main/">
- <include name="woodstox-core-asl-*.jar"/>
- <include name="stax2-api-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/system/layers/base/org/jboss/xnio/main/">
- <include name="xnio-api-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/system/layers/base/org/jboss/xnio/nio/main/">
- <include name="xnio-nio-*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/modules/system/layers/base/org/jboss/remote-naming/main/">
- <include name="jboss-remote-naming-*.jar"/>
- </fileset>
- <pathelement location="${tools.jar}"/>
- </path>
- </target>
-
- <!-- ================================================================== -->
- <!-- Compiling -->
- <!-- ================================================================== -->
-
- <macrodef name="macro-compile-classes">
- <attribute name="excludesfile"/>
- <attribute name="srcdir"/>
- <sequential>
- <mkdir dir="${tests.output.dir}/test-classes"/>
- <javac destdir="${tests.output.dir}/test-classes" debug="${javac.debug}" encoding="utf-8" verbose="${javac.verbose}" deprecation="${javac.deprecation}"
- failonerror="${javac.fail.onerror}" excludesfile="${excludesfile}">
- <src path="@{srcdir}"/>
- <classpath refid="tests.javac.classpath"/>
- </javac>
- </sequential>
- </macrodef>
-
- <!-- ================================================================== -->
- <!-- Building -->
- <!-- ================================================================== -->
-
- <macrodef name="macro-copy-resources">
- <attribute name="srcdir"/>
- <sequential>
-
- <!-- copy etc -->
- <copy todir="${tests.output.dir}/test-classes">
- <fileset dir="@{srcdir}/etc">
- <include name="*.properties"/>
- <include name="tst.policy"/>
- <include name="log4j.xml"/>
- </fileset>
- <filterset>
- <filter token="jboss.bind.address" value="${node0}"/>
- </filterset>
- </copy>
- <copy todir="${tests.output.dir}/test-classes">
- <fileset dir="@{srcdir}/etc">
- <include name="*.keystore"/>
- <include name="*.truststore"/>
- </fileset>
- </copy>
-
- <!-- copy handler definitions -->
- <copy todir="${tests.output.dir}/test-classes">
- <fileset dir="@{srcdir}/java">
- <include name="**/*.xml"/>
- </fileset>
- </copy>
-
- <!-- copy non binary files -->
- <copy todir="${tests.output.dir}/test-resources">
- <fileset dir="@{srcdir}/resources">
- <include name="**/*.wsdl"/>
- <include name="**/*.xml"/>
- <exclude name="jaxrpc/samples-override/**"/>
- </fileset>
- <filterset>
- <filter token="java.home" value="${java.home}"/>
- <filter token="jboss.bind.address" value="${node0}"/>
- <filter token="tests.output.dir" value="${tests.output.dir}"/>
- <filter token="wsdl-publish-location" value="${tests.output.dir}/wsdl-publish"/>
- </filterset>
- </copy>
-
- <!-- Copy binary files -->
- <copy todir="${tests.output.dir}/test-resources">
- <fileset dir="@{srcdir}/resources">
- <exclude name="**/*.wsdl"/>
- <exclude name="**/*.xml"/>
- </fileset>
- </copy>
- </sequential>
- </macrodef>
-
- <!-- ================================================================== -->
- <!-- Testing -->
- <!-- ================================================================== -->
-
- <!-- Run all unit tests and generate a report -->
- <target name="tests" depends="tests-jars" description="Run all unit tests and generate a report">
- <antcall target="tests-run-internal">
- <param name="include.wildcard" value="org/jboss/test/ws/**/*TestCase.class org/jboss/test/ws/**/*TestCaseForked.class"/>
- <param name="exclude.wildcard" value="no-wildcard-exclude-see-excludesfile"/>
- <param name="haltonfailure" value="false"/>
- </antcall>
- <antcall target="tests-report"/>
- </target>
-
- <!-- Run smoke test cases -->
- <target name="tests-smoke" depends="tests-init" description="Run smoke unit tests">
- <antcall target="tests-run-internal">
- <param name="include.wildcard" value="org/jboss/test/ws/jaxws/samples/**/*TestCase.class org/jboss/test/ws/*/smoke/**/*TestCase.class org/jboss/test/ws/*/smoke/**/*TestCaseForked.class"/>
- <!--
- According to our commit policy, haltonfailure MUST be be true for tests-smoke
- It is a prerequisite for any commit that this target passes without failure.
- -->
- <param name="haltonfailure" value="true"/>
- </antcall>
- <antcall target="tests-report"/>
- </target>
-
- <!-- Run samples test cases -->
- <target name="tests-samples" depends="tests-init" description="Run samples unit tests">
- <antcall target="tests-run-internal">
- <param name="include.wildcard" value="org/jboss/test/ws/*/samples/**/*TestCase.class"/>
- <param name="haltonfailure" value="false"/>
- </antcall>
- </target>
-
- <!-- Run integration test cases -->
- <target name="tests-integration" depends="tests-jars" description="Run integration unit tests">
- <antcall target="tests-run-internal">
- <param name="include.wildcard" value="org/jboss/test/ws/jaxws/samples/**/*TestCase.class org/jboss/test/ws/*/smoke/**/*TestCase.class"/>
- <param name="haltonfailure" value="false"/>
- </antcall>
- <antcall target="tests-report"/>
- </target>
-
- <!--
- Run a collection of unit tests.
- ant -Dtest=jaxws/samples/provider test
- -->
- <target name="test" depends="tests-init" if="test" description="Run all unit tests in a given directory">
- <antcall target="tests-run-internal">
- <param name="include.wildcard" value="org/jboss/test/ws/${test}/**/*TestCase.class"/>
- <param name="exclude.wildcard" value="no-wildcard-exclude-see-excludesfile"/>
- <param name="haltonfailure" value="false"/>
- </antcall>
- </target>
-
- <!-- Common test target -->
- <target name="tests-run-internal" depends="tests-init">
- <mkdir dir="${tests.output.dir}/test-reports"/>
- <junit printsummary="yes" showoutput="yes" dir="${tests.output.dir}" haltonfailure="${haltonfailure}">
- <jvmarg value="-Djava.security.manager"/>
- <jvmarg value="-ea"/>
- <!--jvmarg value="-Dcom.sun.xml.ws.transport.http.HttpAdapter.dump=true"/>
- <jvmarg value="-Dcom.sun.xml.ws.transport.http.client.HttpTransportPipe.dump=true"/-->
-
- <sysproperty key="jdk.home" value="${env.JAVA_HOME}"/>
- <sysproperty key="log4j.output.dir" value="${tests.output.dir}"/>
- <sysproperty key="appclient.output.dir" value="${tests.output.dir}/appclient-logs"/>
- <sysproperty key="client.scenario" value="${client.scenario}"/>
- <sysproperty key="interop" value="${interop}"/>
- <sysproperty key="java.endorsed.dirs" value="${endorsed.dirs}"/>
- <sysproperty key="java.naming.provider.url" value="${node0.jndi.url}"/>
- <sysproperty key="java.protocol.handler.pkgs" value="org.jboss.net.protocol|org.jboss.vfs.protocol|org.jboss.virtual.protocol"/>
- <sysproperty key="javax.net.ssl.trustStore" value="${tests.output.dir}/test-classes/test.truststore"/>
- <sysproperty key="javax.net.ssl.trustStorePassword" value="changeit"/>
- <sysproperty key="javax.net.ssl.trustStoreType" value="jks"/>
- <sysproperty key="javax.net.ssl.keyStore" value="${tests.output.dir}/test-classes/client.keystore"/>
- <sysproperty key="javax.net.ssl.keyStorePassword" value="changeit"/>
- <sysproperty key="javax.net.ssl.keyStoreType" value="jks"/>
- <sysproperty key="org.jboss.security.ignoreHttpsHost" value="true"/>
- <sysproperty key="java.security.policy" value="${tests.output.dir}/test-classes/tst.policy"/>
- <sysproperty key="jboss.home" value="${jboss.home}"/>
- <sysproperty key="jboss.bind.address" value="${node0}"/>
- <sysproperty key="jbossws.integration.target" value="${jbossws.integration.target}"/>
- <sysproperty key="jbossws.deployer.authentication.username" value="${jbossws.deployer.authentication.username}"/>
- <sysproperty key="jbossws.deployer.authentication.password" value="${jbossws.deployer.authentication.password}"/>
- <sysproperty key="jmx.authentication.username" value="${jmx.authentication.username}"/>
- <sysproperty key="jmx.authentication.password" value="${jmx.authentication.password}"/>
- <sysproperty key="org.jboss.ws.testsuite.securityDomain.users.propfile" value="${tests.output.dir}/test-classes/jbossws-users.properties"/>
- <sysproperty key="org.jboss.ws.testsuite.securityDomain.roles.propfile" value="${tests.output.dir}/test-classes/jbossws-roles.properties"/>
- <sysproperty key="org.jboss.ws.testsuite.server.keystore" value="${tests.output.dir}/test-classes/test.keystore"/>
- <sysproperty key="org.jboss.ws.testsuite.server.truststore" value="${tests.output.dir}/test-classes/test.truststore"/>
- <sysproperty key="test.archive.directory" value="${tests.output.dir}/test-libs"/>
- <sysproperty key="test.classes.directory" value="${tests.output.dir}/test-classes"/>
- <sysproperty key="test.resources.directory" value="${tests.output.dir}/test-resources"/>
- <sysproperty key="test.username" value="${test.username}"/>
- <sysproperty key="test.password" value="${test.password}"/>
- <classpath>
- <path refid="tests.client.classpath"/>
- <pathelement location="${tests.output.dir}/test-classes"/>
- </classpath>
- <formatter type="plain" usefile="true"/>
- <formatter type="xml" usefile="true"/>
- <batchtest todir="${tests.output.dir}/test-reports" fork="true">
- <fileset dir="${tests.output.dir}/test-classes" includes="${include.wildcard}" excludes="${exclude.wildcard}"/>
- </batchtest>
- </junit>
- </target>
-
- <!--
- Run a single unit test.
- ant -Dtest=org.jboss.test.ws.jaxws.samples.provider.ProviderPayloadTestCase one-test
- -->
- <target name="one-test" depends="tests-init" if="test" description="Run a single unit test">
- <mkdir dir="${tests.output.dir}/test-reports"/>
-
- <junit printsummary="yes" showoutput="yes" dir="${tests.output.dir}">
- <jvmarg line="${remote.debug.line}"/>
- <jvmarg value="-Djava.security.manager"/>
- <jvmarg value="-ea"/>
- <!--jvmarg value="-Dcom.sun.xml.ws.transport.http.HttpAdapter.dump=true"/>
- <jvmarg value="-Dcom.sun.xml.ws.transport.http.client.HttpTransportPipe.dump=true"/-->
-
- <sysproperty key="jdk.home" value="${env.JAVA_HOME}"/>
- <sysproperty key="log4j.output.dir" value="${tests.output.dir}"/>
- <sysproperty key="appclient.output.dir" value="${tests.output.dir}/appclient-logs"/>
- <sysproperty key="client.scenario" value="${client.scenario}"/>
- <sysproperty key="interop" value="${interop}"/>
- <sysproperty key="java.endorsed.dirs" value="${endorsed.dirs}"/>
- <sysproperty key="java.naming.provider.url" value="${node0.jndi.url}"/>
- <sysproperty key="java.protocol.handler.pkgs" value="org.jboss.net.protocol|org.jboss.vfs.protocol|org.jboss.virtual.protocol"/>
- <sysproperty key="javax.net.ssl.trustStore" value="${tests.output.dir}/test-classes/test.truststore"/>
- <sysproperty key="javax.net.ssl.trustStorePassword" value="changeit"/>
- <sysproperty key="javax.net.ssl.trustStoreType" value="jks"/>
- <sysproperty key="javax.net.ssl.keyStore" value="${tests.output.dir}/test-classes/client.keystore"/>
- <sysproperty key="javax.net.ssl.keyStorePassword" value="changeit"/>
- <sysproperty key="javax.net.ssl.keyStoreType" value="jks"/>
- <sysproperty key="org.jboss.security.ignoreHttpsHost" value="true"/>
- <sysproperty key="java.security.policy" value="${tests.output.dir}/test-classes/tst.policy"/>
- <sysproperty key="jboss.home" value="${jboss.home}"/>
- <sysproperty key="jboss.bind.address" value="${node0}"/>
- <sysproperty key="jbossws.integration.target" value="${jbossws.integration.target}"/>
- <sysproperty key="jbossws.deployer.authentication.username" value="${jbossws.deployer.authentication.username}"/>
- <sysproperty key="jbossws.deployer.authentication.password" value="${jbossws.deployer.authentication.password}"/>
- <sysproperty key="jmx.authentication.username" value="${jmx.authentication.username}"/>
- <sysproperty key="jmx.authentication.password" value="${jmx.authentication.password}"/>
- <sysproperty key="org.jboss.ws.testsuite.securityDomain.users.propfile" value="${tests.output.dir}/test-classes/jbossws-users.properties"/>
- <sysproperty key="org.jboss.ws.testsuite.securityDomain.roles.propfile" value="${tests.output.dir}/test-classes/jbossws-roles.properties"/>
- <sysproperty key="org.jboss.ws.testsuite.server.keystore" value="${tests.output.dir}/test-classes/test.keystore"/>
- <sysproperty key="org.jboss.ws.testsuite.server.truststore" value="${tests.output.dir}/test-classes/test.truststore"/>
- <sysproperty key="test.archive.directory" value="${tests.output.dir}/test-libs"/>
- <sysproperty key="test.classes.directory" value="${tests.output.dir}/test-classes"/>
- <sysproperty key="test.resources.directory" value="${tests.output.dir}/test-resources"/>
- <sysproperty key="test.username" value="${test.username}"/>
- <sysproperty key="test.password" value="${test.password}"/>
- <classpath>
- <path refid="tests.client.classpath"/>
- <pathelement location="${tests.output.dir}/test-classes"/>
- </classpath>
- <formatter type="plain" usefile="true"/>
- <formatter type="xml" usefile="true"/>
- <test todir="${tests.output.dir}/test-reports" name="${test}" fork="true"/>
- </junit>
- </target>
-
- <!-- ================================================================== -->
- <!-- Reporting -->
- <!-- ================================================================== -->
-
- <!-- Build the tests report -->
- <target name="tests-report" depends="tests-init" description="Build the tests report">
- <mkdir dir="${tests.output.dir}/test-reports"/>
- <junitreport todir="${tests.output.dir}/test-reports">
- <fileset dir="${tests.output.dir}/test-reports">
- <include name="TEST-*.xml"/>
- </fileset>
- <report format="frames" todir="${tests.output.dir}/test-reports/html"/>
- </junitreport>
- <zip destfile="${tests.output.dir}/test-report-${build.id}.zip">
- <fileset dir="${tests.output.dir}" includes="test-reports/**"/>
- </zip>
- </target>
-
- <!-- ================================================================== -->
- <!-- Cleaning -->
- <!-- ================================================================== -->
-
- <target name="tests-clean" description="Delete all generated test files.">
- <delete dir="${tests.output.dir}"/>
- </target>
-
-</project>
11 years, 7 months