File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ for /f "usebackq tokens=*" %%N in (`call "%~dp0empty" %REQKEYS%`) do (echo missi
4242:action
4343if defined PRINT%~n0 ERROR (set " CHECK=" ) else (set " CHECK=2>nul" )
4444set SOURCESLIST = %TEMPORARY% \sources.txt
45- for %%A in (%ACTION% ) do (call :%%A || (echo error:%%A :!ERRORLEVEL! & exit /b !ERRORLEVEL! ))
45+ for %%A in (%ACTION% ) do (call :%%A || (echo error:action: %%A :!ERRORLEVEL! & exit /b !ERRORLEVEL! ))
4646goto :EOF
4747
4848:create
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ if not defined NAME (set NAME=%AREA%)
5151set BATFILE = %PACKAGE% \%NAME% .bat
5252set JARFILE = %PACKAGE% \%NAME% .jar
5353set MANIFEST = %TEMPORARY% \manifest.txt
54- for %%A in (%ACTION% ) do (call :%%A || (echo error:%%A :!ERRORLEVEL! & exit /b !ERRORLEVEL! ))
54+ for %%A in (%ACTION% ) do (call :%%A || (echo error:action: %%A :!ERRORLEVEL! & exit /b !ERRORLEVEL! ))
5555goto :EOF
5656
5757:create
Load diff This file was deleted.
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ set ARGS=-i %INIFILE% -a %AREA%
1212
1313@ rem set error level https://superuser.com/a/649329
1414echo creating
15- call %SCRIPTS% \compile %ARGS% -c & set LAST = !ERRORLEVEL!
15+ call %SCRIPTS% \compile %ARGS% -r - c & set LAST = !ERRORLEVEL!
1616echo create:%LAST%
1717if not %LAST% == 0 (pause & exit /b %LAST% )
1818
Original file line number Diff line number Diff line change 1- package io .github .geetransit .template ;
2-
3- import java .io .*;
4- import java .util .*;
5- import java .awt .*;
6- import java .awt .event .*;
7- import javax .swing .*;
8-
91public class Main {
102 public static void main (String [] args ) {
11- System .out .println ("template.Main#main" );
12- Other .main (args );
13- InputStream file = Main .class .getResourceAsStream ("/res/resource.txt" );
14- Scanner bob = new Scanner (file );
15- while (bob .hasNextLine ())
16- System .out .println (bob .nextLine ());
3+ System .out .println ("Hello, world!" );
174 }
185}
Load diff This file was deleted.
Original file line number Diff line number Diff line change 88
99public class Launcher {
1010 // change this string to your main class.
11- public static final String invoke = "io.github.geetransit.template. Main" ;
11+ public static final String invoke = "Main" ;
1212 public static void main (String [] args ) throws Throwable {
1313 new JarClassLoader ().invokeMain (invoke , args );
1414 }
You can’t perform that action at this time.
0 commit comments