public class EclipseClasspathExtractor
extends java.lang.Object
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
protected org.pfsw.util.CollectionUtil |
coll() |
protected void |
collectClasspathEntriesFromProject(java.util.List<EclipseClasspathEntry> allEntries,
java.io.File projectDir,
boolean exportedOnly) |
protected java.util.Properties |
extractClasspathVariables(java.util.Properties settings) |
protected org.pfsw.file.FileUtil |
fileUtil() |
protected java.util.List<EclipseClasspathEntry> |
filterEntries(java.util.List<EclipseClasspathEntry> entries,
EclipseClasspathEntryFilter filter)
Returns a list with all entries that match the specified filter
|
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.
|
protected java.lang.String |
getWorkspacePath() |
protected java.util.Properties |
readClasspathVariables(java.io.File workspaceFolder) |
protected void |
replaceVariables(java.util.List<EclipseClasspathEntry> classpathEntries,
java.util.Properties variables) |
protected void |
setWorkspacePath(java.lang.String newValue) |
protected boolean |
skipDuplicateContainers() |
protected void |
sortEntries(java.util.List<EclipseClasspathEntry> entries)
Moves the output entry up to the place where the source entries are
|
protected org.pfsw.text.StringUtil |
str() |
public EclipseClasspathExtractor(java.lang.String workspacePath)
workspacePath
- The location of the eclipse workspace (might be null).protected java.lang.String getWorkspacePath()
protected void setWorkspacePath(java.lang.String newValue)
public java.util.List<EclipseClasspathEntry> getAllClasspathEntriesFor(java.lang.String classpathFilename) throws java.io.IOException
java.io.IOException
- In any case of problems with reading eclipse classpath dataprotected void collectClasspathEntriesFromProject(java.util.List<EclipseClasspathEntry> allEntries, java.io.File projectDir, boolean exportedOnly) throws java.io.IOException
java.io.IOException
protected void replaceVariables(java.util.List<EclipseClasspathEntry> classpathEntries, java.util.Properties variables)
protected java.util.Properties readClasspathVariables(java.io.File workspaceFolder) throws java.io.IOException
java.io.IOException
protected java.util.Properties extractClasspathVariables(java.util.Properties settings)
protected java.util.List<EclipseClasspathEntry> filterEntries(java.util.List<EclipseClasspathEntry> entries, EclipseClasspathEntryFilter filter)
protected void sortEntries(java.util.List<EclipseClasspathEntry> entries)
protected boolean skipDuplicateContainers()
protected org.pfsw.util.CollectionUtil coll()
protected org.pfsw.file.FileUtil fileUtil()
protected org.pfsw.text.StringUtil str()