-
-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Shift around ant smoke tests and add a handy makefile
- Loading branch information
1 parent
521fef5
commit 09474a8
Showing
9 changed files
with
71 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
SHELL := /bin/bash | ||
JDK := zulu | ||
JAVA8 := /Library/Java/JavaVirtualMachines/$(JDK)-8.jdk/Contents/Home | ||
JAVA11 := /Library/Java/JavaVirtualMachines/$(JDK)-11.jdk/Contents/Home | ||
JAVA17 := /Library/Java/JavaVirtualMachines/$(JDK)-17.jdk/Contents/Home | ||
JAVA21 := /Library/Java/JavaVirtualMachines/$(JDK)-21.jdk/Contents/Home | ||
|
||
default: reportjava | ||
./mvnw package | ||
ant test | ||
|
||
reportjava: | ||
@echo using java $(shell java -version 2>&1 | grep version) from \"$(JAVA_HOME)\" | ||
|
||
jar: | ||
JAVA_HOME=$(JAVA8) ant clean dist | ||
|
||
cap: | ||
# run maven with JDK21 | ||
JAVA_HOME=$(JAVA21) ./mvnw package | ||
|
||
8: | ||
JAVA_HOME=$(JAVA8) ant clean test | ||
|
||
11: | ||
JAVA_HOME=$(JAVA11) ant clean test | ||
|
||
17: | ||
JAVA_HOME=$(JAVA17) ant clean test | ||
|
||
|
||
all: cap 8 11 17 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project basedir="." name="kit defs"> | ||
<!-- Some handy shorthands --> | ||
<property name="JC211" value="sdks/jc211_kit"/> | ||
<property name="JC212" value="sdks/jc212_kit"/> | ||
<property name="JC221" value="sdks/jc221_kit"/> | ||
<property name="JC222" value="sdks/jc222_kit"/> | ||
<property name="JC303" value="sdks/jc303_kit"/> | ||
<property name="JC304" value="sdks/jc304_kit"/> | ||
<property name="JC305_1" value="sdks/jc305u1_kit"/> | ||
<property name="JC305_2" value="sdks/jc305u2_kit"/> | ||
<property name="JC305" value="sdks/jc305u3_kit"/> | ||
<property name="JC310" value="sdks/jc310r20210706_kit"/> | ||
<property name="JC320" value="sdks/jc320v24.0_kit"/> | ||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project basedir="." default="test" name="ant-javacard tests"> | ||
<!-- Build test applets --> | ||
<target name="test"> | ||
<echo message="JDK 21 does not work with any JavaCard kit. See https://github.com/martinpaljak/ant-javacard/wiki/JavaCard-SDK-and-JDK-version-compatibility"/> | ||
</target> | ||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters