Class Project
- java.lang.Object
-
- org.gradle.plugins.ide.internal.generator.AbstractPersistableConfigurationObject
-
- org.gradle.plugins.ide.internal.generator.XmlPersistableConfigurationObject
-
- org.gradle.plugins.ide.idea.model.Project
-
- All Implemented Interfaces:
org.gradle.plugins.ide.internal.generator.generator.PersistableConfigurationObject
public class Project extends org.gradle.plugins.ide.internal.generator.XmlPersistableConfigurationObjectRepresents the customizable elements of an ipr (via XML hooks everything of the ipr is customizable).
-
-
Constructor Summary
Constructors Constructor Description Project(org.gradle.internal.xml.XmlTransformer xmlTransformer, java.lang.Object pathFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddModulePath(java.io.File moduleFile)Adds a module to the module paths included in the Project.voidconfigure(java.util.List<IdeaModule> modules, java.lang.String jdkName, IdeaLanguageLevel languageLevel, JavaVersion bytecodeVersion, java.util.Collection<java.lang.String> wildcards, java.util.Collection<ProjectLibrary> projectLibraries, java.lang.String vcs)booleanequals(java.lang.Object o)protected java.lang.StringgetDefaultResourceName()JdkgetJdk()Represent the jdk information of the project java sdk.java.util.Set<Path>getModulePaths()A set ofPathinstances pointing to the modules contained in the ipr.java.util.Set<ProjectLibrary>getProjectLibraries()The project-level libraries of the IDEA project.java.lang.StringgetVcs()The vcs used by the project.java.util.Set<java.lang.String>getWildcards()A set of wildcard string to be included/excluded from the resources.inthashCode()protected voidload(Node xml)voidsetJdk(Jdk jdk)voidsetModulePaths(java.util.Set<Path> modulePaths)voidsetProjectLibraries(java.util.Set<ProjectLibrary> projectLibraries)voidsetVcs(java.lang.String vcs)voidsetWildcards(java.util.Set<java.lang.String> wildcards)protected voidstore(Node xml)-
Methods inherited from class org.gradle.plugins.ide.internal.generator.XmlPersistableConfigurationObject
findFirstChildNamed, findFirstChildWithAttributeValue, findFirstWithAttributeValue, findOrCreateFirstChildNamed, findOrCreateFirstChildWithAttributeValue, getChildren, getXml, load, store, transformAction, transformAction
-
-
-
-
Method Detail
-
getModulePaths
public java.util.Set<Path> getModulePaths()
A set ofPathinstances pointing to the modules contained in the ipr.
-
setModulePaths
public void setModulePaths(java.util.Set<Path> modulePaths)
-
addModulePath
public void addModulePath(java.io.File moduleFile)
Adds a module to the module paths included in the Project.- Parameters:
moduleFile- path to the module's module file- Since:
- 4.0
-
getWildcards
public java.util.Set<java.lang.String> getWildcards()
A set of wildcard string to be included/excluded from the resources.
-
setWildcards
public void setWildcards(java.util.Set<java.lang.String> wildcards)
-
getJdk
public Jdk getJdk()
Represent the jdk information of the project java sdk.
-
setJdk
public void setJdk(Jdk jdk)
-
getVcs
public java.lang.String getVcs()
The vcs used by the project.
-
setVcs
public void setVcs(java.lang.String vcs)
-
getProjectLibraries
public java.util.Set<ProjectLibrary> getProjectLibraries()
The project-level libraries of the IDEA project.
-
setProjectLibraries
public void setProjectLibraries(java.util.Set<ProjectLibrary> projectLibraries)
-
getDefaultResourceName
protected java.lang.String getDefaultResourceName()
- Specified by:
getDefaultResourceNamein classorg.gradle.plugins.ide.internal.generator.AbstractPersistableConfigurationObject
-
configure
public void configure(java.util.List<IdeaModule> modules, java.lang.String jdkName, IdeaLanguageLevel languageLevel, JavaVersion bytecodeVersion, java.util.Collection<java.lang.String> wildcards, java.util.Collection<ProjectLibrary> projectLibraries, java.lang.String vcs)
-
load
protected void load(Node xml)
- Overrides:
loadin classorg.gradle.plugins.ide.internal.generator.XmlPersistableConfigurationObject
-
store
protected void store(Node xml)
- Overrides:
storein classorg.gradle.plugins.ide.internal.generator.XmlPersistableConfigurationObject
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-