|
|
@@ -34,7 +34,7 @@ public class War_Test {
|
|
|
String originJarOrWar = projectRootDir + "war-project.war";
|
|
|
String includePrefix = "com";
|
|
|
|
|
|
- String startBat = "java -jar " + projectRootDir + "class-winter-core-2.0.0.jar"
|
|
|
+ String startBat = "java -jar " + projectRootDir + "class-winter-core-2.1.0.jar"
|
|
|
+ " originJarOrWar=" + originJarOrWar
|
|
|
+ " includePrefix=" + includePrefix
|
|
|
;
|
|
|
@@ -43,7 +43,7 @@ public class War_Test {
|
|
|
|
|
|
String encryptedWar = originJarOrWar.replace(".war", "-encrypted.war");
|
|
|
System.out.println();
|
|
|
- System.out.println("[加密以完成] 请使用web容器(如tomcat)启动war包:" + encryptedWar);
|
|
|
+ System.out.println("[加密已完成] 请使用web容器(如tomcat)启动war包:" + encryptedWar);
|
|
|
System.out.println("其中参数附加 -javaagent:class-winter-core.jar");
|
|
|
// System.out.println("其中参数附加 -javaagent:class-winter-core.jar=debug=true,password=pwd123");
|
|
|
System.out.println();
|
|
|
@@ -62,7 +62,7 @@ public class War_Test {
|
|
|
String includePrefix = "com";
|
|
|
String password = "123456";
|
|
|
|
|
|
- String startBat = "java -jar " + projectRootDir + "class-winter-core-2.0.0.jar"
|
|
|
+ String startBat = "java -jar " + projectRootDir + "class-winter-core-2.1.0.jar"
|
|
|
+ " originJarOrWar=" + originJarOrWar
|
|
|
+ " includePrefix=" + includePrefix
|
|
|
+ " password=" + password
|
|
|
@@ -73,7 +73,7 @@ public class War_Test {
|
|
|
|
|
|
String encryptedWar = originJarOrWar.replace(".war", "-encrypted.war");
|
|
|
System.out.println();
|
|
|
- System.out.println("[加密以完成] 请使用web容器(如tomcat)启动war包:" + encryptedWar);
|
|
|
+ System.out.println("[加密已完成] 请使用web容器(如tomcat)启动war包:" + encryptedWar);
|
|
|
System.out.println("其中参数附加 -javaagent:class-winter-core.jar=password=" + password);
|
|
|
// System.out.println("其中参数附加 -javaagent:class-winter-core.jar=debug=true,password=pwd123");
|
|
|
System.out.println();
|
|
|
@@ -93,7 +93,7 @@ public class War_Test {
|
|
|
String alreadyProtectedLibs = "encrypted-lib-no-pwd.jar";
|
|
|
String password = "oop857857";
|
|
|
|
|
|
- String startBat = "java -jar " + projectRootDir + "class-winter-core-2.0.0.jar"
|
|
|
+ String startBat = "java -jar " + projectRootDir + "class-winter-core-2.1.0.jar"
|
|
|
+ " originJarOrWar=" + originJarOrWar
|
|
|
+ " includePrefix=" + includePrefix
|
|
|
+ " alreadyProtectedLibs=" + alreadyProtectedLibs
|
|
|
@@ -104,7 +104,7 @@ public class War_Test {
|
|
|
|
|
|
String encryptedWar = originJarOrWar.replace(".war", "-encrypted.war");
|
|
|
System.out.println();
|
|
|
- System.out.println("[加密以完成] 请使用web容器(如tomcat)启动war包:" + encryptedWar);
|
|
|
+ System.out.println("[加密已完成] 请使用web容器(如tomcat)启动war包:" + encryptedWar);
|
|
|
System.out.println("其中参数附加 -javaagent:class-winter-core.jar=password=" + password);
|
|
|
// System.out.println("其中参数附加 -javaagent:class-winter-core.jar=debug=true,password=pwd123");
|
|
|
System.out.println();
|
|
|
@@ -124,7 +124,7 @@ public class War_Test {
|
|
|
String alreadyProtectedLibs = "encrypted-lib-have-pwd.jar:qwer123~";
|
|
|
String password = "yiyakaka";
|
|
|
|
|
|
- String startBat = "java -jar " + projectRootDir + "class-winter-core-2.0.0.jar"
|
|
|
+ String startBat = "java -jar " + projectRootDir + "class-winter-core-2.1.0.jar"
|
|
|
+ " originJarOrWar=" + originJarOrWar
|
|
|
+ " includePrefix=" + includePrefix
|
|
|
+ " alreadyProtectedLibs=" + alreadyProtectedLibs
|
|
|
@@ -135,7 +135,7 @@ public class War_Test {
|
|
|
|
|
|
String encryptedWar = originJarOrWar.replace(".war", "-encrypted.war");
|
|
|
System.out.println();
|
|
|
- System.out.println("[加密以完成] 请使用web容器(如tomcat)启动war包:" + encryptedWar);
|
|
|
+ System.out.println("[加密已完成] 请使用web容器(如tomcat)启动war包:" + encryptedWar);
|
|
|
System.out.println("其中参数附加 -javaagent:class-winter-core.jar=password=" + password);
|
|
|
// System.out.println("其中参数附加 -javaagent:class-winter-core.jar=debug=true,password=pwd123");
|
|
|
System.out.println();
|
|
|
@@ -160,7 +160,7 @@ public class War_Test {
|
|
|
String alreadyProtectedLibs = "encrypted-lib-have-pwd.jar:qwer123~";
|
|
|
String debug = "true";
|
|
|
|
|
|
- String startBat = "java -jar " + projectRootDir + "class-winter-core-2.0.0.jar"
|
|
|
+ String startBat = "java -jar " + projectRootDir + "class-winter-core-2.1.0.jar"
|
|
|
+ " originJarOrWar=" + originJarOrWar
|
|
|
+ " includePrefix=" + includePrefix
|
|
|
+ " excludePrefix=" + excludePrefix
|
|
|
@@ -177,7 +177,7 @@ public class War_Test {
|
|
|
|
|
|
String encryptedJar = projectRootDir + finalName + ".war";
|
|
|
System.out.println();
|
|
|
- System.out.println("[加密以完成] 请使用web容器(如tomcat)启动war包:" + encryptedJar);
|
|
|
+ System.out.println("[加密已完成] 请使用web容器(如tomcat)启动war包:" + encryptedJar);
|
|
|
System.out.println("其中参数附加 -javaagent:class-winter-core.jar=password=pwd12345");
|
|
|
// System.out.println("其中参数附加 -javaagent:class-winter-core.jar=debug=true,password=pwd123");
|
|
|
System.out.println();
|