org.pf.tools.cda.core.classpath.eclipse
Class EclipseClasspathFileReader

java.lang.Object
  extended by org.pf.tools.cda.core.classpath.eclipse.EclipseClasspathFileReader

public class EclipseClasspathFileReader
extends java.lang.Object

A reader for Eclipse .classpath files

Version:
2.0
Author:
M.Duchrow

Constructor Summary
EclipseClasspathFileReader()
          Initialize the new instance with no explicit workspace directory.
EclipseClasspathFileReader(java.lang.String workspacePath)
          Initialize the new instance with an optional workspace directory.
 
Method Summary
 java.util.List readClasspathEntries(java.lang.String projectLocation)
          Tries to read the .classpath file at the given project location.
 java.util.List readClasspathEntriesFrom(java.lang.String classpathFilename)
          Tries to read the specified .classpath file.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EclipseClasspathFileReader

public EclipseClasspathFileReader()
Initialize the new instance with no explicit workspace directory.


EclipseClasspathFileReader

public EclipseClasspathFileReader(java.lang.String workspacePath)
Initialize the new instance with an optional workspace directory.

Method Detail

readClasspathEntries

public java.util.List readClasspathEntries(java.lang.String projectLocation)
                                    throws java.io.IOException
Tries to read the .classpath file at the given project location. Returns a list of EclipseClasspathEntry objects created from this file.

Parameters:
projectLocation - The file directory of the project
Throws:
java.io.IOException - In any case of problem with reading the .classpath data

readClasspathEntriesFrom

public java.util.List readClasspathEntriesFrom(java.lang.String classpathFilename)
                                        throws java.io.IOException
Tries to read the specified .classpath file. Returns a list of EclipseClasspathEntry objects created from this file.

Parameters:
classpathFilename - The path of the .classpath file to read in
Throws:
java.io.IOException - In any case of problem with reading the .classpath data