- Jelly is a tool for turning XML into executable code. So Jelly is a Java and XML based scripting and processing engine.
Jelly 是一种将XML转变为可执行代码的工具。Jelly是基于java和xml的脚本处理引擎。 - You could think of Jelly as similar to an XML-ized Velocity where the directives are XML tags. Or you could think of Jelly as a more flexible engine for processing Ant tasks with better expression, logic and looping support.
Jelly可以被看做成XML化的Velocity模板语言,即将XML标签作为指令。
Jelly也可以看做为一个拥有更好的表达式语言,逻辑和循环支持的,更为灵活的执行ant 任务的引擎。 - XML elements can be bound to some Java code to implement some kind of dynamic processing. The default way to do this is to implement Jelly Tags which are Java Beans which also implement Jelly’s Tag interface.
XML元素可以和某些Java代码绑定来实现某种形式的动态处理。完成这种方式的默认方法是实现(implement)Jelly Tags,即相应的Java bean实现Jelly的tag接口( - When a Jelly script is run, the properties of the Jelly Bean are configured using the XML attributes. Then the tag is run by calling its doTag() method.
当jelly脚本执行的时候,Jelly bean的属性可以通过XML的属性来配置。tag之后将通过doTag()方法来运行。
粗略了解下Jelly。
目前Jelly被应用到antx工具中,而实现antx test的自动单元测试执行必须克服存在的几个问题。
- antx reactor test执行时,总控文件或者工程并不能自动将所有子工程下的测试(java.test)全部执行一遍。
- antx test 执行时依赖的classpath是src\java下的,而之前开发的测试基类BizBaseTest位于java.test目录下,所以在执行antx test命令时,java.test目录未包含在classpath中,导致执行单元测试时无法编译。
- 已有的不少工程代码中,部分单元测试存在已经无法编译通过的情况。
- 单元测试的命名需要确认是否满足antx test 插件中的规则。
- BizBaseTest在binary中无法发布为jar包,因为java文件下无代码。
- 如果可以选择的话,单元测试是基于Junit 3 或者Junit 4,还是TestNG。如果没有资源,则只能默认沿用之前的Junit 3.
- include uri="iwallet/biz/common?profile=TEST" 在project.xml中的作用。












0 Responses
Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.