org.schmant.plugin.eclipse.java
Class EclipseJavaProjectImpl
java.lang.Object
org.schmant.project.AbstractProject<T>
org.schmant.project.AbstractJavaProject<EclipseWorkspace>
org.schmant.plugin.eclipse.java.EclipseJavaProjectImpl
- All Implemented Interfaces:
- JavaProject, Project
public class EclipseJavaProjectImpl
- extends AbstractJavaProject<EclipseWorkspace>
This object contains information about an Eclipse Java project. In addition
to the properties defined by JavaProject
,
this object has a few Eclipse Java project-specific properties.
- Since:
- 0.5
- Author:
- Karl Gustafsson
- Task_package:
- org.schmant.task.base
EclipseJavaProjectImpl
public EclipseJavaProjectImpl(String name,
EclipseWorkspace wos,
EntityRepository wosDir,
DirectoryView projDir,
Set<DirectoryView> sourceDirs,
List<JavaProjectClasspathEntry> buildClasspath,
JdkCompliance jdkCompliance)
throws IOException
- Create an Eclipse Java project object.
- Parameters:
name
- The name of the project.wos
- The workspace object. No methods may be called on this object.
(See EclipseWorkspaceInfoCollector.collect(EclipseWorkspace)
).wosDir
- The workspace root directory.projDir
- The project's directory.sourceDirs
- Source directories.buildClasspath
- Build classpath.jdkCompliance
- JDK compliance information. This is either parsed
from the project configuration or the workspace's default JDK compliance.
- Throws:
IOException
- On I/O errors.
getJdkCompliance
public JdkCompliance getJdkCompliance()
- Get the project's JDK compliance.
- Returns:
- The project's JDK compliance. If the project does not have
custom JDK compliance settings, this returns the workspace's JDK
compliance settings. If neither the project, nor the workspace have JDK
compliance settings, this method returns
null
. - Since:
- 1.1
toString
public String toString()
- Overrides:
toString
in class Object