peterreilly 2003/10/17 01:09:46
Modified: src/main/org/apache/tools/ant ComponentHelper.java
Log:
synchonize ComponentHelper#checkNamespace()
This fixes a bug with use of <parallel> and xmlns:prefix="antlib:package
<project default="bug" xmlns:ac="antlib:net.sf.antcontrib">
<target name="t2">
<parallel>
<ac:shellscript shell="bash">echo hello</ac:shellscript>
<ac:shellscript shell="bash">echo hello</ac:shellscript>
</parallel>
</target>
</project>
- need a unit test for this
Revision Changes Path
1.29 +1 -1 ant/src/main/org/apache/tools/ant/ComponentHelper.java
Index: ComponentHelper.java
===================================================================
RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/ComponentHelper.java,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -r1.28 -r1.29
--- ComponentHelper.java 10 Sep 2003 10:37:13 -0000 1.28
+++ ComponentHelper.java 17 Oct 2003 08:09:46 -0000 1.29
@@ -806,7 +806,7 @@
* called for each component name, check if the
* associated URI has been examined for antlibs.
*/
- private void checkNamespace(String componentName) {
+ private synchronized void checkNamespace(String componentName) {
if (componentName.indexOf(':') == -1) {
return; // not a namespaced name
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]