JAR Desc CSAR Notes JAR A package file

  • Slides: 1
Download presentation
JAR Desc CSAR Notes JAR A package file format typically used to aggregate many

JAR Desc CSAR Notes JAR A package file format typically used to aggregate many Java class files and associated metadata and resources (text, images, etc. ) into one file for distribution. JAR files are archive files that include a Javaspecific manifest file. They are built on the ZIP format and typically have a. jar file extension. CSAR TOSCA Simple Profile definitions along with all accompanying artifacts (e. g. scripts, binaries, configuration files) can be packaged together in a CSAR file META-INF There can be only one manifest file in an archive and it must be at that location. TOSCA-Metadata (directory ) contains the TOSCA. metadata file that provides entry information for a TOSCA orchestrator processing the CSAR file. Manifest. mf A manifest file is a metadata file contained within a JAR. TOSCA. meta Provides entry information for a TOSCA orchestrator processing the CSAR file Manifest-Version (e. g. , 1. 0) conforms to version 1. 0 of the manifest specification. TOSCA-Meta-File. Version • Main-Class: (e. g. , com. example. My. Clas s. Name) the JVM (for an exec. JAR)needs to know the application's entry point. Entry-Definitions [0, 1] any TOSCA definitions files besides the one denoted by the Entry-Definitions keyword can be found by a TOSCA orchestrator by processing respective imports statements in the entry definitions file (or in recursively imported files). Class-Path: (e. g. , . pkg 1. jar path/to/pkg 2. jar) used to specify all the classes that must be loaded for an application to be able to run. An entry point is any class with a public static void main(String[] args) method ? <other-definitions> [0, N] Note: We do not have a separate CSAR spec. • should we? • rules for version increments?