Hi all,

we at forrest are in the middle to harmonize the definition of our
properties system and we want to switch to an xml based on
(forrest.properties.xml).

We already use this file in the rest of our application. The format is
as follow:

<properties>
  <property name="dispatcher.theme" value="pelt"/>
  <property name="dispatcher.theme-ext" value=".fv"/>
</properties>

Doing a change in our core ant build did not brought the expected
result.

Index: forrest.build.xml
===================================================================
--- forrest.build.xml   (revision 629705)
+++ forrest.build.xml   (working copy)
@@ -77,6 +77,9 @@
 <!-- people should use -D switch, or <ant><property>s to override these
-->
     <property name="project.home" location="." />
-    <property file="${project.home}/forrest.properties" />
+    <xmlproperty file="${project.home}/forrest.properties.xml" 
+      semanticAttributes="true" keepRoot="false"/>
+    <echoproperties destfile="${project.home}/filter.properties"/>

The last line is for debugging, but till now I did not get the
properties as I want them.

It will result in something like:
property=pelt,.fv,group,project
property.name=dispatcher.theme,dispatcher.theme-ext,group-name,project-name

However regarding
http://ant.apache.org/manual/CoreTasks/xmlproperty.html if I enable
semanticAttributes and use the above file slightly alternated:
<properties>
<!--
    # codename: Dispatcher
    # Dispatcher is using a fallback mechanism for theming.
    # You can configure the theme name and its extension here
    -->
  <property id="dispatcher.theme" value="pelt"/>
  <property id="dispatcher.theme-ext" value=".fv"/>
...

I expected to find 
dispatcher.theme=pelt
but i now only get:
property=pelt,.fv,group,project

My question is, is this a bug or have I overlooked something?


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]

Reply via email to