"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "gradle/test.gradle" between
apache-groovy-src-3.0.8.zip and apache-groovy-src-3.0.9.zip

About: Groovy is an agile dynamic (scripting) language for the Java Platform. It has features similar to those of Python, Ruby, Perl, and Smalltalk. Source release.

test.gradle  (apache-groovy-src-3.0.8):test.gradle  (apache-groovy-src-3.0.9)
skipping to change at line 99 skipping to change at line 99
exclude buildExcludeFilter(it.name == 'test') exclude buildExcludeFilter(it.name == 'test')
ext.resultText = '' ext.resultText = ''
doLast { doLast {
ant.delete { ant.delete {
fileset(dir: '.', includes: '*.class') fileset(dir: '.', includes: '*.class')
} }
} }
} }
boolean isRunningOnCI() { boolean isRunningOnCI() {
new File('.').absolutePath =~ /teamcity|jenkins|hudson|travis/ // home/runner/work is path for Github actions
new File('.').absolutePath =~ $/teamcity|jenkins|hudson|travis|/home/runner/
work/$
} }
logger.lifecycle "Detected ${isRunningOnCI() ? 'Continuous Integration environme nt' : 'development environment'}" logger.lifecycle "Detected ${isRunningOnCI() ? 'Continuous Integration environme nt' : 'development environment'}"
tasks.addRule('Pattern: testSingle<Name> will test **/<Name>.class') { String ta skName -> tasks.addRule('Pattern: testSingle<Name> will test **/<Name>.class') { String ta skName ->
if (taskName.startsWith('testSingle')) { if (taskName.startsWith('testSingle')) {
tasks.create(taskName).dependsOn(test) tasks.create(taskName).dependsOn(test)
test.includes = ['**/' + taskName.substring(10) + '.class'] test.includes = ['**/' + taskName.substring(10) + '.class']
test.outputs.upToDateWhen { false } test.outputs.upToDateWhen { false }
} }
 End of changes. 1 change blocks. 
1 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)