{"modulePath":"github.com/cloudfoundry/jvm-application-cnb","version":"v1.1.12","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package executablejar\n\n## Constants\n\n```go\nconst Dependency = \"executable-jar\"\n```\nDependency indicates that an application is an executable JAR.\n\n## Types\n\n```go\ntype ExecutableJAR struct {\n\t// Metadata is metadata about the executable JAR application.\n\tMetadata Metadata\n\t// contains filtered or unexported fields\n}\n```\nExecutableJAR represents an executable JAR JVM application.\n\n```go\nfunc NewExecutableJAR(build build.Build) (ExecutableJAR, bool, error)\n```\nNewExecutableJAR creates a new ExecutableJAR instance.  OK is true if the build plan contains a \"jvm-application\" dependency and a \"Main-Class\" manifest key.\n\n```go\nfunc (e ExecutableJAR) Contribute() error\n```\nContribute makes the contribution to launch.\n\n```go\nfunc (e ExecutableJAR) Plan() (buildpackplan.Plan, error)\n```\nPlan returns the dependency information for this application.\n\n```go\ntype Metadata struct {\n\t// Classpath is the classpath of the executable JAR.\n\tClassPath []string `mapstructure:\"classpath\" properties:\",default=\" toml:\"classpath\"`\n\n\t// MainClass is the Main-Class of the executable JAR.\n\tMainClass string `mapstructure:\"main-class\" properties:\"Main-Class,default=\" toml:\"main-class\"`\n}\n```\nMetadata describes the metadata\n\n```go\nfunc NewMetadata(application application.Application, logger logger.Logger) (Metadata, bool, error)\n```\nNewMetadata creates a new Metadata returning false if Main-Class is not defined.\n\n```go\nfunc (Metadata) Identity() (string, string)\n```\n\n","path":"github.com/cloudfoundry/jvm-application-cnb/executablejar","name":"executablejar","synopsis":"","isRedistributable":true}
