Package jetbrains.mps.make
Class ModuleMaker
- java.lang.Object
 - 
- jetbrains.mps.make.ModuleMaker
 
 
- 
public final class ModuleMaker extends Object
ModuleMaker is able to make sources of the given modules. Main API is two #make methods, one of them accepts also the compiler options argument (e.g. to choose the java language level for the compiler) Underneath this class analyzes module dependencies, chooses which of the modules are dirty, collects all the java sources and handles them to the eclipse java compiler (the mps wrapperEclipseJavaCompiler) fixme use bundle for this package fixme check multiple computations of the same modules' dependencies (time wasting) 
- 
- 
Field Summary
Fields Modifier and Type Field Description static Comparator<SModule>MODULE_BY_NAME_COMPARATOR 
- 
Constructor Summary
Constructors Constructor Description ModuleMaker()The empty constructor delegates only error messages to the apache's logger and traces nothingModuleMaker(IMessageHandler handler)Constructor for regular use, if uncertain, use this one. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclean(Set<? extends SModule> modules, ProgressMonitor monitor)TODO move or rename the ModuleMaker (the naming is quite disturbing)MPSCompilationResultmake(Collection<? extends SModule> modules, ProgressMonitor monitor)MPSCompilationResultmake(Collection<? extends SModule> modules, ProgressMonitor monitor, JavaCompilerOptions compilerOptions) 
 - 
 
- 
- 
Field Detail
- 
MODULE_BY_NAME_COMPARATOR
public static final Comparator<SModule> MODULE_BY_NAME_COMPARATOR
 
 - 
 
- 
Constructor Detail
- 
ModuleMaker
public ModuleMaker()
The empty constructor delegates only error messages to the apache's logger and traces nothing 
- 
ModuleMaker
public ModuleMaker(@NotNull IMessageHandler handler)
Constructor for regular use, if uncertain, use this one.- Parameters:
 handler- sink for end-user messages
 
 - 
 
- 
Method Detail
- 
clean
public void clean(Set<? extends SModule> modules, @NotNull ProgressMonitor monitor)
TODO move or rename the ModuleMaker (the naming is quite disturbing) 
- 
make
@NotNull public MPSCompilationResult make(Collection<? extends SModule> modules, @NotNull ProgressMonitor monitor)
 
- 
make
@NotNull public MPSCompilationResult make(Collection<? extends SModule> modules, @NotNull ProgressMonitor monitor, @Nullable JavaCompilerOptions compilerOptions)
 
 - 
 
 -