Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Programming > Libraries

    Java::Build 0.05

    Download button

    No screenshots available
    Downloads: 334  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Phil Crow | More programs
    Perl Artistic License / FREE
    April 21st, 2007, 02:05 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    Java::Build description

    Java::Build is a family of modules which you can use instead of Ant.

    Java::Build is a family of modules which you can use instead of Ant.

    SYNOPSIS

    use Java::Build::JVM; # access to the javac compiler in one jvm
    use Java::Build::Tasks; # some helpful methods similar to Ant tasks

    my $source_files = build_file_list(
    BASE_DIR => $some_path,
    INCLUDE_PATTERNS => [ qr/.java$/ ],
    );
    my $dirty_sources = what_needs_compiling(
    SOURCE_FILE_LIST => $source_files,
    );
    if (@$dirty_sources) {
    my $compiler = Java::Ant::JVM->getCompiler();
    $compiler->destination($base_dir);
    $compiler->classpath($base_dir);
    $compiler->compile($dirty_sources);

    my $class_files = build_file_list(
    BASE_DIR => $some_path,
    INCLUDE_PATTERNS => [ qr/.class$/ ],
    EXCLUDE_PATTERNS => [ qr/Test/ ],
    EXCLUDE_DEFAULTS => 1,
    STRIP_BASE_DIR => 1,
    );
    jar(
    JAR_FILE => $jar_file_name,
    FILE_LIST => $class_files,
    BASE_DIR => $some_path,
    );
    }

    ABSTRACT

    This family of modules helped me move away from Ant to a proper scripting language, namely Perl. With it you can use a single JVM for compiling your java programs. It provides many useful methods to help you build lists of files, package them with jar, etc. Currently the modules are unix centric. If you make them work elsewhere, please send in patches.

    Product's homepage

    Requirements:

    · Perl
    · Inline
    · Inline::Java
    · Carp
    · File::Find
    · Cwd
    · File::Temp
    · Exporter

      


    TAGS:

    Ant modules | Java build | Perl module | Java::Build | Ant | Java

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM