All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.gradle.tooling.model.idea.IdeaContentRoot Maven / Gradle / Ivy

There is a newer version: 8.11.1
Show newest version
/*
 * Copyright 2011 the original author or authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.gradle.tooling.model.idea;

import org.gradle.api.Incubating;
import org.gradle.tooling.model.DomainObjectSet;
import org.gradle.tooling.model.UnsupportedMethodException;

import java.io.File;
import java.util.Set;

/**
 * Contains content root information.
 */
public interface IdeaContentRoot {

    /**
     * The content root directory.
     */
    File getRootDirectory();

    /**
     * The set of source directories.
     */
    DomainObjectSet getSourceDirectories();

    /**
     * The set of generated source directories. This is a subset of those directories returned by {@link #getSourceDirectories()}.
     *
     * @since 2.2
     * @deprecated Use {@link IdeaContentRoot#getSourceDirectories()} in combination with  {@link IdeaSourceDirectory#isGenerated()} instead.
     */
    @Deprecated
    DomainObjectSet getGeneratedSourceDirectories();

    /**
     * The set of test source directories.
     */
    DomainObjectSet getTestDirectories();

    /**
     * The set of generated test directories. This is a subset of those directories returned by {@link #getTestDirectories()}.
     *
     * @since 2.2
     * @deprecated Use {@link IdeaContentRoot#getTestDirectories()} in combination with  {@link IdeaSourceDirectory#isGenerated()} instead.
     */
    @Deprecated
    DomainObjectSet getGeneratedTestDirectories();

    /**
     * The 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
     */
    @Incubating
    DomainObjectSet getResourceDirectories() throws UnsupportedMethodException;


    /**
     * The 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
     */
    @Incubating
    DomainObjectSet getTestResourceDirectories() throws UnsupportedMethodException;

    /**
     * The set of excluded directories.
     */
    Set getExcludeDirectories();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy