نديم ابن ﺤﻣﻮﺪﺓ الخمير - Nadim Khemir > PerlBuildSystem > doc/Cookbook/Java/simple_java_jar/Pbsfile.pl

Download:
PerlBuildSystem-0.44.tar.gz

Annotate this POD

CPAN RT

New  4
Open  2
View/Report Bugs
Source  

Simple Java build classes and add them to a jar file

Targets

COOKBOOK FOR JAVA ^

We let PBS know that .java and .txt files are considered source code.

Rules ^

all

We declare a rule to match the all target. This is a conveniance rule as we could build all classes directly from the command line.

jar-dist

Rule jar-dist matches a target named classes.jar and declares a dependency to a matching .class file and Manifest.txt file.

classes

Rule classes matches any taget that ends with .class and declares a dependency to a matching .java file.

The javac command is passed the path of the file to build and the .java file.

syntax highlighting: