Author: thomas.diesler(a)jboss.com
Date: 2007-10-22 08:18:21 -0400 (Mon, 22 Oct 2007)
New Revision: 4851
Modified:
common/trunk/src/main/java/org/jboss/wsf/test/JBossWSTestHelper.java
Log:
Fix isTargetJBossxx
Modified: common/trunk/src/main/java/org/jboss/wsf/test/JBossWSTestHelper.java
===================================================================
--- common/trunk/src/main/java/org/jboss/wsf/test/JBossWSTestHelper.java 2007-10-22
12:14:43 UTC (rev 4850)
+++ common/trunk/src/main/java/org/jboss/wsf/test/JBossWSTestHelper.java 2007-10-22
12:18:21 UTC (rev 4851)
@@ -32,7 +32,6 @@
import javax.naming.NamingException;
import javax.xml.namespace.QName;
import javax.xml.transform.Source;
-import javax.xml.ws.Dispatch;
import javax.xml.ws.Service;
import javax.xml.ws.Service.Mode;
import javax.xml.ws.soap.SOAPBinding;
@@ -73,25 +72,25 @@
getDeployer().undeploy(url);
}
- /** True, if -Djbossws.integration.target=jboss50 */
+ /** True, if -Djbossws.integration.target=jboss50x */
public boolean isTargetJBoss50()
{
String target = getIntegrationTarget();
- return "jboss50".equals(target);
+ return target.startsWith("jboss50");
}
- /** True, if -Djbossws.integration.target=jboss42 */
+ /** True, if -Djbossws.integration.target=jboss42x */
public boolean isTargetJBoss42()
{
String target = getIntegrationTarget();
- return "jboss42".equals(target);
+ return target.startsWith("jboss42");
}
- /** True, if -Djbossws.integration.target=jboss40 */
+ /** True, if -Djbossws.integration.target=jboss40x */
public boolean isTargetJBoss40()
{
String target = getIntegrationTarget();
- return "jboss40".equals(target);
+ return target.startsWith("jboss40");
}
public boolean isIntegrationNative()
Show replies by date