Preventing ant tasks from replacing properties defined in source files

"Zarar Siddiqi" <[email protected]>
Newsgroups gmane.comp.java.xdoclet.user
Message-ID <[email protected]>
There seems to be a feature in XDoclet which replaces any properties
defined using ${myprop} syntax in Java source files with their value
when generating the XML.

More specifically, when running springdoclet, I want to use the
PropertyPlaceholderConfigurer class which requires me to have the
following in the XML file:

    <property name="dao">
      <ref bean="${personDAO}"/>
    </property>

but I am unable to produce this using XDoclet because I happen to have
a personDAO property in the ant build file.  The XDoclet tag in the
source file looks like:

    /**
     * @spring.property ref="${personDAO}"
     */

but this produces

    <property name="dao">
      <ref bean="com.blah.blah.PersonDAO"/>
    </property>

which is not what I want since the property has been substituted with
its value.  Is there a way of disabling property replacement for a
particular task?

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.