java.lang.Object | |
↳ | com.atlassian.plugin.test.PluginJarBuilder |
Builds a plugin jar, including optionally compiling simple Java code
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates the builder
| |||||||||||
Creates the builder
| |||||||||||
Creates the builder
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Adds a file to the jar@return
| |||||||||||
Adds a resource in the jar as lines.
| |||||||||||
Adds a Java class in source form.
| |||||||||||
Adds a resource in the jar from a string
| |||||||||||
Builds a jar file from the provided information.
| |||||||||||
Builds a jar file from the provided information.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Creates the builder
Creates the builder
name | The plugin name |
---|
Adds a file to the jar@return
path | The path for the entry |
---|---|
file | The file to add |
IOException |
---|
Adds a resource in the jar as lines. Single quotes are converted to double quotes.
path | The path for the jar entry |
---|---|
lines | The contents of the file to create |
Adds a Java class in source form. Will compile the source code.
className | The class name |
---|---|
code | The code to compile |
Exception |
---|
Adds a resource in the jar from a string
path | The path for the jar entry |
---|---|
contents | The contents of the file to create |
Builds a jar file from the provided information. The file name is not guarenteed to match the jar name, as it is created as a temporary file.
IOException |
---|
Builds a jar file from the provided information. The file name is not guarenteed to match the jar name, as it is created as a temporary file.
baseDir | The base directory for generated plugin files |
---|
IOException |
---|