On Yesterday at 4:03pm, S=>SubuA <[EMAIL PROTECTED]> wrote:
S> [..snip..]
S>
S> Spring doclet defiition in our pom.xml:
S> <springdoclet mergeDir="${basedir}/src/main/webapp/WEB-INF/merge"
S> destdir="target/abc-resources"
S> excludedtags="@version,@author,@todo,@see,@desc" verbose="true" force="true"
S> addedTags="">
S> <fileset dir="${project.build.sourceDirectory}">
S> <include name="**/*.java" />
S> </fileset>
S> <springxml destinationfile="abc-servlet.xml" />
S> </springdoclet>
S> The question is how we force springdoclet to generate the header given
S> above? is there any settings that is possible to set?
S> Can anyone please please help me here.
S> Thanks,
S> Subu
S>
This is not tested so your mileage may vary. You can try replacing
<springxml> with:
<springxml templateFile="etc/path/to/spring_xml.xdt"
destinationfile="abc-servlet.xml"/>
where spring_xml.xdt is a copy of:
http://xdoclet.cvs.sourceforge.net/xdoclet/xdoclet/modules/spring/src/xdoclet/modules/spring/resources/spring_xml.xdt?revision=1.4&view=markup
where the top portion:
<!DOCTYPE beans PUBLIC
"<XDtXml:publicId/>"
"<XDtXml:systemId/>">
<beans
has been replaced with:
<beans
xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:tx="http://www.springframework.org/schema/tx"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx-2.0.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop-2.0.xsd"
Let me know how it works out.
Cheers,
--
Haroon Rafique
<[EMAIL PROTECTED]>
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
xdoclet-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user