Closed weidongxu-microsoft closed 3 years ago
At present, not able to add live test, since web app is not ready (until about Nov.), manually script need to be called to prepare the site (https://github.com/shrishrirang/onedeploy/blob/master/setup/windows/README.md).
DeploymentSlot
slot.deploy(DeployType.ZIP, new File(ManageWebAppBasic.class.getResource("/helloworld.zip").getPath()), new DeployOptions().withCleanDeployment(true));
slot.deploy(DeployType.JAR_LIB, new File("C:\\github_fork\\autorest.java\\preprocessor\\target\\preprocessor.jar"), new DeployOptions().withPath("preprocessor.jar"));
slot.deploy(DeployType.STATIC, new File("C:\\github_fork\\autorest.java\\generate.bat"), new DeployOptions().withPath("generate.bat"));
slot.deploy(DeployType.SCRIPT_STARTUP, new File("C:\\github_fork\\autorest.java\\generate.bat"));
Manual test is good. @xccc-msft @ChenTanyi
API review.
Not fully tested, but at least this works for tomcat.
And this works for java SE.
PS: OneDeploy https://github.com/shrishrirang/onedeploy