I want to use Jelly tags (forEach, break, ...) through Ant. For instance executing script in loop or break execution if script is failed and target has more then one scripts. I know the Jelly can be invoked inside Ant. I downloaded commons-jelly-tags-ant-1.1.jar and place the jars in the lib directory. I added JellyTask and forEach tags to my target but unfortunately looks like I missed something or done wrong. I got error.
“Could not create task or type of type: JellyTask”
“Ant could not find the task or a class this task relies upon.”
I want to use Jelly tags (forEach, break, ...) through Ant. For instance executing script in loop or break execution if script is failed and target has more then one scripts. I know the Jelly can be invoked inside Ant. I downloaded commons-jelly-tags-ant-1.1.jar and place the jars in the lib directory. I added JellyTask and forEach tags to my target but unfortunately looks like I missed something or done wrong. I got error.
“Could not create task or type of type: JellyTask”
“Ant could not find the task or a class this task relies upon.”
Could you please advice what should I do?
<target name="run.batch" description="Run scripts">
<taskdef resource="ant/JameleonAntTasks.properties"
format="properties"
classpathref="classpath"/>
<JellyTask>
<forEach begin="1" end="2">
<jmln-test printTestSuiteSummary="true" waitTimeBetweenScripts="500" debug="true">
<fileset dir="scripts/admin">
<include name="test-transactions.xml"/>
</fileset>
</jmln-test>
<java classname ="common.TestRemoveFiles"
classpathref="classpath" >
</java>
</forEach>
</JellyTask>
</target>
I think your problem is you are using hte JameleonAntTasks.properties file to define the Jelly tags.
I have never done this, but I think the task you are looking for is org.apache.commons.jelly.task.JellyTask. Try googling for jelly ant tasks