Author: richard.opalka(a)jboss.com
Date: 2009-07-28 06:39:39 -0400 (Tue, 28 Jul 2009)
New Revision: 10398
Modified:
common/branches/ropalka/src/main/java/org/jboss/wsf/test/JBossWSTestHelper.java
Log:
adding option to disable test deployments
Modified: common/branches/ropalka/src/main/java/org/jboss/wsf/test/JBossWSTestHelper.java
===================================================================
---
common/branches/ropalka/src/main/java/org/jboss/wsf/test/JBossWSTestHelper.java 2009-07-28
08:48:31 UTC (rev 10397)
+++
common/branches/ropalka/src/main/java/org/jboss/wsf/test/JBossWSTestHelper.java 2009-07-28
10:39:39 UTC (rev 10398)
@@ -50,6 +50,7 @@
private static final String SYSPROP_JBOSS_BIND_ADDRESS =
"jboss.bind.address";
private static final String SYSPROP_TEST_ARCHIVE_DIRECTORY =
"test.archive.directory";
private static final String SYSPROP_TEST_RESOURCES_DIRECTORY =
"test.resources.directory";
+ private static final boolean DEPLOY_PROCESS_ENABLED =
!Boolean.getBoolean("test.disable.deployment");
private static MBeanServerConnection server;
private static String integrationTarget;
@@ -63,16 +64,22 @@
*/
public void deploy(String archive) throws Exception
{
- URL url = getArchiveFile(archive).toURL();
- getDeployer().deploy(url);
+ if ( DEPLOY_PROCESS_ENABLED )
+ {
+ URL archiveURL = getArchiveFile(archive).toURL();
+ getDeployer().deploy(archiveURL);
+ }
}
/** Undeploy the given archive
*/
public void undeploy(String archive) throws Exception
{
- URL url = getArchiveFile(archive).toURL();
- getDeployer().undeploy(url);
+ if ( DEPLOY_PROCESS_ENABLED )
+ {
+ URL archiveURL = getArchiveFile(archive).toURL();
+ getDeployer().undeploy(archiveURL);
+ }
}
/** True, if -Djbossws.integration.target=jboss5x */
Show replies by date