diff --git a/proposal/embed/build.xml b/proposal/embed/build.xml index ced2ea383..70e8651ce 100644 --- a/proposal/embed/build.xml +++ b/proposal/embed/build.xml @@ -26,12 +26,12 @@ - - Embed is no longer supported with ant1.6. It is only used with ant1.5 ! The dynamic properties work with both, use embed-optional target + + Embed is no longer supported with ant1.6. It is only used with ant1.5 ! The dynamic properties work with both, use embed-optional target diff --git a/proposal/embed/src/java/org/apache/tools/ant/RuntimeConfigurable2.java b/proposal/embed/src/java/org/apache/tools/ant/RuntimeConfigurable2.java index b54b7d6a9..89ba84006 100644 --- a/proposal/embed/src/java/org/apache/tools/ant/RuntimeConfigurable2.java +++ b/proposal/embed/src/java/org/apache/tools/ant/RuntimeConfigurable2.java @@ -288,14 +288,15 @@ public class RuntimeConfigurable2 extends RuntimeConfigurable { if (attributes != null) { IntrospectionHelper ih = - IntrospectionHelper.getHelper(p, target.getClass()); + IntrospectionHelper.getHelper(target.getClass()); + p.addBuildListener( ih ); for (int i = 0; i < attributes.getLength(); i++) { String name= attributes.getQName(i); String value= attributes.getValue(i); // reflect these into the target - value = ph.replaceProperties(null, value, null); + value = ph.replaceProperties(null, value, p.getProperties()); try { ih.setAttribute(p, target, name.toLowerCase(Locale.US), value);