&target name="publish"> &spring beanLocations="applicationContext.xml" beanName="siteGenerator" methodName="generateSite" host="${host.site.url}" port="${site.port}"> Made a few tweaks. Removed some sentence fragments. &/spring> &/target>
call="generateSite("${host.site.url}","${site.port}")" Or better: &methodCall>&![CDATA[ generateSite("${host.site.url}","${site.port}") ]]>&/methodCall>
因此先前的例子可以如下写法:
&target name="publish"> &spring beanLocations="applicationContext.xml" beanName="siteGenerator"> &methodCall> generateSite("${host.site.url}","${site.port}") &/methodCall> Made a few tweaks. Removed some sentence fragments. &/spring> &/target>