Skip to content

Commit 249f229

Browse files
committed
Reduce GWT super dev mode compile time
1 parent 4ef4dc0 commit 249f229

File tree

1 file changed

+24
-2
lines changed

1 file changed

+24
-2
lines changed

Diff for: stroom-app-gwt/build.gradle

+24-2
Original file line numberDiff line numberDiff line change
@@ -193,14 +193,36 @@ tasks.register('makeGwtSourceDirs') {
193193
group "gwt"
194194

195195
doLast {
196+
def rsyncInput = layout.buildDirectory.dir("rsync-input").get()
197+
def rsyncOutput = layout.buildDirectory.dir("rsync-output").get()
198+
199+
println "copy ${gwtSourceDirs.size()} gwtSourceDirs"
200+
delete rsyncInput
201+
copy {
202+
from layout.buildDirectory.dir("all-source").get()
203+
into rsyncInput;
204+
}
205+
copy {
206+
from layout.buildDirectory.dir("transformed-build").get()
207+
into rsyncInput;
208+
}
209+
210+
println "rsync ${gwtSourceDirs.size()} gwtSourceDirs"
211+
exec {
212+
executable = 'rsync'
213+
args = ["--recursive", "--checksum", "--delete", rsyncInput.toString() + "/", rsyncOutput]
214+
}
215+
216+
196217
gwtSourceDirs = []
197218

198219
// Add all of the library sources from the gwtSource source set defined above.
199220
gwtSourceDirs.addAll(sourceSets.gwtDevSource.compileClasspath)
200221
gwtSourceDirs.addAll(project(':stroom-gwt').sourceSets.main.output.classesDirs)
201222

202-
gwtSourceDirs.add(layout.buildDirectory.dir("all-source").get())
203-
gwtSourceDirs.add(layout.buildDirectory.dir("transformed-build").get())
223+
// gwtSourceDirs.add(layout.buildDirectory.dir("all-source").get())
224+
// gwtSourceDirs.add(layout.buildDirectory.dir("transformed-build").get())
225+
gwtSourceDirs.add(rsyncOutput)
204226

205227
println "Dumping ${gwtSourceDirs.size()} gwtSourceDirs"
206228
gwtSourceDirs.each {

0 commit comments

Comments
 (0)