Kojun::Makescript::Java - Java specific Makescript
use Kojun::Makescript::Java qw/:all/;
javac_all
(SOURCEPATH => "./src",
DIR => "./classes",
JAVAC_OPTIONS => qq(-classpath "./xyz;$ENV{CLASSPATH}"),
REALM => 'PACKAGE',
);
exit;
use Kojun::Makescript::Java qw/:all/;
jar_all
(SOURCEPATH => "./src", DIR => "./classes",
JAVAC_OPTIONS => qq(-classpath "./xyz;$ENV{CLASSPATH}"),
REALM => 'SOURCEPATH',
JAR_FILE => "./lib/all.jar",
);
exit;
use Kojun::Makescript::Java qw/:all/;
javadoc_all
(SOURCEPATH => "./src",
JAVADOC_OPTIONS => qq(-classpath "./xyz;$ENV{CLASSPATH}"),
JAVADOC_PATH => "./api",
);
exit;
Java specific application of Kojun::Makescript. This module will be bundled with Kojun::Makescript.
This function finds all .java under SOURCEPATH, and compile them into DIR. The REALM parameter specifys how to invoke javac command. It takes one of the following values:
CLASS javac sourcePath/packagePath/UpdatedClass.java
PACKAGE javac sourcePath/packagePath/*.java
SOURCEPATH (experimental beta version) javac sourcePath/package1Path/*.java sourcePath/package2Path/*.java ...
This function finds all updated .java under SOURCEPATH, compile them into DIR, and archive all .class in DIR into a .jar named as JAR_FILE.
[Beta release] This function finds all packages under SOURCEPATH, and invoke javadoc command for them.
Kojun Ueno, k.ueno@psynet.net http://kojun.webalias.com/
Copyright (c) 2000 Kojun Ueno. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
And you may redistribute it as a part of your project archive. The .pm contains this license term, so don't worry.
Kojun::Makescript, javac, jar, javadoc, jakarta-Ant