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

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

public class EclipseClasspathExtractor
extends java.lang.Object

This class is able to collect all classpath elements that are defined by an Eclipse project. That is mainly the contents of the .classpath file and those of the projects the project depends on. It is also capable to provide the necessary classpath variables as they are defined in the workspace of the project.

Version:
2.0
Author:
M.Duchrow

Constructor Summary
EclipseClasspathExtractor(java.lang.String workspacePath)
          Initialize the new instance with an optional workspace location that would be used to get access to the ".metadata" folder.
 
Method Summary
 java.util.List<EclipseClasspathEntry> getAllClasspathEntriesFor(java.lang.String classpathFilename)
          Returns a list of EclipseClasspathEntry objects that are all entries from the given file and those inherited from other projects.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EclipseClasspathExtractor

public EclipseClasspathExtractor(java.lang.String workspacePath)
Initialize the new instance with an optional workspace location that would be used to get access to the ".metadata" folder. If null is provided the workspace location will be derived from the project under the assumption that the project is located directly in the workspace.

Parameters:
workspacePath - The location of the eclipse workspace (might be null).
Method Detail

getAllClasspathEntriesFor

public java.util.List<EclipseClasspathEntry> getAllClasspathEntriesFor(java.lang.String classpathFilename)
                                                                throws java.io.IOException
Returns a list of EclipseClasspathEntry objects that are all entries from the given file and those inherited from other projects.

Throws:
java.io.IOException - In any case of problems with reading eclipse classpath data