OpenMake Meister

GetLocalClassPath ( $HOME_ENV )

 

In situations where you are given a "home" environment variable for a tool such as "JAVA_HOME", "ANT_HOME", or "TOMCAT_HOME", you may want to get the local classpath needed to run that application. This function gets the local classpath for that tool by concatenating all Jar files in the $HOME_ENV\lib directory.  No consideration is given for ordering.

 

 USAGE:

 $HOME_ENV = $ENV{ANT_HOME};

 $AntClasspath =

    Openmake::SearchPath->new( GetLocalClassPath( $HOME_ENV ) );

 

RETURNS:

Array of path-delimited strings of .jar and .zip files found in the    $HOME_ENV/lib