Page 1 of 1

Integrating Oxygen into ANT

Posted: Fri Apr 30, 2010 5:52 pm
by stwissel
How can I call the Oxygen Schema documentation task from an ANT script? My script extracts a schema out of my application and I'd love to have that automatically documented. I found the command line task schemaDocumentation.sh but nothing about ANT. (I found how to integrate ANT into oXygen, but not oXygen into ANT.

Re: Integrating Oxygen into ANT

Posted: Fri Apr 30, 2010 5:59 pm
by Radu
Hi,

You can execute external processes from ANT.
See: http://ant.apache.org/faq.html#batch-shell-execute
So having the schemaDocumentation.sh should be enough.

Regards,
Radu

Re: Integrating Oxygen into ANT

Posted: Fri Apr 30, 2010 6:41 pm
by stwissel
Hi Radu,
thx for replying.
Radu wrote: You can execute external processes from ANT.
Would that work? Start another JVM from inside a Java application (the sh files starts a JVM after all. Wouldn't it be better if we can use the Java class directly ANT can call Java classes... if the implement the matching interfaces (might work otherwise too??).

Thoughts on that?

Re: Integrating Oxygen into ANT

Posted: Mon May 03, 2010 8:40 am
by Radu
Hi,

Yes, ANT can invoke an external process even if it is Java based.
Actulally the schemaDocumentation.sh calls a Java class:
ro.sync.xsd.documentation.XSDSchemaDocumentationGenerator with certain parameters and a certain library class path. So you can also look in the shell for more details.

Regards,
Radu