NAME

Kojun::Makescript::Java - Java specific Makescript


SYNOPSIS

  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;


DESCRIPTION

Java specific application of Kojun::Makescript. This module will be bundled with Kojun::Makescript.


javac_all

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


jar_all

 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.


javadoc_all

 [Beta release]
 This function finds all packages under SOURCEPATH, and invoke javadoc command for them.


AUTHOR

 Kojun Ueno, k.ueno@psynet.net
 http://kojun.webalias.com/


COPYRIGHT

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.


SEE ALSO

Kojun::Makescript, javac, jar, javadoc, jakarta-Ant