2 * Copyright 2000-2009 JetBrains s.r.o.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 package com
.intellij
.compiler
;
19 import com
.intellij
.openapi
.module
.Module
;
20 import com
.intellij
.openapi
.project
.Project
;
21 import com
.intellij
.openapi
.vfs
.VirtualFile
;
23 import java
.util
.Collection
;
27 public abstract class CompilerConfiguration
{
28 // need this flag for profiling purposes. In production code is always set to 'true'
29 public static final boolean MAKE_ENABLED
= true;
31 public static CompilerConfiguration
getInstance(Project project
) {
32 return project
.getComponent(CompilerConfiguration
.class);
35 public abstract boolean isExcludedFromCompilation(VirtualFile virtualFile
);
37 public abstract boolean isResourceFile(VirtualFile virtualFile
);
39 public abstract boolean isResourceFile(String path
);
41 public abstract void addResourceFilePattern(String namePattern
) throws MalformedPatternException
;
43 public abstract boolean isAnnotationProcessorsEnabled();
45 public abstract void setAnnotationProcessorsEnabled(boolean enableAnnotationProcessors
);
47 public abstract boolean isObtainProcessorsFromClasspath();
49 public abstract void setObtainProcessorsFromClasspath(boolean obtainProcessorsFromClasspath
);
51 public abstract String
getProcessorPath();
53 public abstract void setProcessorsPath(String processorsPath
);
55 public abstract Map
<String
, String
> getAnnotationProcessorsMap();
57 public abstract void setAnnotationProcessorsMap(Map
<String
, String
> map
);
59 public abstract Set
<Module
> getExcludedModules();
61 public abstract void setExcludedModules(Collection
<Module
> modules
);