From: Guijarro, J. <jul...@hp...> - 2005-12-23 13:27:45
|
Hello everyone, Last week we released SmartFrog 3.08.004, the website has been updated and the documentation is now online: http://www.smartfrog.org/releasedocs/index.html Also, I have been working in a component wrapper to use any Apache ANT task from a SmartFrog component.=20 The code is in CVS and it is still work in progress but very usable. I have attached with this message the jar file for the component. To use it you only need to put the sf-ant.jar and ant.jar files in the Daemon classpath. For certain tasks you will need more ant libraries. There is not documentation yet but I have attached an example that uses several ANT tasks. The component uses the same names that Ant uses for Tasks and Types. In any case, the list is in:=20 org/smartfrog/services/ant/types.sf org/smartfrog/services/ant/tasks.sf Example: #include "org/smartfrog/components.sf" #include "org/smartfrog/services/ant/components.sf" sfConfig extends Ant { echoTask extends echo { message "hellow world!"; } copyTask extends copy { todir "tmp"; filtering "true"; myFileSet extends fileset { dir "."; includes "*.xml"; } myFilterSet extends filterset { myFiltersFile extends { AntElement "filtersfile"; =09 file "/filters.props"; } } } echoMedTask extends echo { message "-------------- End ------------"; } } See the attached file for more complex examples. Any feedback is welcome. Merry Christmas and Happy New Year! Julio Guijarro. |