use of com.intellij.openapi.externalSystem.model.project.ExternalSystemSourceType in project android by JetBrains.
the class ContentRootSourcePaths method addSourceDirPaths.
private void addSourceDirPaths(@NotNull SourceProvider sourceProvider, boolean isTest) {
ExternalSystemSourceType sourceType = isTest ? ExternalSystemSourceType.TEST : ExternalSystemSourceType.SOURCE;
addSourceDirPaths(sourceType, sourceProvider.getAidlDirectories());
addSourceDirPaths(sourceType, sourceProvider.getAssetsDirectories());
addSourceDirPaths(sourceType, sourceProvider.getJavaDirectories());
addSourceDirPaths(sourceType, sourceProvider.getCppDirectories());
addSourceDirPaths(sourceType, sourceProvider.getCDirectories());
addSourceDirPaths(sourceType, sourceProvider.getRenderscriptDirectories());
sourceType = isTest ? ExternalSystemSourceType.TEST_RESOURCE : ExternalSystemSourceType.RESOURCE;
addSourceDirPaths(sourceType, sourceProvider.getResDirectories());
addSourceDirPaths(sourceType, sourceProvider.getResourcesDirectories());
}
use of com.intellij.openapi.externalSystem.model.project.ExternalSystemSourceType in project android by JetBrains.
the class ContentRootSourcePaths method addGeneratedDirPaths.
private void addGeneratedDirPaths(@NotNull AndroidArtifactStub androidArtifact, boolean isTest) {
ExternalSystemSourceType sourceType = isTest ? ExternalSystemSourceType.TEST_GENERATED : ExternalSystemSourceType.SOURCE_GENERATED;
addSourceDirPaths(sourceType, getGeneratedSourceFolders(androidArtifact));
sourceType = isTest ? ExternalSystemSourceType.TEST_RESOURCE : ExternalSystemSourceType.RESOURCE;
addSourceDirPaths(sourceType, androidArtifact.getGeneratedResourceFolders());
}
Aggregations