A buildr plugin contributing a new packaging method to package your project as a IzPack installer.
This is for Buildr, the build system that lets you build like you code. see buildr.apache.org/
Some ideas/naming conventions were picked up from github.com/bmuschko/gradle-izpack-plugin.
This plugin provides a one-stop solution for packaging, distributing and deploying applications for the Java platform using IzPack (izpack.org/). Before using it, install it via
gem install BuildrIzPack
There are the following different useages.
-
Include one or more files and let the BuildrIzPack build a simple installer, where you may choose the installation path. Default langues is ‘eng’. The locales accepts an array of locale-identifiers (3-letters ISO code)
-
Specifiy a IzPack installer-XML via the the input methods
-
Specify the XML-content of the various elements of the IzPack installation
include one or more files and let the BuildrIzPack build a simple installer
require 'buildrizpack' Buildr::write "myProject/src/main/java/Hello.java", "public class Hello {}" define 'myProject' do package(:jar) package(:izpack).locales = ['eng', 'fra', 'deu'] package(:izpack).include(package(:jar)) end
Specifiy a IzPack installer-XML via the the input methods
require 'buildrizpack' define 'myProject' do package(:jar) # It is you responsability to specify correctly all dependencies!! package(:izpack).input = path_to(:sources, :main, :ressources, 'myInstaller.xml') package(:izpack) end
Specify the XML-content
require 'buildrizpack' Buildr::write "myProject/src/main/java/Hello.java", "public class Hello {}" define 'myProject' do package(:jar) package(:izpack).locales = ['eng', 'fra', 'deu'] package(:izpack).include(package(:jar)) end
You can check the latest sources via:
git clone git://github.com/ngiger/buildrizpack
To install BuildrIzPack locally from source:
cd buildrizpack rake install
If the cutting edge doesn’t work, make sure to check the CHANGELOG, to see which changes might have broken your build. To run all the test cases:
rake spec
If you have any questions or suggestions for improvements you may reach me via E-Mail to mail:[email protected]
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.