On Mon, 2008-02-25 at 12:52 +0000, Peter Reilly wrote: > ANT svn (trunk) supports loadFromXML in the properties task. > This has not been ported to the ANT 1.7 branch.
Nice. Thanks for this update, will checkout trunk and give it a go. salu2 > Peter > > On Mon, Feb 25, 2008 at 12:21 PM, Thorsten Scherler > <[EMAIL PROTECTED]> wrote: > > On Fri, 2008-02-22 at 14:56 -0800, Bruce Atherton wrote: > > > What I think you are missing is that the XML hierarchy translates into > > > the name of the property. This is true whether you use Semantic > > > Attributes or not, since they do not alter the name. > > > > Hmm, then I misunderstood > > > > http://ant.apache.org/manual/CoreTasks/xmlproperty.html > > "Semantic Attributes > > ... > > id: The property is associated with the given id value." > > > > For me that sounds (and actually IMO makes awfully lot of sense) that if > > I use @id, the property will use this id as name. > > > > Then the java xml files from properties.loadFromXML(...) method will not > > work with the xmlproperty task either (let alone that they do not even > > have a @id), since they look like: > > > > <?xml version="1.0" encoding="UTF-8"?> > > <!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd"> > > <properties> > > <entry > > key="plugin.TestPlugin">com.plugin.test.TestPluginModule</entry> > > <entry > > key="messages.TestPlugin">TestPluginMessages.properties</entry> > > </properties> > > > > Is there interest to have a java compatible xml properties task, if so I > > will likely need to write one for my current project and can submit a > > patch. > > > > Thanks for your answer Bruce. > > > > > > salu2 > > -- > > Thorsten Scherler thorsten.at.apache.org > > Open Source Java consulting, training and solutions > > > > > > --------------------------------------------------------------------- > > > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > -- Thorsten Scherler thorsten.at.apache.org Open Source Java consulting, training and solutions --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]