Java::Makefile - Script to generate Makefile for building Java projects into a single standalone jar
1.00
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".
#!/usr/bin/perl -w use Java::Makefile; my $jm = Java::Makefile->new( config_file => 'makefile_specs.xml' ); $jm->write_makefile();
<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>
Copyright (C) 2015 David Helkowski Licensed under CC-BY-SA 4.0 jarinjarloader licensed under EPL 1.0 See LICENSE file for full details
To install Java::Makefile, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Java::Makefile
CPAN shell
perl -MCPAN -e shell install Java::Makefile
For more information on module installation, please visit the detailed CPAN module installation guide.