Not sure if this is what you are looking for , but you can try this type of
thing. I've way generalized to give you some idea of the attributes it takes.
<target name="compileshoulddependonme" >
<replace dir="" includes="" excludes="" > <!-- also takes just file="" -->
<replacetoken>DEFAULT_CONFIG_PROP</replacetoken>
<replacevalue>${your.property}</replacevalue>
</replace>
</target>
Hope that's of some use.
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Mary
OToole
Sent: Monday, March 12, 2007 10:41 AM
To: [email protected]
Subject: [Xdoclet-user] First time simple use of XDoclet
I'm just getting started and want to start with something very simple.
I want to be able to control the value of a string in my source code via
XDoclet.
This is my existing code:
private static final String DEFAULT_CONFIG_PROP = "data/build.properties";
How to I use XDoclet to set DEFAULT_CONFIG_PROP to a value declared in my
ant build.xml?
I know this should be easy, but so far I'm seeing mostly examples for using
XDocet for EJB.s
Thanks in advance for your help!
_________________________________________________________________
Find what you need at prices you'll love. Compare products and save at MSNĀ®
Shopping.
http://shopping.msn.com/default/shp/?ptnrid=37,ptnrdata=24102&tcode=T001MSN20A0701
**********************************************************************
This e-mail is the property of Enron Corp. and/or its relevant affiliate and
may contain confidential and privileged material for the sole use of the
intended recipient (s). Any review, use, distribution or disclosure by others
is strictly prohibited. If you are not the intended recipient (or authorized to
receive for the recipient), please contact the sender or reply to Enron Corp.
at [EMAIL PROTECTED] and delete all copies of the message. This e-mail (and any
attachments hereto) are not intended to be an offer (or an acceptance) and do
not create or evidence a binding and enforceable contract between Enron Corp.
(or any of its affiliates) and the intended recipient or any other party, and
may not be relied on by anyone as the basis of a contract by estoppel or
otherwise. Thank you.
**********************************************************************
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
xdoclet-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user