The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Java::Makefile - Script to generate Makefile for building Java projects into a single standalone jar

VERSION

1.00

SYNOPSIS

This is the Git repository for the Perl CPAN module Java::Makefile.

It is designed to be a quick and painless way to create standalone Jar files for Java projects from some simple XML declaring the classes in the project and the jars that are depended upon.

Jars are injected directly into the build jar file, and their contents are accessible to the built Java project by way of the "jarinjarloader".

DESCRIPTION

Basic Example

generate_makefile.pl

    #!/usr/bin/perl -w
    use Java::Makefile;
    
    my $jm = Java::Makefile->new( config_file => 'makefile_specs.xml' );
    $jm->write_makefile();

makefile_spec.xml

    <xml>
      <output_jar>test_project.jar</output_jar>
      <source_folder>test_project</source_folder>
      
      <class name="Main" />
      
      <classpath>
        <jar>libraries/some_jar_you_need.jar</jar>
      </classpath>
    </xml>

LICENSE

    Copyright (C) 2015 David Helkowski
    Licensed under CC-BY-SA 4.0
    jarinjarloader licensed under EPL 1.0
    See LICENSE file for full details