added old executable-jar plugin prototype (excluded from build)

This commit is contained in:
2021-09-25 21:33:03 +02:00
parent 87d040d125
commit f45e25bcd3
12 changed files with 225 additions and 53 deletions

View File

@@ -1,3 +1,14 @@
plugins {
id 'java-library'
}
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
jar {
manifest {
attributes "Automatic-Module-Name" : "net.woggioni.executable.jar"
}
}

View File

@@ -11,6 +11,8 @@ public class Constants {
public static final String METADATA_FOLDER = "META-INF";
public static final int BUFFER_SIZE = 0x10000;
public static final String DEFAULT_LAUNCHER = "net.woggioni.executable.jar.Launcher";
public static final String AGENT_LAUNCHER = "net.woggioni.executable.jar.JavaAgentLauncher";
public static final String JAVA_AGENTS_FILE = METADATA_FOLDER + "/javaAgents.properties";
public static class ManifestAttributes {
public static final String MAIN_MODULE = "Executable-Jar-Main-Module";