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. Advertisements

  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. Advertisements

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,627
  2. vnssoftware

    Ant java task to start application

    vnssoftware, Feb 23, 2004, in forum: Java
    Replies:
    22
    Views:
    11,600
    vnssoftware
    Mar 2, 2004
  3. john martin
    Replies:
    2
    Views:
    2,453
    john martin
    Apr 7, 2005
  4. Replies:
    1
    Views:
    789
    Larry
    Mar 7, 2006
  5. Steinar Bang
    Replies:
    0
    Views:
    650
    Steinar Bang
    Aug 10, 2003
  6. eric_bellard
    Replies:
    1
    Views:
    5,535
    CarlosRivera
    Oct 7, 2004
  7. Replies:
    6
    Views:
    1,172
  8. Matthias Koch

    using ant inside glassfish app

    Matthias Koch, May 26, 2010, in forum: Java
    Replies:
    0
    Views:
    371
    Matthias Koch
    May 26, 2010
Loading...