在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):fidesmo/gradle-javacard开源软件地址(OpenSource Url):https://github.com/fidesmo/gradle-javacard开源编程语言(OpenSource Language):Groovy 100.0%开源软件介绍(OpenSource Introduction):Compiling javacard applets with gradleThis plugins allows for translation of compiled class files to the converted archive format. These files can be used for installation on smart and sim cards supporting SUN/Oracle JavaCard Technology. Features
UsageInclude the new version of the plugin from OSS Sonatype snapshot by adding the following to your
Installing the Java Card Development KitBefore compiling you need to download the JavaCard SDK. The current implementation is tested using
Linux and the
Convert applications to Java CardThe specified package is converted from jvm byte code to javaCard byte code, by running the
Add exp files from vendors or other projectsTo add external exp files to your build, add a dependencies section to your gradle.build and add the corresponding paths to the javacardExport configuration. Usually you also will need to add some classes in order to compile your java code to class files.
Support for testing with jcardsimThe java card plugin doesn't include a testing framework, but it contains several mechanisms to make testing with jcardsim easier. To properly setup testing with jcardsim you have to add the central maven repositories to your build.gradle and configure the testCompile configuration to include jcardsim in the version you want.
If you follow the above the plugin will filter the runtime classpath of the test source set (usually the classes you have under /src/test). The aim is to remove the lib/api.jar from the javacard sdk in order to prevent clashes between the official javacard api and one provided by jcardsim. Building without javacard sdkIn case you want to run the build and the test one a continuous integration system, you can do so without providing a javacard sdk. If no sdk is detected but jcardsim has been added the plugin compiles you applet against the javacard api provided by jcardsim. Converting the java code to java card applet is not supported without javacard sdk. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论