13.2 Jar - Reference Documentation
Authors: Andres Almiray
Version: 1.2.0
13.2 Jar
This is the simplest packaging mode available. It will package the application in a single jar file, by unpacking all dependencies and packing them once more in a sole file, so place close attention to potential duplicate entries, especially those found inside META-INF.griffon package jarname- override the name of the generated jar file.
griffon.jars.jarName- name of the application's main jar file.griffon.dist.jar.nozip- skip zipping the distribution if set to true.
| Strategy | Description |
|---|---|
| Skip | Do not perform any merge. Duplicate is discarded. |
| Replace | Duplicate is preferred and overwrites previous. |
| Append | Duplicate is appended at the end of previous. |
| Merge | Common lines found in duplicate are discarded. New lines found in duplicate are appended at the end. |
| MergeManifest | Duplicate keys override the previous ones. New keys are added to the merged result. |
| MergeProperties | Duplicate keys override the previous ones. New keys are added to the merged result. |
| MergeGriffonArtifacts | Merges artifact definitions per type. |
BuildConfig.groovy like thisgriffon {
jars {
merge = [
'.*.xml': org.codehaus.griffon.ant.taskdefs.FileMergeTask.Replace
]
}
}| Regexp | MergeStrategy |
|---|---|
| META-INF/griffon-artifacts.properties | MergeGriffonArtifacts |
| META-INF/MANIFEST.MF | MergeManifest |
| META-INF/services/.* | Merge |
| .*.properties | MergeProperties |