NAME

Meta::Baseline::Lang::Java - doing Java specific stuff in the baseline.

COPYRIGHT

Copyright (C) 2001, 2002 Mark Veltzer; All rights reserved.

LICENSE

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA.

DETAILS

MANIFEST: Java.pm
PROJECT: meta
VERSION: 0.40

SYNOPSIS

package foo;
use Meta::Baseline::Lang::Java qw();
my($resu)=Meta::Baseline::Lang::Java::env();

DESCRIPTION

This package contains stuff specific to Java in the baseline: 0. produce code to set Java specific vars in the baseline. 1. check Java files for correct Java syntax in the baseline. 0. produce minimal java usage. 1. check no numbers are in the code. 2. check correct customs for package names (all lower letter alpha caracters and numbers with no special chars separatered by "."). etc...

FUNCTIONS

get_jars()
env()
c2deps($)
c2clas($)
c2html($)
c2chec($)
class2file($)
my_file($$)
TEST($)

FUNCTION DOCUMENTATION

get_jars()

This routine return a path segment to be added to java tool running in order for all baseline jars to be considered.

env()

This routine returns a hash of environment variables which are essential for running Java binaries.

c2deps($)

This routine will produce a file desribing the dependencies of the java source file to the cook mechanism. This method returns an error code.

c2clas($)

This routine will compile the java file. This method returns an error code.

c2html($)

This routine will create an html document from the java source file using java doc. This method returns an error code.

c2chec($)

This routine will apply different validataion methods on the source code which the compiler does not apply. This method returns an error code.

class2file($)

This method will convert a java class name to a file.

my_file($$)

This method will return true if the file received should be handled by this module.

TEST($)

Test suite for this module. This currently just runs the Env stuff and checks whats the output bash script.