@@ -10,6 +10,8 @@ import java.util.concurrent.Callable
1010import java.util.jar.JarFile
1111import javax.inject.Inject
1212
13+
14+ // TODO: Rename to PDE Task
1315abstract class ProcessingTask : SourceTask () {
1416 @get:OutputDirectory
1517 var outputDirectory: File ? = null
@@ -33,10 +35,10 @@ abstract class ProcessingTask : SourceTask() {
3335
3436 @TaskAction
3537 fun execute (inputChanges : InputChanges ) {
36- // Using stableSources since we can only run the pre-processor on the full set of sources
37- // TODO: Allow pre-processor to run on individual files
38+ // TODO: Allow pre-processor to run on individual files (future)
39+ // TODO: Only compare file names from both defined roots (e.g. sketch.pde and folder/sketch.pde should both be included)
3840
39- // TODO: Only compare file names from both defined roots
41+ // Using stableSources since we can only run the pre-processor on the full set of sources
4042 val combined = stableSources
4143 .files
4244 .groupBy { it.name }
@@ -58,8 +60,10 @@ abstract class ProcessingTask : SourceTask() {
5860 javaFile.flush()
5961 javaFile.close()
6062
61- // Scan all the libaries in the sketchbook
6263 // TODO: Move scanning the libraries to a separate task to avoid running this every time
64+ // TODO: Support library changes
65+ // TODO: Add internal libraries (dxf, serial, etc..)
66+ // Scan all the libaries in the sketchbook
6367 val libraries = File (sketchBook, " libraries" )
6468 .listFiles { file -> file.isDirectory }
6569 ?.map { folder ->
0 commit comments