Search in sources :

Example 1 with SourceRootDescriptor

use of org.elixir_lang.jps.builder.SourceRootDescriptor in project intellij-elixir by KronicDeth.

the class Target method computeRootDescriptors.

@NotNull
@Override
public List<SourceRootDescriptor> computeRootDescriptors(JpsModel model, ModuleExcludeIndex index, IgnoredFileIndex ignoredFileIndex, BuildDataPaths dataPaths) {
    List<SourceRootDescriptor> result = new ArrayList<SourceRootDescriptor>();
    JavaSourceRootType type = isTests() ? JavaSourceRootType.TEST_SOURCE : JavaSourceRootType.SOURCE;
    for (JpsTypedModuleSourceRoot<JavaSourceRootProperties> root : myModule.getSourceRoots(type)) {
        result.add(new SourceRootDescriptor(root.getFile(), this));
    }
    return result;
}
Also used : SourceRootDescriptor(org.elixir_lang.jps.builder.SourceRootDescriptor) JavaSourceRootType(org.jetbrains.jps.model.java.JavaSourceRootType) JavaSourceRootProperties(org.jetbrains.jps.model.java.JavaSourceRootProperties) NotNull(org.jetbrains.annotations.NotNull)

Aggregations

SourceRootDescriptor (org.elixir_lang.jps.builder.SourceRootDescriptor)1 NotNull (org.jetbrains.annotations.NotNull)1 JavaSourceRootProperties (org.jetbrains.jps.model.java.JavaSourceRootProperties)1 JavaSourceRootType (org.jetbrains.jps.model.java.JavaSourceRootType)1