@@ -10,6 +10,8 @@ import java.util.concurrent.Callable
10
10
import java.util.jar.JarFile
11
11
import javax.inject.Inject
12
12
13
+
14
+ // TODO: Rename to PDE Task
13
15
abstract class ProcessingTask : SourceTask () {
14
16
@get:OutputDirectory
15
17
var outputDirectory: File ? = null
@@ -33,10 +35,10 @@ abstract class ProcessingTask : SourceTask() {
33
35
34
36
@TaskAction
35
37
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)
38
40
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
40
42
val combined = stableSources
41
43
.files
42
44
.groupBy { it.name }
@@ -58,8 +60,10 @@ abstract class ProcessingTask : SourceTask() {
58
60
javaFile.flush()
59
61
javaFile.close()
60
62
61
- // Scan all the libaries in the sketchbook
62
63
// 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
63
67
val libraries = File (sketchBook, " libraries" )
64
68
.listFiles { file -> file.isDirectory }
65
69
?.map { folder ->
0 commit comments