build: add j3r180 (default) and j3r452 Maven profiles
Both profiles currently produce identical CAP bytecode, differing only in ELF AID so they can coexist on a card during bench testing. The j3r452 profile becomes meaningfully different in a later epic when it adds the OnUpgradeListener bridge.
This commit is contained in:
@@ -115,8 +115,8 @@
|
||||
classname="pro.javacard.ant.JavaCard"
|
||||
classpathref="maven.plugin.classpath"/>
|
||||
<javacard jckit="${env.JC_CLASSIC_HOME}">
|
||||
<cap output="${project.build.directory}/aliro-applet.cap"
|
||||
aid="A0000009094454414C49524F"
|
||||
<cap output="${project.build.directory}/${cap.output.name}"
|
||||
aid="${cap.elf.aid}"
|
||||
package="com.dangerousthings.aliro"
|
||||
version="0.1"
|
||||
classes="${project.build.outputDirectory}">
|
||||
@@ -142,4 +142,25 @@
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
<profiles>
|
||||
<profile>
|
||||
<id>j3r180</id>
|
||||
<activation><activeByDefault>true</activeByDefault></activation>
|
||||
<properties>
|
||||
<cap.variant>j3r180</cap.variant>
|
||||
<cap.elf.aid>A0000009094454414C49524F</cap.elf.aid>
|
||||
<cap.output.name>aliro-applet-j3r180.cap</cap.output.name>
|
||||
</properties>
|
||||
</profile>
|
||||
<profile>
|
||||
<id>j3r452</id>
|
||||
<properties>
|
||||
<cap.variant>j3r452</cap.variant>
|
||||
<!-- Last byte differs so both CAPs can coexist on the same card during testing. -->
|
||||
<cap.elf.aid>A0000009094454414C49524F02</cap.elf.aid>
|
||||
<cap.output.name>aliro-applet-j3r452.cap</cap.output.name>
|
||||
</properties>
|
||||
</profile>
|
||||
</profiles>
|
||||
</project>
|
||||
|
||||
Reference in New Issue
Block a user