Last active
January 4, 2016 06:09
-
-
Save davidparsson/8580251 to your computer and use it in GitHub Desktop.
Revisions
-
davidparsson revised this gist
Jan 23, 2014 . 3 changed files with 2 additions and 16 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -6,8 +6,8 @@ task(copyInput, type: Copy) { } processResources { //dependsOn copyInput // Enable this line after first execution from 'input.txt' // Disable this line after first execution from 'anotherInput.txt' } This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,13 +0,0 @@ This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,3 @@ $ gradle clean processResources :clean :processResources -
davidparsson created this gist
Jan 23, 2014 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,39 @@ $ gradle clean processResources :clean :processResources BUILD SUCCESSFUL Total time: 2.119 secs $ ls build/resources/main/input.txt build/resources/main/input.txt $ # Modify build.gradle here, by enabling line 9 and disabling line 10. $ gradle clean processResources :clean :copyInput :processResources BUILD SUCCESSFUL Total time: 2.895 secs $ ls build/resources/main/input.txt ls: build/resources/main/input.txt: No such file or directory $ # File should exist! $ gradle clean processResources :clean :copyInput :processResources BUILD SUCCESSFUL Total time: 2.036 secs $ ls build/resources/main/input.txt build/resources/main/input.txt This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,13 @@ apply plugin: 'java' task(copyInput, type: Copy) { from 'input.txt' into "${sourceSets.main.output.resourcesDir}" } processResources { dependsOn copyInput //from 'input.txt' from 'anotherInput.txt' } This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,13 @@ apply plugin: 'java' task(copyInput, type: Copy) { from 'input.txt' into "${sourceSets.main.output.resourcesDir}" } processResources { //dependsOn copyInput from 'input.txt' from 'anotherInput.txt' }