Integrating Oxygen into ANT

Oxygen general issues.
stwissel
Posts: 5
Joined: Fri Apr 30, 2010 5:15 pm
Contact:

Integrating Oxygen into ANT

Post 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.
Radu
Posts: 9472
Joined: Fri Jul 09, 2004 5:18 pm

Re: Integrating Oxygen into ANT

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
stwissel
Posts: 5
Joined: Fri Apr 30, 2010 5:15 pm
Contact:

Re: Integrating Oxygen into ANT

Post 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?
Radu
Posts: 9472
Joined: Fri Jul 09, 2004 5:18 pm

Re: Integrating Oxygen into ANT

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply