Package spoon
Class IncrementalLauncher
java.lang.Object
spoon.Launcher
spoon.IncrementalLauncher
- All Implemented Interfaces:
SpoonAPI
Create a Spoon launcher for incremental build
-
Field Summary
Fields inherited from class spoon.Launcher
ALL_DIR_FILTER, factory, jsapActualArgs, LOGGER, OUTPUTDIR, RESOURCES_FILE_FILTER, SPOONED_CLASSES
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns true, if any source code changes after previous build are present, and false otherwise.void
Caches current spoon model and binary files.Methods inherited from class spoon.Launcher
addInputResource, addInputResource, addProcessor, addProcessor, addTemplateResource, buildModel, createCompiler, createCompiler, createCompiler, createCompiler, createCompiler, createEnvironment, createFactory, createOutputWriter, createPrettyPrinter, defineArgs, getArguments, getCompilerInstance, getEnvironment, getFactory, getModel, getModelBuilder, getProcessors, getProcessorTypes, main, parseArgs, parseClass, prettyprint, printUsage, process, processArguments, reportClassPathMode, run, run, setArgs, setBinaryOutputDirectory, setBinaryOutputDirectory, setOutputFilter, setOutputFilter, setSourceOutputDirectory, setSourceOutputDirectory
-
Constructor Details
-
IncrementalLauncher
public IncrementalLauncher(Set<File> inputResources, Set<String> sourceClasspath, File cacheDirectory, boolean forceRebuild)Creates aLauncher
for incremental build.- Parameters:
inputResources
- Resources to be parsed to build the spoon model.sourceClasspath
- Source classpath of the spoon model.cacheDirectory
- The directory to store all incremental information. If it's empty, full rebuild will be performed.forceRebuild
- Force to perform full rebuild, ignoring incremental cache.- Throws:
IllegalArgumentException
SpoonException
-
IncrementalLauncher
public IncrementalLauncher(Set<File> inputResources, Set<String> sourceClasspath, File cacheDirectory)Creates aLauncher
for incremental build.- Parameters:
inputResources
- Resources to be parsed to build the spoon model.sourceClasspath
- Source classpath of the spoon model.cacheDirectory
- The directory to store all incremental information. If it's empty, full rebuild will be performed.- Throws:
IllegalArgumentException
SpoonException
-
-
Method Details
-
changesPresent
public boolean changesPresent()Returns true, if any source code changes after previous build are present, and false otherwise. -
saveCache
public void saveCache()Caches current spoon model and binary files. Should be called only after model is built.
-