Have this task in my build.gradle to deal with some relaxng:
task buildSchema(dependsOn: classes) << { task ->
inputs.dir 'src/main/relax/'
outputs.files 'src/main/resources/edu/sc/seis/sod/data/sod.rng'
doLast
{
outDir = task.project.file('build/output')
outDir.mkdirs()
relaxArgs = project.projectDir.path+'/src/main/relax/sod.rng'
ant.java(dir:outDir,
classname:'com.sun.msv.writer.relaxng.Driver',
args:relaxArgs,
maxmemory:'512m',
fork:true,
classpath:configurations.runtime.asPath,
output:task.project.projectDir.path+'/src/main/resources/edu/sc/seis/sod/data/sod.rng')
}
}
I made a small change (the inputs/outputs/doLast) to take advantage of the new Incremental build stuff in gradle 0.9 but got this:
<snip>
:sod:classes UP-TO-DATE
:sod:buildSchema
FAILURE: Build aborted because of an internal error.
- What went wrong:
Build aborted because of an unexpected internal error. Please file an issue at: www.gradle.org.
- Try:
Run with -d option to get additional debug info.
- Exception is:
java.util.ConcurrentModificationException: null
at java.util.AbstractList$Itr.checkForComodification(AbstractList.java:372)
at java.util.AbstractList$Itr.next(AbstractList.java:343)
at org.gradle.api.internal.tasks.DefaultTaskExecuter.executeActions(DefaultTaskExecuter.java:51)
at org.gradle.api.internal.tasks.DefaultTaskExecuter.execute(DefaultTaskExecuter.java:41)
at org.gradle.api.internal.project.taskfactory.PostExecutionAnalysisTaskExecuter.execute(PostExecutionAnalysisTaskExecuter.java:32)
at org.gradle.api.internal.project.taskfactory.ExecutionShortCircuitTaskExecuter.execute(ExecutionShortCircuitTaskExecuter.java:48)
at org.gradle.api.internal.tasks.SkipTaskExecuter.doExecute(SkipTaskExecuter.java:57)
at org.gradle.api.internal.tasks.SkipTaskExecuter.execute(SkipTaskExecuter.java:35)
at org.gradle.api.internal.tasks.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:32)
at org.gradle.api.internal.AbstractTask.execute(AbstractTask.java:224)
at org.gradle.execution.DefaultTaskGraphExecuter.executeTask(DefaultTaskGraphExecuter.java:165)
at org.gradle.execution.DefaultTaskGraphExecuter.doExecute(DefaultTaskGraphExecuter.java:158)
at org.gradle.execution.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:77)
at org.gradle.execution.TaskNameResolvingBuildExecuter.execute(TaskNameResolvingBuildExecuter.java:161)
at org.gradle.execution.DelegatingBuildExecuter.execute(DelegatingBuildExecuter.java:54)
at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:177)
at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:112)
at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:80)
at org.gradle.launcher.Main.execute(Main.java:93)
at org.gradle.launcher.Main.main(Main.java:42)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.gradle.launcher.GradleMain.main(GradleMain.java:54)
BUILD FAILED
It seems to be reproducable, (three times in a row at least).
|