| |
|
| java.util.Vector org.objectweb.jonas.ear.lib.JarList
JarList | public class JarList extends Vector (Code) | | JOnAS Jar list This class provides a way for managing the class-path
dependency libraries.
author: Florent Benoit author: Ludovic Bert |
Method Summary | |
public void | add(String fileName) Add the specified file to the current list. | public URL[] | getURLs(String dirName) Get the URLs of all the JAR file list append to dirName.
Parameters: dirName - the name of the directory where we append the files. | public void | merge(JarList jarList) Merge the specified JarList to the current JarList without adding
duplicate entry. | public void | remove(JarList jarList) Remove all the entries contained in the jarList to the current jarList. | public void | setRelativePath(String path) Set the relative path of the current list. |
JarList | public JarList()(Code) | | Construct an instance of a JarList
|
JarList | public JarList(StringTokenizer st)(Code) | | Construct an instance of a JarList
Parameters: st - a String tokenizer |
JarList | public JarList(String[] strs)(Code) | | Construct an instance of a JarList
Parameters: strs - an array of files |
JarList | public JarList(Web[] wars)(Code) | | Construct an instance of a JarList with a wars Array
Parameters: wars - an array of war file |
add | public void add(String fileName)(Code) | | Add the specified file to the current list.
Parameters: fileName - the name of the file to add. |
getURLs | public URL[] getURLs(String dirName) throws JarListException(Code) | | Get the URLs of all the JAR file list append to dirName.
Parameters: dirName - the name of the directory where we append the files. the absolute URLs of the JAR files. throws: JarListException - if url are malformed |
merge | public void merge(JarList jarList)(Code) | | Merge the specified JarList to the current JarList without adding
duplicate entry.
Parameters: jarList - the list to merge. |
remove | public void remove(JarList jarList)(Code) | | Remove all the entries contained in the jarList to the current jarList.
Parameters: jarList - the jarList to remove. |
setRelativePath | public void setRelativePath(String path)(Code) | | Set the relative path of the current list. This is useful in the case of
an EAR file because the class-path is relative to the JAR file and not
the EAR file.
Parameters: path - the path for set the relative path |
|
|
|