You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bu...@apache.org on 2015/09/07 10:23:18 UTC
[Bug 58336] New: Race condition using presetdef with parallel
https://bz.apache.org/bugzilla/show_bug.cgi?id=58336
Bug ID: 58336
Summary: Race condition using presetdef with parallel
Product: Ant
Version: 1.9.4
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P2
Component: Core tasks
Assignee: notifications@ant.apache.org
Reporter: frank.wagner@fr.ibm.com
Created attachment 33070
--> https://bz.apache.org/bugzilla/attachment.cgi?id=33070&action=edit
Reproducing race condition with java and exec
There is a race condition when using presetdef with parallel.
Using presetdef to set an environment variable for java/exec tasks used in
parallel will sometimes raise
"key and value must be specified for environment variables."
[java] key and value must be specified for environment variables.
[java] at
org.apache.tools.ant.types.Environment$Variable.validate(Environment.java:128)
[java] at
org.apache.tools.ant.types.Environment$Variable.getContent(Environment.java:116)
[java] at
org.apache.tools.ant.types.Environment.getVariables(Environment.java:162)
[java] at
org.apache.tools.ant.taskdefs.Java.setupEnvironment(Java.java:835)
[java] at
org.apache.tools.ant.taskdefs.Java.setupExecutable(Java.java:826)
[java] at org.apache.tools.ant.taskdefs.Java.fork(Java.java:788)
[java] at
org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:214)
[java] at
org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:135)
[java] at org.apache.tools.ant.taskdefs.Java.execute(Java.java:108)
[java] at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[java] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[java] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[java] at java.lang.reflect.Method.invoke(Method.java:497)
[java] at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
[java] at org.apache.tools.ant.Task.perform(Task.java:348)
[java] at
org.apache.tools.ant.taskdefs.Parallel$TaskRunnable.run(Parallel.java:453)
[java] at java.lang.Thread.run(Thread.java:745)
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 58336] Race condition using presetdef with parallel
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=58336
--- Comment #1 from frank.wagner@fr.ibm.com ---
Created attachment 33071
--> https://bz.apache.org/bugzilla/attachment.cgi?id=33071&action=edit
A possible fix it is to 'clone' runtime configurables when applying preset.
--
You are receiving this mail because:
You are the assignee for the bug.