
Public Member Functions | |
| BuildProperties (String folder) throws Exception | |
| String[] | getJars () throws Exception |
Public Attributes | |
| final Pattern | propertyPattern = Pattern.compile("\\s*jars.extra.classpath\\s*=\\s*") |
| final Pattern | jarPattern = Pattern.compile(".*jar") |
Static Public Attributes | |
| static final String | fileOfProperties = "build.properties" |
Private Member Functions | |
| void | generateListOfJars (File inF) throws Exception |
| String | getJarNames (String str) |
| void | removeDuplicates (Vector< String > v) |
Private Attributes | |
| final Vector< String > | classpathEntries = new Vector<String>() |
Read the list of jars from the build.properties.
| alma::acs::eclipse::utils::pluginbuilder::BuildProperties::BuildProperties | ( | String | folder | ) | throws Exception [inline] |
Constructor
| folder | The folder containing the fileOfProperties file. |
References classpathEntries, fileOfProperties, and generateListOfJars().
| void alma::acs::eclipse::utils::pluginbuilder::BuildProperties::generateListOfJars | ( | File | inF | ) | throws Exception [inline, private] |
Read the file and get the jars of the propertyPattern property.
Implementation note:
propertyPattern | inF | The file to read the list of jars from |
References classpathEntries, propertyPattern, and removeDuplicates().
Referenced by BuildProperties().
| String alma::acs::eclipse::utils::pluginbuilder::BuildProperties::getJarNames | ( | String | str | ) | [inline, private] |
Get the names of the jars in the passed string String
The names of the jars are intended as written in the fileOfProperties file like for example platform:/plugin/ACS_Utility_Jars/jacorb.jar.
A line can contain a comma separated list of jars
| str | The string containing a jar |
null if the string does not contain a jar References propertyPattern.
| String [] alma::acs::eclipse::utils::pluginbuilder::BuildProperties::getJars | ( | ) | throws Exception [inline] |
Return the name of the jars in the build.properties like for example acscommon.jar
References classpathEntries, and fileOfProperties.
| void alma::acs::eclipse::utils::pluginbuilder::BuildProperties::removeDuplicates | ( | Vector< String > | v | ) | [inline, private] |
Remove duplicated entries from the vector.
Given that the order of the entries is important, in case the same entry appears more then once, the last one will be removed.
| v |
Referenced by generateListOfJars().
final Vector<String> alma::acs::eclipse::utils::pluginbuilder::BuildProperties::classpathEntries = new Vector<String>() [private] |
The list of required jars read from the file.
The vector preserve the order i.e. item at position 0 contains the first read jar and so on.
The name of a jar is intended as written in the fileOfProperties file like for example platform:/plugin/ACS_Utility_Jars/jacorb.jar.
Note: the order of the entries in the file is important and therefore a Set can't be used.
Referenced by BuildProperties(), generateListOfJars(), and getJars().
final String alma::acs::eclipse::utils::pluginbuilder::BuildProperties::fileOfProperties = "build.properties" [static] |
The name of the file of eclipse properties to read
Referenced by BuildProperties(), and getJars().
| final Pattern alma::acs::eclipse::utils::pluginbuilder::BuildProperties::jarPattern = Pattern.compile(".*jar") |
The regular expression with the name of a jar
| final Pattern alma::acs::eclipse::utils::pluginbuilder::BuildProperties::propertyPattern = Pattern.compile("\\s*jars.extra.classpath\\s*=\\s*") |
The regular expression with the name of the property in the fileOfProperties listing the required jars.
Referenced by generateListOfJars(), and getJarNames().
1.6.2