You can simply add the following to a target.
For the following wsadmin should be in your PATH env.
< exec dir="." executable="wsadmin.bat" logError="true" failonerror="true" output="wsconfig.out" >
< arg line="-lang jython -f ../../createQFactory.py"/ >
< /exec >
All output will be logged to wsconfig.out
On my way to my solution store just found this nice to use, old and easy feature.
Possibilities endless, usage typically very easy.
I used the following to generate XML from sqlplus:
select dbms_xmlgen.getxml('select * from user') from dual;
< ROWSET >
< ROW >
< TNAME >Employee< / TNAME >
< TABTYPE > TABLE < / TABTYPE >
< / ROW >
< / ROWSET >