Package aQute.bnd.exporter.executable
Class ExecutableJarExporter
- java.lang.Object
-
- aQute.bnd.exporter.executable.ExecutableJarExporter
-
- All Implemented Interfaces:
Exporter
public class ExecutableJarExporter extends java.lang.Object implements Exporter
Exports a project or run file to an executable JAR.This exporter supports 2 types for backward compatibility. This exporter used the project launcher's execute function. However, there also was an -export instruction that used the
Project.pack(String)
method. This method was a bit more powerful. Since both exports were used, theEXECUTABLE_JAR
was used from Gradle and bndtools while theEXECUTABLE_PACK
was used from bnd build, we needed to handle them slightly differently since it is difficult to ensure backward compatibility.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
EXECUTABLE_JAR
static java.lang.String
EXECUTABLE_PACK
-
Constructor Summary
Constructors Constructor Description ExecutableJarExporter()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map.Entry<java.lang.String,Resource>
export(java.lang.String type, Project project, java.util.Map<java.lang.String,java.lang.String> options)
java.lang.String[]
getTypes()
static Jar
pack(Project project, java.lang.String profile)
-
-
-
Field Detail
-
EXECUTABLE_JAR
public static final java.lang.String EXECUTABLE_JAR
- See Also:
- Constant Field Values
-
EXECUTABLE_PACK
public static final java.lang.String EXECUTABLE_PACK
- See Also:
- Constant Field Values
-
-