Skip navigation links
oracle.jdeveloper.compiler
Class UnifiedBuildSystem
java.lang.Object
oracle.jdeveloper.compiler.UnifiedBuildSystem
-
public class UnifiedBuildSystem
- extends java.lang.Object
Method Summary |
void |
beginMarking(Translator translator)
Notifies the build system that the current translator marks sources actually translated. |
boolean |
buildOnUIThread(Context context, boolean rebuild)
|
int |
compileInThread(java.lang.Thread thread, Project prj, java.util.ArrayList files, boolean rebuild)
|
java.util.Map<Workspace,java.util.Map<Project,java.util.List<java.lang.String>>> |
getCompiledClasses()
|
static UnifiedBuildSystem |
getInstance()
|
int |
getLastErrorCount()
|
java.util.Map<Workspace,java.util.Map<Project,java.util.Set<Storage>>> |
getTranslatedSources()
|
boolean |
init(Context context, boolean rebuild)
|
void |
initCleanAll(Context context)
|
boolean |
isAlive()
|
boolean |
isLocked(Context context)
|
void |
join(long millis)
|
boolean |
lock(Context context)
|
void |
markCompiled(java.lang.String path)
|
void |
markTranslated(Translator translator, Storage source)
Marks a source as actually translated. |
void |
registerTranslator(Translator translator)
Entry point to register compiler translators, there must be no conflicting input types with any previously registered translators. |
void |
stopBuildSystem()
|
boolean |
unlock()
|
void |
unregisterTranslator(Translator translator)
Entry point to unregister compiler translators. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ideLog
public static IdeLog ideLog
showCompileProgress
public static boolean showCompileProgress
UnifiedBuildSystem
public UnifiedBuildSystem()
init
public boolean init(Context context,
boolean rebuild)
buildOnUIThread
public boolean buildOnUIThread(Context context,
boolean rebuild)
initCleanAll
public void initCleanAll(Context context)
isAlive
public boolean isAlive()
join
public void join(long millis)
throws java.lang.InterruptedException
-
- Throws:
java.lang.InterruptedException
stopBuildSystem
public void stopBuildSystem()
isLocked
public boolean isLocked(Context context)
lock
public boolean lock(Context context)
unlock
public boolean unlock()
compileInThread
public int compileInThread(java.lang.Thread thread,
Project prj,
java.util.ArrayList files,
boolean rebuild)
throws java.lang.IllegalArgumentException
-
- Parameters:
thread
- -- a compiler thread object
prj
- -- the project context to use to build
files
- -- one of more files to build (must be subclass of Storage)
rebuild
- -- if true, rebuild file(s) else make file(s)
- Returns:
- 0 success > 0 number of errors
- Throws:
java.lang.IllegalArgumentException
- exception if: thread is not a Compiler compatible thread object files is null one or more file in the files is not a subclass of Storage
getLastErrorCount
public int getLastErrorCount()
-
- Returns:
- the number of errors produced by the last build operation.
registerTranslator
public void registerTranslator(Translator translator)
- Entry point to register compiler translators, there must be no conflicting input types with any previously registered translators.
-
- Parameters:
translator
- to register in build system
unregisterTranslator
public void unregisterTranslator(Translator translator)
- Entry point to unregister compiler translators.
-
- Parameters:
translator
- to remove from build system
getInstance
public static UnifiedBuildSystem getInstance()
beginMarking
public void beginMarking(Translator translator)
- Notifies the build system that the current translator marks sources actually translated.
markTranslated
public void markTranslated(Translator translator,
Storage source)
- Marks a source as actually translated.
-
- Throws:
java.lang.IllegalStateException
getTranslatedSources
public java.util.Map<Workspace,java.util.Map<Project,java.util.Set<Storage>>> getTranslatedSources()
markCompiled
public void markCompiled(java.lang.String path)
getCompiledClasses
public java.util.Map<Workspace,java.util.Map<Project,java.util.List<java.lang.String>>> getCompiledClasses()
Skip navigation links
Copyright © 1997, 2011, Oracle. All rights reserved.