alma::acs::makesupport::JarSourceExtractorRunner Class Reference

Collaboration diagram for alma::acs::makesupport::JarSourceExtractorRunner:
Collaboration graph
[legend]

List of all members.

Static Public Member Functions

static void main (String[] args)

Static Public Attributes

static final String PROPERTY_EXTRACT_ONLY_GENERATED_JARS = "jarExtract.onlyGeneratedJars"
static final String Manifest_Attr_ACSGeneratedFromFile = "ACS-Generated-FromFile"

Static Package Functions

static boolean needsProcessing (JarFile jarFile) throws IOException
static File[] getDirectories (String[] mainArgs)

Detailed Description

Creates a jar file with java sources copied from inside jar files that are found in a number of given directories.

The java source files are allowed to be stored with a prefix path "src" or "test" inside the jar files. The constructed jar file will not use any prefix path though.

Author:
hsommer created Sep 23, 2003 10:50:00 AM

Member Function Documentation

static File [] alma::acs::makesupport::JarSourceExtractorRunner::getDirectories ( String[]  mainArgs  )  [inline, static, package]

Identifies valid directories from the argument list.

Parameters:
mainArgs arguments supplied to main method; directories are given at indices 1...n
Returns:
the valid directories as File objects
Exceptions:
Exception 

Referenced by main().

static void alma::acs::makesupport::JarSourceExtractorRunner::main ( String[]  args  )  [inline, static]

First argument must be the jar file name to which all Java sources

Parameters:
args 

References alma::acs::makesupport::JarSourceExtractor::extractJavaSourcesToJar(), alma::acs::makesupport::AcsFileFinder::getAllFiles(), getDirectories(), and needsProcessing().

static boolean alma::acs::makesupport::JarSourceExtractorRunner::needsProcessing ( JarFile  jarFile  )  throws IOException [inline, static, package]

Encapsulates evaluation of possible flags (properties) that may restrict the set of jar files to be processed for source extraction, for example based on the manifest information.

Currently only looks at the boolean property jarExtract.onlyGeneratedJars.

Parameters:
jarFile 
Returns:
Exceptions:
IOException 

References Manifest_Attr_ACSGeneratedFromFile, and PROPERTY_EXTRACT_ONLY_GENERATED_JARS.

Referenced by main().


Member Data Documentation

Referenced by needsProcessing().

Referenced by needsProcessing().


The documentation for this class was generated from the following file:

Generated by  doxygen 1.6.2