When running 'build' task I get the following sequence of actions:
:src:groovy-util:compileGroovy
:src:groovy-util:processResources UP-TO-DATE
:src:groovy-util:classes
:src:groovy-util:jar
:src:groovy-util:sourcesJar
:src:groovy-util:assemble
:src:groovy-util:compileTestJava UP-TO-DATE
:src:groovy-util:compileTestGroovy
:src:groovy-util:processTestResources UP-TO-DATE
:src:groovy-util:testClasses
:src:groovy-util:test
:src:groovy-util:check
:src:groovy-util:build
and tests pass. When running 'test' task I get the following:
:src:groovy-util:clean
:src:groovy-util:compileJava UP-TO-DATE
:src:groovy-util:compileGroovy
:src:groovy-util:processResources UP-TO-DATE
:src:groovy-util:classes
:src:groovy-util:compileTestJava UP-TO-DATE
:src:groovy-util:compileTestGroovy
:src:groovy-util:processTestResources UP-TO-DATE
:src:groovy-util:testClasses
:src:groovy-util:test
BUILD FAILED
Exception in the latter case is:
Failed to dispatch message org.gradle.messaging.dispatch.MethodInvocation@75b2a5bd.
org.gradle.messaging.dispatch.DispatchException: Failed to dispatch message org.gradle.messaging.dispatch.MethodInvocation@75b2a5bd.
at org.gradle.messaging.dispatch.ExceptionTrackingDispatch.dispatch(ExceptionTrackingDispatch.java:34)
at org.gradle.messaging.dispatch.AsyncDispatch.dispatchMessages(AsyncDispatch.java:129)
at org.gradle.messaging.dispatch.AsyncDispatch.access$000(AsyncDispatch.java:33)
at org.gradle.messaging.dispatch.AsyncDispatch$1.run(AsyncDispatch.java:69)
at org.gradle.messaging.concurrent.DefaultExecutorFactory$StoppableExecutorImpl$1.run(DefaultExecutorFactory.java:63)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Caused by: org.gradle.process.internal.ExecException: A problem occurred starting Gradle Worker 2.
at org.gradle.process.internal.DefaultExecHandle.setEndStateInfo(DefaultExecHandle.java:204)
at org.gradle.process.internal.DefaultExecHandle.failed(DefaultExecHandle.java:309)
at org.gradle.process.internal.ExecHandleRunner.run(ExecHandleRunner.java:91)
... 4 more
Caused by: java.io.IOException: Cannot run program "C:\Users\alex\Software\Java\jdk1.6.0_25\bin\java.exe" (in directory "C:\Users\alex\workspace\....\src\groovy-util\build\tmp"): CreateProcess error=267, The directory name is invalid
at java.lang.ProcessBuilder.start(ProcessBuilder.java:460)
at org.gradle.process.internal.ExecHandleRunner.run(ExecHandleRunner.java:69)
... 4 more
Caused by: java.io.IOException: CreateProcess error=267, The directory name is invalid
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(ProcessImpl.java:81)
at java.lang.ProcessImpl.start(ProcessImpl.java:30)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:453)
... 5 more
Failed to dispatch message org.gradle.messaging.dispatch.MethodInvocation@75b2a5bd.
org.gradle.messaging.dispatch.DispatchException: Failed to dispatch message org.gradle.messaging.dispatch.MethodInvocation@75b2a5bd.
at org.gradle.messaging.dispatch.ExceptionTrackingDispatch.dispatch(ExceptionTrackingDispatch.java:34)
at org.gradle.messaging.dispatch.AsyncDispatch.dispatchMessages(AsyncDispatch.java:129)
at org.gradle.messaging.dispatch.AsyncDispatch.access$000(AsyncDispatch.java:33)
at org.gradle.messaging.dispatch.AsyncDispatch$1.run(AsyncDispatch.java:69)
at org.gradle.messaging.concurrent.DefaultExecutorFactory$StoppableExecutorImpl$1.run(DefaultExecutorFactory.java:63)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Caused by: org.gradle.process.internal.ExecException: A problem occurred starting Gradle Worker 3.
at org.gradle.process.internal.DefaultExecHandle.setEndStateInfo(DefaultExecHandle.java:204)
at org.gradle.process.internal.DefaultExecHandle.failed(DefaultExecHandle.java:309)
at org.gradle.process.internal.ExecHandleRunner.run(ExecHandleRunner.java:91)
... 4 more
Caused by: java.io.IOException: Cannot run program "C:\Users\alex\Software\Java\jdk1.6.0_25\bin\java.exe" (in directory "C:\Users\alex\workspace\....\src\groovy-util\build\tmp"): CreateProcess error=267, The directory name is invalid
at java.lang.ProcessBuilder.start(ProcessBuilder.java:460)
at org.gradle.process.internal.ExecHandleRunner.run(ExecHandleRunner.java:69)
... 4 more
Caused by: java.io.IOException: CreateProcess error=267, The directory name is invalid
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(ProcessImpl.java:81)
at java.lang.ProcessImpl.start(ProcessImpl.java:30)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:453)
... 5 more
Failed to dispatch message org.gradle.messaging.dispatch.MethodInvocation@75b2a5bd.
org.gradle.messaging.dispatch.DispatchException: Failed to dispatch message org.gradle.messaging.dispatch.MethodInvocation@75b2a5bd.
at org.gradle.messaging.dispatch.ExceptionTrackingDispatch.dispatch(ExceptionTrackingDispatch.java:34)
at org.gradle.messaging.dispatch.AsyncDispatch.dispatchMessages(AsyncDispatch.java:129)
at org.gradle.messaging.dispatch.AsyncDispatch.access$000(AsyncDispatch.java:33)
at org.gradle.messaging.dispatch.AsyncDispatch$1.run(AsyncDispatch.java:69)
at org.gradle.messaging.concurrent.DefaultExecutorFactory$StoppableExecutorImpl$1.run(DefaultExecutorFactory.java:63)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Caused by: org.gradle.process.internal.ExecException: A problem occurred starting Gradle Worker 4.
at org.gradle.process.internal.DefaultExecHandle.setEndStateInfo(DefaultExecHandle.java:204)
at org.gradle.process.internal.DefaultExecHandle.failed(DefaultExecHandle.java:309)
at org.gradle.process.internal.ExecHandleRunner.run(ExecHandleRunner.java:91)
... 4 more
Caused by: java.io.IOException: Cannot run program "C:\Users\alex\Software\Java\jdk1.6.0_25\bin\java.exe" (in directory "C:\Users\alex\workspace\....\src\groovy-util\build\tmp"): CreateProcess error=267, The directory name is invalid
at java.lang.ProcessBuilder.start(ProcessBuilder.java:460)
at org.gradle.process.internal.ExecHandleRunner.run(ExecHandleRunner.java:69)
... 4 more
Caused by: java.io.IOException: CreateProcess error=267, The directory name is invalid
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(ProcessImpl.java:81)
at java.lang.ProcessImpl.start(ProcessImpl.java:30)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:453)
... 5 more
Failed to dispatch message org.gradle.messaging.dispatch.MethodInvocation@75b2a5bd.
org.gradle.messaging.dispatch.DispatchException: Failed to dispatch message org.gradle.messaging.dispatch.MethodInvocation@75b2a5bd.
at org.gradle.messaging.dispatch.ExceptionTrackingDispatch.dispatch(ExceptionTrackingDispatch.java:34)
at org.gradle.messaging.dispatch.AsyncDispatch.dispatchMessages(AsyncDispatch.java:129)
at org.gradle.messaging.dispatch.AsyncDispatch.access$000(AsyncDispatch.java:33)
at org.gradle.messaging.dispatch.AsyncDispatch$1.run(AsyncDispatch.java:69)
at org.gradle.messaging.concurrent.DefaultExecutorFactory$StoppableExecutorImpl$1.run(DefaultExecutorFactory.java:63)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Caused by: org.gradle.process.internal.ExecException: A problem occurred starting Gradle Worker 5.
at org.gradle.process.internal.DefaultExecHandle.setEndStateInfo(DefaultExecHandle.java:204)
at org.gradle.process.internal.DefaultExecHandle.failed(DefaultExecHandle.java:309)
at org.gradle.process.internal.ExecHandleRunner.run(ExecHandleRunner.java:91)
... 4 more
Caused by: java.io.IOException: Cannot run program "C:\Users\alex\Software\Java\jdk1.6.0_25\bin\java.exe" (in directory "C:\Users\alex\workspace\....\src\groovy-util\build\tmp"): CreateProcess error=267, The directory name is invalid
at java.lang.ProcessBuilder.start(ProcessBuilder.java:460)
at org.gradle.process.internal.ExecHandleRunner.run(ExecHandleRunner.java:69)
... 4 more
Caused by: java.io.IOException: CreateProcess error=267, The directory name is invalid
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(ProcessImpl.java:81)
at java.lang.ProcessImpl.start(ProcessImpl.java:30)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:453)
... 5 more
Failed to dispatch message org.gradle.messaging.dispatch.MethodInvocation@75b2a5bd.
org.gradle.messaging.dispatch.DispatchException: Failed to dispatch message org.gradle.messaging.dispatch.MethodInvocation@75b2a5bd.
at org.gradle.messaging.dispatch.ExceptionTrackingDispatch.dispatch(ExceptionTrackingDispatch.java:34)
at org.gradle.messaging.dispatch.AsyncDispatch.dispatchMessages(AsyncDispatch.java:129)
at org.gradle.messaging.dispatch.AsyncDispatch.access$000(AsyncDispatch.java:33)
at org.gradle.messaging.dispatch.AsyncDispatch$1.run(AsyncDispatch.java:69)
at org.gradle.messaging.concurrent.DefaultExecutorFactory$StoppableExecutorImpl$1.run(DefaultExecutorFactory.java:63)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Caused by: org.gradle.process.internal.ExecException: A problem occurred starting Gradle Worker 6.
at org.gradle.process.internal.DefaultExecHandle.setEndStateInfo(DefaultExecHandle.java:204)
at org.gradle.process.internal.DefaultExecHandle.failed(DefaultExecHandle.java:309)
at org.gradle.process.internal.ExecHandleRunner.run(ExecHandleRunner.java:91)
... 4 more
Caused by: java.io.IOException: Cannot run program "C:\Users\alex\Software\Java\jdk1.6.0_25\bin\java.exe" (in directory "C:\Users\alex\workspace\.....\src\groovy-util\build\tmp"): CreateProcess error=267, The directory name is invalid
at java.lang.ProcessBuilder.start(ProcessBuilder.java:460)
at org.gradle.process.internal.ExecHandleRunner.run(ExecHandleRunner.java:69)
... 4 more
Caused by: java.io.IOException: CreateProcess error=267, The directory name is invalid
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(ProcessImpl.java:81)
at java.lang.ProcessImpl.start(ProcessImpl.java:30)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:453)
... 5 more
FAILURE: Build failed with an exception.
- What went wrong:
Execution failed for task ':src:groovy-util:test'.
Cause: A problem occurred starting Gradle Worker 1.
Cause: Cannot run program "C:\Users\alex\Software\Java\jdk1.6.0_25\bin\java.exe" (in directory "C:\Users\alex\workspace\....\src\groovy-util\build\tmp"): CreateProcess error=267, The directory name is invalid
Cause: CreateProcess error=267, The directory name is invalid
- Try:
Run with --info or --debug option to get more log output.
- Exception is:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':src:groovy-util:test'.
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:71)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:48)
at org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecuter.execute(PostExecutionAnalysisTaskExecuter.java:34)
at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:55)
at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:57)
at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:41)
at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:51)
at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:52)
at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:42)
at org.gradle.api.internal.AbstractTask.execute(AbstractTask.java:237)
at org.gradle.execution.DefaultTaskGraphExecuter.executeTask(DefaultTaskGraphExecuter.java:167)
at org.gradle.execution.DefaultTaskGraphExecuter.doExecute(DefaultTaskGraphExecuter.java:160)
at org.gradle.execution.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:78)
at org.gradle.execution.TaskNameResolvingBuildExecuter.execute(TaskNameResolvingBuildExecuter.java:113)
at org.gradle.execution.DelegatingBuildExecuter.execute(DelegatingBuildExecuter.java:54)
at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:158)
at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:112)
at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:80)
at org.gradle.launcher.RunBuildAction.execute(RunBuildAction.java:41)
at org.gradle.launcher.RunBuildAction.execute(RunBuildAction.java:27)
at org.gradle.launcher.ExceptionReportingAction.execute(ExceptionReportingAction.java:32)
at org.gradle.launcher.ExceptionReportingAction.execute(ExceptionReportingAction.java:21)
at org.gradle.launcher.CommandLineActionFactory$WithLoggingAction.execute(CommandLineActionFactory.java:219)
at org.gradle.launcher.CommandLineActionFactory$WithLoggingAction.execute(CommandLineActionFactory.java:203)
at org.gradle.launcher.Main.execute(Main.java:55)
at org.gradle.launcher.Main.main(Main.java:40)
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.ProcessBootstrap.runNoExit(ProcessBootstrap.java:46)
at org.gradle.launcher.ProcessBootstrap.run(ProcessBootstrap.java:28)
at org.gradle.launcher.GradleMain.main(GradleMain.java:24)
Caused by: org.gradle.process.internal.ExecException: A problem occurred starting Gradle Worker 1.
at org.gradle.process.internal.DefaultExecHandle.setEndStateInfo(DefaultExecHandle.java:204)
at org.gradle.process.internal.DefaultExecHandle.failed(DefaultExecHandle.java:309)
at org.gradle.process.internal.ExecHandleRunner.run(ExecHandleRunner.java:91)
at org.gradle.messaging.concurrent.DefaultExecutorFactory$StoppableExecutorImpl$1.run(DefaultExecutorFactory.java:63)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.io.IOException: Cannot run program "C:\Users\alex\Software\Java\jdk1.6.0_25\bin\java.exe" (in directory "C:\Users\alex\workspace\....\src\groovy-util\build\tmp"): CreateProcess error=267, The directory name is invalid
at java.lang.ProcessBuilder.start(ProcessBuilder.java:460)
at org.gradle.process.internal.ExecHandleRunner.run(ExecHandleRunner.java:69)
... 4 more
Caused by: java.io.IOException: CreateProcess error=267, The directory name is invalid
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(ProcessImpl.java:81)
at java.lang.ProcessImpl.start(ProcessImpl.java:30)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:453)
... 5 more
The problem is that 'build/tmp' is not created. When 'build' task is ran, 'build/tmp' is created by the 'jar' task.
|