views:

30

answers:

1

I'm using sphinx for some software documentation because it seems to work really well... but my project is a java project and I would like to run sphinx from an ant script.

Has anyone written a custom ant task to call sphinx?

+1  A: 

No on the sphinx specific question.

However (you probably already know this): You can run practically any program, especially any command line application, using ant's exec task.

Carl Smotricz
If you wanted, you could wrap the `exec` task in a `macrodef` and have a more descriptive `sphinx` task in the build file.
matt
I defined an exec task and it worked well. Just goes to show you should try the mundane approaches first before the clever ones.
Jason S