Class JavaCSourceCancellableCompiler
java.lang.Object
com.regnosys.rosetta.common.compile.JavaCSourceCancellableCompiler
- All Implemented Interfaces:
JavaCancellableCompiler
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionJavaCSourceCancellableCompiler(int threadPollIntervalMs, int maxCompileTimeoutMs, ExecutorService executorService, boolean useSystemClassPath, boolean deleteOnError, boolean isVerbose, JavaCompileReleaseFlag releaseFlag, Path... additionalClassPaths) JavaCSourceCancellableCompiler(ExecutorService executorService, boolean useSystemClassPath, boolean deleteOnError, boolean isVerbose, JavaCompileReleaseFlag releaseFlag, Path... additionalClassPaths) -
Method Summary
Modifier and TypeMethodDescriptioncompile(List<Path> sourceJavaPaths, Path targetPath, CancelIndicator cancelIndicator)
-
Field Details
-
DEFAULT_THREAD_POLL_INTERVAL_MS
public static final int DEFAULT_THREAD_POLL_INTERVAL_MS- See Also:
-
DEFAULT_MAX_COMPILE_TIMEOUT_MS
public static final int DEFAULT_MAX_COMPILE_TIMEOUT_MS- See Also:
-
-
Constructor Details
-
JavaCSourceCancellableCompiler
public JavaCSourceCancellableCompiler(int threadPollIntervalMs, int maxCompileTimeoutMs, ExecutorService executorService, boolean useSystemClassPath, boolean deleteOnError, boolean isVerbose, JavaCompileReleaseFlag releaseFlag, Path... additionalClassPaths) -
JavaCSourceCancellableCompiler
public JavaCSourceCancellableCompiler(ExecutorService executorService, boolean useSystemClassPath, boolean deleteOnError, boolean isVerbose, JavaCompileReleaseFlag releaseFlag, Path... additionalClassPaths)
-
-
Method Details
-
compile
public JavaCompilationResult compile(List<Path> sourceJavaPaths, Path targetPath, CancelIndicator cancelIndicator) throws ExecutionException, InterruptedException, TimeoutException - Specified by:
compilein interfaceJavaCancellableCompiler- Throws:
ExecutionExceptionInterruptedExceptionTimeoutException
-