grunt-java-jar
generate a jar with provided manifest entries and list of files
Getting Started
This plugin requires Grunt ~0.4.5
If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:
npm install grunt-java-jar --save-dev
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
grunt;
The "java_jar" task
Overview
In your project's Gruntfile, add a section named java_jar
to the data object passed into grunt.initConfig()
.
grunt;
Options
options.separator
Type: String
Default value: ', '
A string value that is used to do something with whatever.
options.punctuation
Type: String
Default value: '.'
A string value that is used to do something else with whatever else.
Usage Examples
Create a Jar with Manifest Entries
We will provide manifest entries of the jar as a javascript object. The plugin will create a MANIFEST.MF file and call jar command to include this file as its MANIFEST. You can override the MANIFEST file name and the separator between each key-value pair
grunt;
Create a Jar without Manifest Entries
In this example, we dont provide any manifestEntries option and still the jar command completes by generating an empty MANIFEST file
grunt;
Contributing
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.
Release History
(Nothing yet)