408771 Problem with ShutdownMonitor for jetty-ant
This commit is contained in:
parent
8ed25ec478
commit
f825e27275
|
@ -278,6 +278,7 @@ public class ServerProxyImpl implements ServerProxy
|
|||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
e.printStackTrace();
|
||||
new RuntimeException(e);
|
||||
}
|
||||
}
|
||||
|
@ -351,11 +352,14 @@ public class ServerProxyImpl implements ServerProxy
|
|||
return;
|
||||
|
||||
configured = true;
|
||||
|
||||
ShutdownMonitor monitor = ShutdownMonitor.getInstance();
|
||||
monitor.setPort(stopPort);
|
||||
monitor.setKey(stopKey);
|
||||
monitor.setExitVm(false);
|
||||
|
||||
if(stopPort>0 && stopKey!=null)
|
||||
{
|
||||
ShutdownMonitor monitor = ShutdownMonitor.getInstance();
|
||||
monitor.setPort(stopPort);
|
||||
monitor.setKey(stopKey);
|
||||
monitor.setExitVm(false);
|
||||
}
|
||||
|
||||
if (tempDirectory != null && !tempDirectory.exists())
|
||||
tempDirectory.mkdirs();
|
||||
|
|
|
@ -30,8 +30,7 @@ import org.junit.Test;
|
|||
public class JettyAntTaskTest
|
||||
{
|
||||
|
||||
@Ignore
|
||||
//@Test
|
||||
@Test
|
||||
public void testConnectorTask() throws Exception
|
||||
{
|
||||
AntBuild build = new AntBuild(MavenTestingUtils.getTestResourceFile("connector-test.xml").getAbsolutePath());
|
||||
|
@ -51,7 +50,6 @@ public class JettyAntTaskTest
|
|||
|
||||
|
||||
@Test
|
||||
@Ignore("need to update connector")
|
||||
public void testWebApp () throws Exception
|
||||
{
|
||||
AntBuild build = new AntBuild(MavenTestingUtils.getTestResourceFile("webapp-test.xml").getAbsolutePath());
|
||||
|
|
Loading…
Reference in New Issue