-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbld.cmd
More file actions
executable file
·30 lines (25 loc) · 1.28 KB
/
bld.cmd
File metadata and controls
executable file
·30 lines (25 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
@echo off
setlocal
set SRC1=src\main\precompiled\Tasks.java
set CLASS1=work\exploded\WEB-INF\classes\Tasks.class
set SRC2=src\main\core\org\kissweb\BuildUtils.java
set CLASS2=work\exploded\WEB-INF\classes\org\kissweb\BuildUtils.class
rem Compare timestamps
set BUILD=false
for %%F in ("%SRC1%") do set SRC1_TIME=%%~tF
for %%F in ("%CLASS1%") do set CLASS1_TIME=%%~tF
if "%SRC1_TIME%" GTR "%CLASS1_TIME%" set BUILD=true
for %%F in ("%SRC2%") do set SRC2_TIME=%%~tF
for %%F in ("%CLASS2%") do set CLASS2_TIME=%%~tF
if "%SRC2_TIME%" GTR "%CLASS2_TIME%" set BUILD=true
if "%BUILD%"=="true" (
echo Building the builder
if not exist work\exploded\WEB-INF\classes (
mkdir work\exploded\WEB-INF\classes
)
rem Tasks.java uses org.kissweb.json (real JSON parser, stdlib-only
rem deps) for the project-management commands. Include its sources
rem in the bootstrap compile so they end up on the runtime classpath.
javac -cp "libs\commons-compress-1.27.1.jar;libs\commons-io-2.16.1.jar;libs\commons-lang3-3.18.0.jar" %SRC1% %SRC2% src\main\core\org\kissweb\json\*.java -d work\exploded\WEB-INF\classes
)
java -cp "work\exploded\WEB-INF\classes;libs\commons-compress-1.27.1.jar;libs\commons-io-2.16.1.jar;libs\commons-lang3-3.18.0.jar" -Dsun.security.pkcs11.enable-solaris=false Tasks %*