SmartFrog.3.08.004 released and ANT component.

"Guijarro, Julio" <[email protected]>
Newsgroups gmane.comp.java.smartfrog.devel,gmane.comp.java.smartfrog.user
Message-ID <[email protected]>
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. 

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: 
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"; 	
           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.
example.sf (application/octet-stream, 6.3 KB) - not displayed
sf-Ant-3.08.005.jar (application/octet-stream, 63.2 KB) - not displayed
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.