Interface IdeaContentRoot
public interface IdeaContentRoot
Contains content root information.
-
Method Summary
Modifier and TypeMethodDescriptionThe set of excluded directories.DomainObjectSet<? extends IdeaSourceDirectory> Deprecated.DomainObjectSet<? extends IdeaSourceDirectory> Deprecated.UsegetTestDirectories()in combination withIdeaSourceDirectory.isGenerated()instead.DomainObjectSet<? extends IdeaSourceDirectory> The set of resource directories.The content root directory.DomainObjectSet<? extends IdeaSourceDirectory> The set of source directories.DomainObjectSet<? extends IdeaSourceDirectory> The set of test source directories.DomainObjectSet<? extends IdeaSourceDirectory> The set of test resource directories.
-
Method Details
-
getRootDirectory
File getRootDirectory()The content root directory. -
getSourceDirectories
DomainObjectSet<? extends IdeaSourceDirectory> getSourceDirectories()The set of source directories. -
getGeneratedSourceDirectories
@Deprecated @Incubating DomainObjectSet<? extends IdeaSourceDirectory> getGeneratedSourceDirectories()Deprecated.UsegetSourceDirectories()in combination withIdeaSourceDirectory.isGenerated()instead.The set of generated source directories. This is a subset of those directories returned bygetSourceDirectories().- Since:
- 2.2
-
getTestDirectories
DomainObjectSet<? extends IdeaSourceDirectory> getTestDirectories()The set of test source directories. -
getGeneratedTestDirectories
@Deprecated @Incubating DomainObjectSet<? extends IdeaSourceDirectory> getGeneratedTestDirectories()Deprecated.UsegetTestDirectories()in combination withIdeaSourceDirectory.isGenerated()instead.The set of generated test directories. This is a subset of those directories returned bygetTestDirectories().- Since:
- 2.2
-
getResourceDirectories
@Incubating DomainObjectSet<? extends IdeaSourceDirectory> getResourceDirectories() throws UnsupportedMethodExceptionThe set of resource directories. NOTE: The resources directory is only available for Java projects, otherwise it is empty set.- Throws:
UnsupportedMethodException- For Gradle versions older than 4.7 where this method is not supported.- Since:
- 4.7
-
getTestResourceDirectories
@Incubating DomainObjectSet<? extends IdeaSourceDirectory> getTestResourceDirectories() throws UnsupportedMethodExceptionThe set of test resource directories. NOTE: The test resources directory is only available for Java projects, otherwise it is empty set.- Throws:
UnsupportedMethodException- For Gradle versions older than 4.7 where this method is not supported.- Since:
- 4.7
-
getExcludeDirectories
-
getSourceDirectories()in combination withIdeaSourceDirectory.isGenerated()instead.