JExecute Framework
1.What's JExecute?
JExecute is a pure Java open source project which can run xml as java code
2.How to start
2.1:download jexecute framework release1.0
2.2:unzip JExecute1.0.zip
2.3:run test code
windows:double click test.bat
*nix:./test.sh
2.4:see the result
3.How does it work?
two configure file:script.txt lang.txt
lang.txt:configure the runtime core class for the command wrote in the script.txt
for=org.jexecute.lang.For
if=org.jexecute.lang.If
print=org.jexecute.lang.Print
println=org.jexecute.lang.PrintLn
var=org.jexecute.lang.Var
while=org.jexecute.lang.While
rand=org.jexecute.lang.Rand
sleep=org.jexecute.lang.Sleep
script.txt:run with xml
<?xml version="1.0"?>
<script>
<for begin="1" end="10" var="i">
<rand var="r"/>
<println>random $i:$r</println>
</for>
</script>
result:
random 1:8417942362151832
random 2:3978593337874222
random 3:046892665329870464
random 4:5876828545029912
random 5:9007812950483433
random 6:21246873925139909
random 7:19880426468925116
random 8:51082293788043
random 9:5236877492642156
random 10:2670809806385541
4:thanks
sourceforge,dom4j,commons-beanutils
5:about author
dinghaijiang@sohu.com
dinghaijiang from China. 2006.7.7