File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ plugins {
33}
44
55group = " oolloo"
6- version = " 1.3.2 "
6+ version = " 1.3.3 "
77
88repositories {
99 mavenCentral()
Original file line number Diff line number Diff line change 1- # Java Launch Wrapper (v1.3.2 )
1+ # Java Launch Wrapper (v1.3.3 )
22
33** 用途:** 此 wrapper 使 java 能够正常添加启动命令行中包含特殊字符的 classpath 。
44
Original file line number Diff line number Diff line change 55import java .util .zip .CRC32 ;
66
77public class ArgLoader {
8- @ SuppressWarnings ("FieldCanBeLocal" ) private final long CRC32_LIB32 = 0xB7F06136 ;
9- @ SuppressWarnings ("FieldCanBeLocal" ) private final long CRC32_LIB64 = 0x530B96F6 ;
8+ @ SuppressWarnings ("FieldCanBeLocal" ) private final long CRC32_LIB32 = 0xB7F06136L ;
9+ @ SuppressWarnings ("FieldCanBeLocal" ) private final long CRC32_LIB64 = 0x530B96F6L ;
1010 private final boolean IS_JVM_64 ;
1111 private native String getCommandLine ();
1212 public final String commandLine ;
@@ -69,10 +69,10 @@ private void loadNative() throws IOException {
6969 File lib ;
7070
7171 if (IS_JVM_64 ) {
72- lib = new File (tmp_dir ,"libjlw-" + Wrapper .VERSION + ".dll" );
72+ lib = new File (tmp_dir ,"libjlw-" + Wrapper .NATIVE_VERSION + ".dll" );
7373 is = ArgLoader .class .getResourceAsStream ("/wrapper.dll" );
7474 } else {
75- lib = new File (tmp_dir , "libjlw32-" + Wrapper .VERSION + ".dll" );
75+ lib = new File (tmp_dir , "libjlw32-" + Wrapper .NATIVE_VERSION + ".dll" );
7676 is = ArgLoader .class .getResourceAsStream ("/wrapper32.dll" );
7777 }
7878
Original file line number Diff line number Diff line change 99
1010public class Wrapper {
1111
12- static final String VERSION = "1.3.2" ;
12+ static final String NATIVE_VERSION = "1.3.2" ;
1313
1414 public static void main (String [] ignore )
1515 throws InvocationTargetException ,
You can’t perform that action at this time.
0 commit comments