Merged branch 'jetty-9.4.x' into 'jetty-10.0.x'.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
This commit is contained in:
Simone Bordet 2019-02-13 15:19:09 +01:00
commit 92417c0954
2 changed files with 6 additions and 9 deletions

View File

@ -183,12 +183,6 @@ public class HttpClient extends ContainerLifeCycle
{
this.transport = transport;
addBean(transport);
if (sslContextFactory == null)
{
sslContextFactory = new SslContextFactory(false);
sslContextFactory.setEndpointIdentificationAlgorithm("HTTPS");
}
this.sslContextFactory = sslContextFactory;
addBean(sslContextFactory);
addBean(handlers);

View File

@ -130,18 +130,21 @@ public class DistributionTester
*/
public DistributionTester.Run start(List<String> args) throws Exception
{
File jettyBaseDir = config.jettyBase.toFile();
Path workDir = Files.createDirectories(jettyBaseDir.toPath().resolve("work"));
List<String> commands = new ArrayList<>();
commands.add(getJavaExecutable());
commands.add("-Djava.io.tmpdir=" + workDir.toAbsolutePath().toString());
commands.add("-jar");
commands.add(config.jettyHome.toAbsolutePath() + "/start.jar");
commands.addAll(args);
File workingDir = config.jettyBase.toFile();
LOGGER.info("Executing: {}", commands);
LOGGER.info("Working Dir: {}", workingDir.getAbsolutePath());
LOGGER.info("Working Dir: {}", jettyBaseDir.getAbsolutePath());
ProcessBuilder pbCmd = new ProcessBuilder(commands);
pbCmd.directory(workingDir);
pbCmd.directory(jettyBaseDir);
Process process = pbCmd.start();
return new Run(process);