ARTEMIS-2933 Add .NET Famework v4.0 supported runtime for com.sun.winsw

This commit is contained in:
Domenico Francesco Bruscino 2020-10-07 00:06:23 +02:00 committed by Bruscino Domenico Francesco
parent cfbdcb4619
commit 493bd225e4
3 changed files with 9 additions and 0 deletions

View File

@ -76,6 +76,7 @@ public class Create extends InputAbstract {
public static final String BIN_ARTEMIS_CMD = "bin/artemis.cmd";
public static final String BIN_ARTEMIS_SERVICE_EXE = "bin/artemis-service.exe";
public static final String BIN_ARTEMIS_SERVICE_EXE_CONFIG = "bin/artemis-service.exe.config";
public static final String BIN_ARTEMIS_SERVICE_XML = "bin/artemis-service.xml";
public static final String ETC_ARTEMIS_PROFILE_CMD = "artemis.profile.cmd";
public static final String BIN_ARTEMIS = "bin/artemis";
@ -803,6 +804,7 @@ public class Create extends InputAbstract {
if (IS_WINDOWS) {
write(BIN_ARTEMIS_CMD, filters, false);
write(BIN_ARTEMIS_SERVICE_EXE);
write(BIN_ARTEMIS_SERVICE_EXE_CONFIG);
write(BIN_ARTEMIS_SERVICE_XML, filters, false);
writeEtc(ETC_ARTEMIS_PROFILE_CMD, etcFolder, filters, false);
}

View File

@ -0,0 +1,6 @@
<configuration>
<startup>
<supportedRuntime version="v2.0.50727" />
<supportedRuntime version="v4.0" />
</startup>
</configuration>

View File

@ -33,6 +33,7 @@ public class StreamClassPathTest {
public void testFindStreams() throws Exception {
testStream(Create.class, Create.BIN_ARTEMIS_CMD);
testStream(Create.class, Create.BIN_ARTEMIS_SERVICE_EXE);
testStream(Create.class, Create.BIN_ARTEMIS_SERVICE_EXE_CONFIG);
testStream(Create.class, Create.BIN_ARTEMIS_SERVICE_XML);
testStream(Create.class, "etc/" + Create.ETC_ARTEMIS_PROFILE_CMD);
testStream(Create.class, Create.BIN_ARTEMIS);