Skip to content
This repository has been archived by the owner on Nov 24, 2020. It is now read-only.
/ buildrizpack Public archive

A buildr plugin contributing a new packaging method to package your project as a IzPack installer.

License

Notifications You must be signed in to change notification settings

ngiger/buildrizpack

Repository files navigation

BuildrIzPack

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.

Getting Started

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

Useages

There are the following different useages.

  1. 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)

  2. Specifiy a IzPack installer-XML via the the input methods

  3. Specify the XML-content of the various elements of the IzPack installation

Example 1

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

Example 2

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

Example 3

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

Living On the Edge

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]

License

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.

About

A buildr plugin contributing a new packaging method to package your project as a IzPack installer.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages