MantisBT - CMake | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0012886 | CMake | CMake | public | 2012-01-19 06:00 | 2014-03-05 09:58 |
Reporter | Frank Glinka | ||||
Assigned To | Brad King | ||||
Priority | normal | Severity | feature | Reproducibility | N/A |
Status | closed | Resolution | fixed | ||
Platform | OS | OS Version | |||
Product Version | CMake 2.8.7 | ||||
Target Version | CMake 3.0 | Fixed in Version | CMake 3.0 | ||
Summary | 0012886: Add a manifest or main-class file to the created jar | ||||
Description | Hello, the attached patch introduces two optional options to the add_jar function: 1) CMAKE_JAVA_MANIFEST To include name : value attribute pairs from a manifest file in the created jar at META-INF/MANIFEST.MF you can set the manifest file with: set(CMAKE_JAVA_MANIFEST mymanifest.mf) add_jar(foobar foobar.java) 2) CMAKE_JAVA_EXECUTABLE To set a class as the application entry point for stand-alone applications bundled into an executable jar you can set its name with: set(CMAKE_JAVA_EXECUTABLE foo/Main) add_jar(foobar foo/Main.java) The latter one was wasn't my priority but I included it as it was easy to realize along the first patch. It is easier to use for people only wishing to create an executable jar than achieving the same by creating a manifest file. Regards, Frank P.S. The corresponding discussion for this patch on the mailing list can be found here: http://www.cmake.org/pipermail/cmake/2011-December/048015.html [^] | ||||
Steps To Reproduce | |||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | java-manifest-executable-option.patch (4,336) 2012-01-19 06:00 https://public.kitware.com/Bug/file/4196/java-manifest-executable-option.patch 0001-Add-MANIFEST-option-to-add_jar.patch (4,774) 2013-09-25 06:11 https://public.kitware.com/Bug/file/4887/0001-Add-MANIFEST-option-to-add_jar.patch | ||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2012-01-19 06:00 | Frank Glinka | New Issue | |||
2012-01-19 06:00 | Frank Glinka | File Added: java-manifest-executable-option.patch | |||
2012-08-11 21:09 | David Cole | Status | new => backlog | ||
2012-08-11 21:09 | David Cole | Note Added: 0030352 | |||
2013-09-25 06:11 | sebp | File Added: 0001-Add-MANIFEST-option-to-add_jar.patch | |||
2013-09-25 06:12 | sebp | Note Added: 0033884 | |||
2013-09-26 08:15 | Brad King | Note Added: 0033896 | |||
2013-09-26 08:19 | sebp | Note Added: 0033898 | |||
2013-09-26 08:44 | Brad King | Note Added: 0033899 | |||
2013-09-26 08:45 | Brad King | Assigned To | => Brad King | ||
2013-09-26 08:45 | Brad King | Status | backlog => assigned | ||
2013-09-26 08:45 | Brad King | Target Version | => CMake 3.0 | ||
2013-09-26 08:56 | sebp | Note Added: 0033900 | |||
2013-09-26 09:08 | Brad King | Note Added: 0033901 | |||
2013-09-26 09:08 | Brad King | Status | assigned => resolved | ||
2013-09-26 09:08 | Brad King | Resolution | open => fixed | ||
2013-09-26 09:08 | Brad King | Fixed in Version | => CMake 3.0 | ||
2014-03-05 09:58 | Robert Maynard | Note Added: 0035270 | |||
2014-03-05 09:58 | Robert Maynard | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|