Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated gradle to 4.0.1 and fixed a warning
- Loading branch information
Showing
6 changed files
with
95 additions
and
91 deletions.
There are no files selected for viewing
This file contains 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 characters
This file contains 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 characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,96 +1,98 @@ | ||
/** | ||
* M4 generation | ||
*/ | ||
task m4 << { | ||
task m4 { | ||
doLast { | ||
|
||
def extension = ["Node", "Tree", "TreeAsList", "TreeIterator"] | ||
def dir = "$rootDir/core/src/main/java/ca/odell/glazedlists/impl/adt/barcode2" | ||
def extension = ["Node", "Tree", "TreeAsList", "TreeIterator"] | ||
def dir = "$rootDir/core/src/main/java/ca/odell/glazedlists/impl/adt/barcode2" | ||
|
||
extension.each { ext -> | ||
exec { | ||
workingDir dir | ||
commandLine 'm4', '--prefix-builtins', | ||
'-DVAR_COLOUR_COUNT=4', | ||
'-DVAR_WIDE_NODES=true', | ||
'-DVAR_TYPE_COUNT=1', | ||
"Bcii${ext}.java" | ||
extension.each { ext -> | ||
exec { | ||
workingDir dir | ||
commandLine 'm4', '--prefix-builtins', | ||
'-DVAR_COLOUR_COUNT=4', | ||
'-DVAR_WIDE_NODES=true', | ||
'-DVAR_TYPE_COUNT=1', | ||
"Bcii${ext}.java" | ||
|
||
standardOutput = new FileOutputStream("$dir/FourColor${ext}.java_intermediate") | ||
standardOutput = new FileOutputStream("$dir/FourColor${ext}.java_intermediate") | ||
} | ||
} | ||
} | ||
|
||
extension.each { ext -> | ||
exec { | ||
workingDir dir | ||
commandLine 'm4', '--prefix-builtins', | ||
'-DBciiTree=FourColorTree', | ||
'-DBciiNode=FourColorNode', | ||
'-DBciiTreeAsList=FourColorTreeAsList', | ||
'-DBciiTreeIterator=FourColorTreeIterator', | ||
'-DCOMMAPLACEHOLDER=,', | ||
"FourColor${ext}.java_intermediate" | ||
extension.each { ext -> | ||
exec { | ||
workingDir dir | ||
commandLine 'm4', '--prefix-builtins', | ||
'-DBciiTree=FourColorTree', | ||
'-DBciiNode=FourColorNode', | ||
'-DBciiTreeAsList=FourColorTreeAsList', | ||
'-DBciiTreeIterator=FourColorTreeIterator', | ||
'-DCOMMAPLACEHOLDER=,', | ||
"FourColor${ext}.java_intermediate" | ||
|
||
standardOutput = new FileOutputStream("$dir/FourColor${ext}.java") | ||
standardOutput = new FileOutputStream("$dir/FourColor${ext}.java") | ||
} | ||
} | ||
} | ||
|
||
extension.each { ext -> | ||
exec { | ||
workingDir dir | ||
commandLine 'm4', '--prefix-builtins', | ||
'-DVAR_COLOUR_COUNT=4', | ||
'-DVAR_WIDE_NODES=true', | ||
'-DVAR_TYPE_COUNT=2', | ||
"Bcii${ext}.java" | ||
extension.each { ext -> | ||
exec { | ||
workingDir dir | ||
commandLine 'm4', '--prefix-builtins', | ||
'-DVAR_COLOUR_COUNT=4', | ||
'-DVAR_WIDE_NODES=true', | ||
'-DVAR_TYPE_COUNT=2', | ||
"Bcii${ext}.java" | ||
|
||
standardOutput = new FileOutputStream("$dir/FourColorTwoValue${ext}.java_intermediate") | ||
standardOutput = new FileOutputStream("$dir/FourColorTwoValue${ext}.java_intermediate") | ||
} | ||
} | ||
} | ||
|
||
extension.each { ext -> | ||
exec { | ||
workingDir dir | ||
commandLine 'm4', '--prefix-builtins', | ||
'-DBciiTree=FourColorTwoValueTree', | ||
'-DBciiNode=FourColorTwoValueNode', | ||
'-DBciiTreeAsList=FourColorTwoValueTreeAsList', | ||
'-DBciiTreeIterator=FourColorTwoValueTreeIterator', | ||
'-DCOMMAPLACEHOLDER=,', | ||
"FourColorTwoValue${ext}.java_intermediate" | ||
extension.each { ext -> | ||
exec { | ||
workingDir dir | ||
commandLine 'm4', '--prefix-builtins', | ||
'-DBciiTree=FourColorTwoValueTree', | ||
'-DBciiNode=FourColorTwoValueNode', | ||
'-DBciiTreeAsList=FourColorTwoValueTreeAsList', | ||
'-DBciiTreeIterator=FourColorTwoValueTreeIterator', | ||
'-DCOMMAPLACEHOLDER=,', | ||
"FourColorTwoValue${ext}.java_intermediate" | ||
|
||
standardOutput = new FileOutputStream("$dir/FourColorTwoValue${ext}.java") | ||
standardOutput = new FileOutputStream("$dir/FourColorTwoValue${ext}.java") | ||
} | ||
} | ||
} | ||
|
||
extension.each { ext -> | ||
exec { | ||
workingDir dir | ||
commandLine 'm4', '--prefix-builtins', | ||
'-DVAR_COLOUR_COUNT=1', | ||
'-DVAR_WIDE_NODES=false', | ||
'-DVAR_TYPE_COUNT=1', | ||
"Bcii${ext}.java" | ||
extension.each { ext -> | ||
exec { | ||
workingDir dir | ||
commandLine 'm4', '--prefix-builtins', | ||
'-DVAR_COLOUR_COUNT=1', | ||
'-DVAR_WIDE_NODES=false', | ||
'-DVAR_TYPE_COUNT=1', | ||
"Bcii${ext}.java" | ||
|
||
standardOutput = new FileOutputStream("$dir/Simple${ext}.java_intermediate") | ||
standardOutput = new FileOutputStream("$dir/Simple${ext}.java_intermediate") | ||
} | ||
} | ||
} | ||
|
||
extension.each { ext -> | ||
exec { | ||
workingDir dir | ||
commandLine 'm4', '--prefix-builtins', | ||
'-DBciiTree=SimpleTree', | ||
'-DBciiNode=SimpleNode', | ||
'-DBciiTreeAsList=SimpleTreeAsList', | ||
'-DBciiTreeIterator=SimpleTreeIterator', | ||
'-DCOMMAPLACEHOLDER=,', | ||
"Simple${ext}.java_intermediate" | ||
extension.each { ext -> | ||
exec { | ||
workingDir dir | ||
commandLine 'm4', '--prefix-builtins', | ||
'-DBciiTree=SimpleTree', | ||
'-DBciiNode=SimpleNode', | ||
'-DBciiTreeAsList=SimpleTreeAsList', | ||
'-DBciiTreeIterator=SimpleTreeIterator', | ||
'-DCOMMAPLACEHOLDER=,', | ||
"Simple${ext}.java_intermediate" | ||
|
||
standardOutput = new FileOutputStream("$dir/Simple${ext}.java") | ||
standardOutput = new FileOutputStream("$dir/Simple${ext}.java") | ||
} | ||
} | ||
} | ||
|
||
delete fileTree(dir) { | ||
include '**/*_intermediate' | ||
delete fileTree(dir) { | ||
include '**/*_intermediate' | ||
} | ||
} | ||
} |
Binary file not shown.
This file contains 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 characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#Wed Sep 07 10:56:44 CEST 2016 | ||
#Fri Jul 21 07:56:36 CEST 2017 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-3.5-all.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-4.0.1-bin.zip |
This file contains 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 characters
This file contains 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 characters