User: starksm
Date: 01/04/18 15:16:40
Added: src/main/org/jboss/test/util Deploy.java
Log:
A deployment utility class
Revision Changes Path
1.1 jbosstest/src/main/org/jboss/test/util/Deploy.java
Index: Deploy.java
===================================================================
package org.jboss.test.util;
/** A utility class for deploying the a named ejb jar.
@author [EMAIL PROTECTED]
@version $Revision: 1.1 $
*/
public class Deploy
{
public static boolean deployed;
/** Deploy the security ejb jar one time
*/
public static void deploy(String jarName) throws Exception
{
String noDeploy = System.getProperty("no-deploy");
if( noDeploy != null || deployed )
return;
String deployDir = System.getProperty("jbosstest.deploy.dir");
if( deployDir == null )
deployDir = "../deploy";
System.out.println("Deploying: "+ jarName);
new org.jboss.jmx.client.Deployer().deploy(deployDir+'/' + jarName);
deployed = true;
}
}
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development