Git Product home page Git Product logo

Comments (2)

martinpaljak avatar martinpaljak commented on May 26, 2024

Could you elaborate? class files are copied to the .cap file by apple converter, under APPLET-INF/classes, for example:

$ jar tvf tests/Empty_0102030405_8d5ac9e2_2.2.1.cap               
   991 Mon Mar 08 06:55:26 EET 2021 META-INF/MANIFEST.MF
    18 Mon Mar 08 06:55:26 EET 2021 testapplets/empty/javacard/Header.cap
    34 Mon Mar 08 06:55:26 EET 2021 testapplets/empty/javacard/Directory.cap
    15 Mon Mar 08 06:55:26 EET 2021 testapplets/empty/javacard/Applet.cap
    34 Mon Mar 08 06:55:26 EET 2021 testapplets/empty/javacard/Import.cap
    25 Mon Mar 08 06:55:26 EET 2021 testapplets/empty/javacard/ConstantPool.cap
    15 Mon Mar 08 06:55:26 EET 2021 testapplets/empty/javacard/Class.cap
    45 Mon Mar 08 06:55:26 EET 2021 testapplets/empty/javacard/Method.cap
    13 Mon Mar 08 06:55:26 EET 2021 testapplets/empty/javacard/StaticField.cap
    12 Mon Mar 08 06:55:26 EET 2021 testapplets/empty/javacard/RefLocation.cap
    72 Mon Mar 08 06:55:26 EET 2021 testapplets/empty/javacard/Descriptor.cap
   313 Mon Mar 08 06:55:26 EET 2021 META-INF/javacard.xml
   518 Mon Mar 08 06:55:26 EET 2021 APPLET-INF/applet.xml
   801 Mon Mar 08 06:55:26 EET 2021 APPLET-INF/classes/testapplets/empty/Empty.class

Except for a library package, when classes are in root

$ jar tvf testapplets.library_01020304050607_be670770_2.2.2.cap
   799 Mon Mar 08 06:55:16 EET 2021 META-INF/MANIFEST.MF
    20 Mon Mar 08 06:55:16 EET 2021 testapplets/library/javacard/Header.cap
    34 Mon Mar 08 06:55:16 EET 2021 testapplets/library/javacard/Directory.cap
    24 Mon Mar 08 06:55:16 EET 2021 testapplets/library/javacard/Import.cap
    13 Mon Mar 08 06:55:16 EET 2021 testapplets/library/javacard/ConstantPool.cap
    13 Mon Mar 08 06:55:16 EET 2021 testapplets/library/javacard/Class.cap
    32 Mon Mar 08 06:55:16 EET 2021 testapplets/library/javacard/Method.cap
    13 Mon Mar 08 06:55:16 EET 2021 testapplets/library/javacard/StaticField.cap
     9 Mon Mar 08 06:55:16 EET 2021 testapplets/library/javacard/RefLocation.cap
    14 Mon Mar 08 06:55:16 EET 2021 testapplets/library/javacard/Export.cap
    67 Mon Mar 08 06:55:16 EET 2021 testapplets/library/javacard/Descriptor.cap
   313 Mon Mar 08 06:55:16 EET 2021 META-INF/javacard.xml
   685 Mon Mar 08 06:55:16 EET 2021 testapplets/library/SomeLibrary.class

Run "ant test" from master branch to verify this.

from ant-javacard.

CardContact avatar CardContact commented on May 26, 2024

I can't find the difference between a "normal" cap and a library cap anywhere in the jcvm specification.

Anyway, if you say that this is the default behavior of the cap converter, then I'm fine with it. I was just puzzled because our previous build system using the ant tasks from the jcdk produces cap files without classes.

from ant-javacard.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.