Search in sources :

Example 6 with JavaSourceRootType

use of org.jetbrains.jps.model.java.JavaSourceRootType in project intellij-community by JetBrains.

the class JpsContentEntry method addSourceFolder.

private SourceFolder addSourceFolder(final String url, boolean isTestSource, String packagePrefix) {
    final JavaSourceRootType rootType = isTestSource ? JavaSourceRootType.TEST_SOURCE : JavaSourceRootType.SOURCE;
    JavaSourceRootProperties properties = JpsJavaExtensionService.getInstance().createSourceRootProperties(packagePrefix);
    return addSourceFolder(url, rootType, properties);
}
Also used : JavaSourceRootType(org.jetbrains.jps.model.java.JavaSourceRootType) JavaSourceRootProperties(org.jetbrains.jps.model.java.JavaSourceRootProperties)

Aggregations

JavaSourceRootType (org.jetbrains.jps.model.java.JavaSourceRootType)6 JavaSourceRootProperties (org.jetbrains.jps.model.java.JavaSourceRootProperties)4 NotNull (org.jetbrains.annotations.NotNull)3 JpsContentEntry (com.intellij.project.model.impl.module.content.JpsContentEntry)1 JpsSourceFolder (com.intellij.project.model.impl.module.content.JpsSourceFolder)1 File (java.io.File)1 SourceRootDescriptor (org.elixir_lang.jps.builder.SourceRootDescriptor)1 Url (org.jetbrains.idea.maven.utils.Url)1 JpsElement (org.jetbrains.jps.model.JpsElement)1 JpsElementBase (org.jetbrains.jps.model.ex.JpsElementBase)1 JpsModuleSourceRoot (org.jetbrains.jps.model.module.JpsModuleSourceRoot)1 JpsModuleSourceRootType (org.jetbrains.jps.model.module.JpsModuleSourceRootType)1