alma::acs::eclipse::utils::jar::AcsFolders Class Reference

Collaboration diagram for alma::acs::eclipse::utils::jar::AcsFolders:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 AcsFolders (final String[] folders) throws Exception
File getJar (String name)

Private Member Functions

boolean checkFolder (File folder)

Private Attributes

final JarFolder[] folders

Detailed Description

AcsFolders helps getting jar files from a given set of folders.

ACS states that the jar file to use should be found by scanning an ordered set of folders, typically ../lib, $INTROOT/lib and so on. AcsFolders Takes an ordered set of folders and helps getting jar files.

Author:
acaproni

Constructor & Destructor Documentation

alma::acs::eclipse::utils::jar::AcsFolders::AcsFolders ( final String[]  folders  )  throws Exception [inline]

Build a AcsFolders object by passing the folder of jars

Exceptions:
Exception If the passed path are not valid or the folders do not exist

References checkFolder(), and folders.


Member Function Documentation

boolean alma::acs::eclipse::utils::jar::AcsFolders::checkFolder ( File  folder  )  [inline, private]

Check if the passed folder is valid.

Returns:
true if the folder is a valid ACS folder for INTROOT or ACSROOT

Referenced by AcsFolders().

File alma::acs::eclipse::utils::jar::AcsFolders::getJar ( String  name  )  [inline]

Get the file of the jar with the passed name by scanning the folders.

Parameters:
name The name of the jar like for example maci.jar
Returns:
The File of the jar or null if the file does not exist in the ACS folders.

References folders, and alma::acs::eclipse::utils::jar::JarFolder::getJar().

Referenced by alma::acs::eclipse::utils::pluginbuilder::PluginBuilder::addJars().


Member Data Documentation

The folder of jars

Referenced by AcsFolders(), and getJar().


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

Generated by  doxygen 1.6.2