|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.schmant.plugin.eclipse.java.EclipseJavaProjectCreatorPlugin
public class EclipseJavaProjectCreatorPlugin
This EclipseProjectCreatorPlugin
knows how to create
EclipseJavaProjectImpl
objects for Java projects.
Field Summary |
---|
Fields inherited from interface org.schmant.project.eclipse.EclipseProjectCreatorPlugin |
---|
ECLIPSE_PROJECT_CREATOR_PLUGIN_NAME |
Constructor Summary | |
---|---|
EclipseJavaProjectCreatorPlugin()
|
Method Summary | |
---|---|
protected ClasspathFileParser |
createClasspathFileParser()
This is called by the constructor to create a ClasspathFileParser
. |
protected Project |
createEclipseProjectFromProjectInfo(EclipseWorkspace wos,
DirectoryView workspaceDir,
EclipseWorkspaceSettings settings,
EclipseWorkspaceConfiguration parsedSettings,
DirectoryView projDir,
EclipseProjectInfo pi)
Create a Project from information parsed from a .project
file. |
Project |
createProject(EclipseWorkspace wos,
DirectoryView workspaceDir,
EclipseWorkspaceSettings settings,
EclipseWorkspaceConfiguration parsedSettings,
DirectoryView projectDir)
Attempt to create a project from the contents of the supplied directory. |
protected ProjectFileParser |
createProjectFileParser()
This is called by the constructor to create a ProjectFileParser . |
protected ClasspathFileParser |
getClasspathFileParser()
|
protected ProjectFileParser |
getProjectFileParser()
Get the .project file parser. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EclipseJavaProjectCreatorPlugin()
Method Detail |
---|
protected ProjectFileParser createProjectFileParser()
ProjectFileParser
.
This implementation creates a ProjectFileParserImpl
instance.
Subclasses may override this method to create some other implementation.
.project
file parser.protected ClasspathFileParser createClasspathFileParser()
ClasspathFileParser
. This implementation creates a ClasspathFileParserImpl
instance.
Subclasses may override this method to create some other implementation.
.classpath
file parser.protected ProjectFileParser getProjectFileParser()
.project
file parser.
protected ClasspathFileParser getClasspathFileParser()
protected Project createEclipseProjectFromProjectInfo(EclipseWorkspace wos, DirectoryView workspaceDir, EclipseWorkspaceSettings settings, EclipseWorkspaceConfiguration parsedSettings, DirectoryView projDir, EclipseProjectInfo pi) throws IOException
Project
from information parsed from a .project
file.
This can be overridden by subclasses to introduce new kinds of projects.
wos
- The Eclipse workspace. Cannot call any methods on this object
(see EclipseWorkspaceInfoCollector.collect(EclipseWorkspace)
projDir
- The project directory.pi
- Data parsed from the .project
file using this class'
ProjectFileParser
.
Project
or null
if the project should
be ignored.
IOException
public Project createProject(EclipseWorkspace wos, DirectoryView workspaceDir, EclipseWorkspaceSettings settings, EclipseWorkspaceConfiguration parsedSettings, DirectoryView projectDir)
EclipseProjectCreatorPlugin
createProject
in interface EclipseProjectCreatorPlugin
wos
- The Eclipse workspace that is being built.workspaceDir
- The workspace's root directory. Not locked when this
method is called unless locked by the build script.settings
- Settings for the workspace. This may be null
.parsedSettings
- Settings for the workspace parsed from the
workspace metadata. User-supplied settings in the settings
object
(if any) should override these settings.projectDir
- The project directory. Not locked when this method is
called unless locked by the build script.
Project
if one can be created from the contents in the
directory, otherwise null
. If null
is returned, the info
collector will let the next registered project creator plugin try to
create a project.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |