Using ant inside a java application?

Discussion in 'Java' started by Marc Eckart, May 10, 2005.

  1. Marc Eckart

    Marc Eckart Guest

    Hi,

    I have written a source generator which, the name points out :), generates
    source code. Now I want to compile the output and do some other stuff with
    the class files. I have an ant build.xml which has the necessary tasks, but
    I don't know how to call them from inside my application.

    I looked at the manual and the javadocs of ant, but it doesn't brought me
    any further....

    Any suggestions?

    Greetz,
    Marc
    Marc Eckart, May 10, 2005
    #1
    1. Advertising

  2. Hi,

    Look at the scripts that launch ant (bat, sh)

    They all call the class org.apache.tools.ant.Main followed by usual options.
    This (and maybe ant sources) may help you start.

    Regards,

    Arnaud

    "Marc Eckart" <> a écrit dans le message news:
    d5qei8$fcf$-darmstadt.de...
    > Hi,
    >
    > I have written a source generator which, the name points out :),

    generates
    > source code. Now I want to compile the output and do some other stuff with
    > the class files. I have an ant build.xml which has the necessary tasks,

    but
    > I don't know how to call them from inside my application.
    >
    > I looked at the manual and the javadocs of ant, but it doesn't brought me
    > any further....
    >
    > Any suggestions?
    >
    > Greetz,
    > Marc
    >
    >
    Arnaud Berger, May 10, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Chris Bedford
    Replies:
    6
    Views:
    2,208
  2. john martin
    Replies:
    2
    Views:
    2,200
    john martin
    Apr 7, 2005
  3. Replies:
    1
    Views:
    484
    Larry
    Mar 7, 2006
  4. Steinar Bang
    Replies:
    0
    Views:
    531
    Steinar Bang
    Aug 10, 2003
  5. Replies:
    6
    Views:
    854
Loading...

Share This Page