Package spoon

Class IncrementalLauncher

java.lang.Object
spoon.Launcher
spoon.IncrementalLauncher
All Implemented Interfaces:
SpoonAPI

public class IncrementalLauncher extends Launcher
Create a Spoon launcher for incremental build
  • Constructor Details

    • IncrementalLauncher

      public IncrementalLauncher(Set<File> inputResources, Set<String> sourceClasspath, File cacheDirectory, boolean forceRebuild)
      Creates a Launcher 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 a Launcher 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.