-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathbuild-java.cmd
More file actions
executable file
·30 lines (25 loc) · 960 Bytes
/
build-java.cmd
File metadata and controls
executable file
·30 lines (25 loc) · 960 Bytes
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
:: Remove .class files from the specified directories
del /f /q out\production\com\pdfjet\*.class
del /f /q out\production\com\pdfjet\font\*.class
del /f /q out\production\examples\*.class
:: Compile all Java files in com/pdfjet
javac -O -encoding utf-8 -Xlint com\pdfjet\*.java com\pdfjet\font\*.java -d out\production
:: Create the JAR file
jar cf PDFjet.jar -C out\production .
:: Compile the Example files (loop from 1 to 50)
for /L %%i in (1,1,50) do (
if %%i lss 10 (
javac -O -encoding utf-8 -Xlint -cp PDFjet.jar examples\Example_0%%i.java -d out\production
) else (
javac -O -encoding utf-8 -Xlint -cp PDFjet.jar examples\Example_%%i.java -d out\production
)
)
:: Run the Example files (loop from 1 to 50)
for /L %%i in (1,1,50) do (
if %%i lss 10 (
java -cp .;PDFjet.jar;out\production examples.Example_0%%i
) else (
java -cp .;PDFjet.jar;out\production examples.Example_%%i
)
)