Skip to content

Commit 041b3d4

Browse files
committed
improved gradle task to work through properties and automatically recognize java folder
1 parent 8606c30 commit 041b3d4

13 files changed

Lines changed: 413 additions & 395 deletions

jcp-tests/jcp-test-android/app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ dependencies {
4141
}
4242

4343
// preprocessor settings
44-
preprocessSettings {
44+
preprocess {
4545
def targetFolder = 'build/preprocessed/java'
4646
target = file(targetFolder)
47-
sources = ['src/main/java']
47+
sources = [file('src/main/java')]
4848
android.sourceSets.main.java.srcDirs = [targetFolder]
4949

5050
keepComments = false

jcp-tests/jcp-test-gradle/build.gradle

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,6 @@ jar {
3535

3636

3737
preprocess {
38-
def targetFolder = 'build/preprocessed/java'
39-
40-
target = file(targetFolder)
41-
sources = ['src/main/java']
4238

4339
allowWhitespaces = true
4440
eol = '\r\n'
@@ -62,7 +58,7 @@ preprocess {
6258
dontOverwriteSameContent=false
6359
vars = ['some.test.global': 'Some Test Global Value']
6460

65-
sourceSets.main.java.srcDirs = [targetFolder]
61+
sourceSets.main.java.srcDirs = [target]
6662
}
6763

6864
compileJava.dependsOn preprocess
-481 KB
Binary file not shown.
-59.1 KB
Binary file not shown.

jcp/extlibs/gradle-core-5.1.jar

-2.29 MB
Binary file not shown.
-294 KB
Binary file not shown.

jcp/extlibs/gradle-logging-5.1.jar

-241 KB
Binary file not shown.
-649 KB
Binary file not shown.

jcp/extlibs/gradle-plugins-5.1.jar

-273 KB
Binary file not shown.
-359 KB
Binary file not shown.

0 commit comments

Comments
 (0)