Have jetty-ee#-maven-plugin manage the deployer environment as well
This commit is contained in:
parent
55805c92ee
commit
e84b84e09c
|
@ -363,13 +363,15 @@ public class JettyHomeForker extends AbstractForker
|
|||
IO.copy(jarStream, fileStream);
|
||||
}
|
||||
|
||||
//copy in the maven.xml webapp file
|
||||
// copy in the maven.xml webapp file
|
||||
try (InputStream mavenXmlStream = getClass().getClassLoader().getResourceAsStream("maven-ee10.xml");
|
||||
FileOutputStream fileStream = new FileOutputStream(webappPath.resolve("maven-ee10.xml").toFile()))
|
||||
{
|
||||
IO.copy(mavenXmlStream, fileStream);
|
||||
}
|
||||
|
||||
Files.writeString(webappPath.resolve("maven-ee10.properties"), "environment=ee10");
|
||||
|
||||
//copy in the maven.mod file
|
||||
try (InputStream mavenModStream = getClass().getClassLoader().getResourceAsStream("ee10-maven.mod");
|
||||
FileOutputStream fileStream = new FileOutputStream(modulesPath.resolve("ee10-maven.mod").toFile()))
|
||||
|
|
|
@ -370,6 +370,8 @@ public class JettyHomeForker extends AbstractForker
|
|||
IO.copy(mavenXmlStream, fileStream);
|
||||
}
|
||||
|
||||
Files.writeString(webappPath.resolve("maven-ee9.properties"), "environment=ee9");
|
||||
|
||||
//copy in the maven.mod file
|
||||
try (InputStream mavenModStream = getClass().getClassLoader().getResourceAsStream("ee9-maven.mod");
|
||||
FileOutputStream fileStream = new FileOutputStream(modulesPath.resolve("ee9-maven.mod").toFile()))
|
||||
|
|
Loading…
Reference in New Issue