For example:

I have an ant script that sets properties based on the environment test,
prod, dev, etc.  This only works if I change the property names to
dev.property and I can't change the dev.property and set it to
session.timeout or app.debug within the xmltask.  

Or is there another way to accomplish this?

<!-- this is read from a properties file -->
<property name="session.timemout" value="15" />
<property name="app.debug" value="false" />

<xmltask source="${input.dir}/web.xml" dest="${output.dir}/web.xml"
report="false" failWithoutMatch="true">            
                                        
<replace path="/:web-app/:session-config/:session-timeout/text()"
expandProperties="true" withText="${session.timeout}" /> 

<replace
path="/:web-app/:servlet[1]/:servlet-class/:init-param/:param-value[1]/t
ext()" expandProperties="true" withText="${app.debug}" />
                        
</xmltask>

 
 
   Mark Coffin 
   [EMAIL PROTECTED] 
   Phone: 905.632.0864 
   1.800.668.8486 
   Fax: 905.632.2605 
   www.aalsolutions.com 

-----Original Message-----
From: Brian Agnew [mailto:[EMAIL PROTECTED] 
Sent: June 3, 2008 11:17 AM
To: Mark Coffin
Cc: xmltask-users@lists.sourceforge.net
Subject: Re: [Xmltask-users] Expand Properties only works for
${dev.property}

Not really. What would you want to change it to, and why ?

Brian

On Tue, June 3, 2008 16:10, Mark Coffin wrote:
> Hi All,
>
> I've discovered that when using properties that it will only work if
you
> use ${dev.property}.  Is there any way to change this?
>
>
>
>    Mark Coffin
>    [EMAIL PROTECTED]
>    Phone: 905.632.0864
>    1.800.668.8486
>    Fax: 905.632.2605
>    www.aalsolutions.com
>
>
>
>
>
>
> ****** CONFIDENTIALITY NOTICE ******
>
> NOTICE: This e-mail message and all attachments transmitted with it
may
> contain legally privileged and confidential information intended
solely
> for the use of the addressee. If the reader of this message is not the
> intended recipient, you are hereby notified that any reading,
> dissemination, distribution, copying, or other use of this message or
its
> attachments is strictly prohibited. If you have received this message
in
> error, please notify the sender immediately and delete this message
from
> your system. Thank you.
>
>
>
------------------------------------------------------------------------
-
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
>
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/_________________
______________________________
> Xmltask-users mailing list
> Xmltask-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/xmltask-users
>


-- 
Brian Agnew                  http://www.oopsconsultancy.com
OOPS Consultancy Ltd
Tel: +44 (0)7720 397526
Fax: +44 (0)20 8682 0012


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Xmltask-users mailing list
Xmltask-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xmltask-users

Reply via email to