soi-toolkit / soi-toolkit-mule

SOI Toolkit and Mule ESB
Apache License 2.0
6 stars 1 forks source link

Add support for groovy based generators, i.e. not only GStringTemplate based generators #157

Closed hdahl closed 9 years ago

hdahl commented 9 years ago

Original issue 157 created by soi-toolkit on 2011-06-21T05:35:46.000Z:

Could be useful to example for Groovy class that creates XML-files using the XML-MarkupBuilder.

hdahl commented 9 years ago

Comment #1 originally posted by soi-toolkit on 2011-06-21T05:36:47.000Z:

<empty>

hdahl commented 9 years ago

Comment #2 originally posted by soi-toolkit on 2011-06-21T05:42:01.000Z:

This issue was closed by revision r1261.

hdahl commented 9 years ago

Comment #3 originally posted by soi-toolkit on 2011-06-21T05:42:49.000Z:

Commit comment from r1261:

  1. Added the interface FileGenerator.java for Java or Groovy classes to implement.
  2. Added helper method generateContentAndCreateFileUsingGroovyGenerator() in GeneratorUtil.java
  3. Added a testcase, GroovyGeneratorUtilTest.java, and a sample XML- MarkupBuilder based GroovyGenerator, MyTestGroovyGenerator.groovy, to verify that is works as expected and as an example for users