• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Eclipse and Ant

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

I have build.xml for deploying my web aplication in Eclipse. I run it by right-clicking and selecting Run->Ant Build. I want to add the "-logger org.apache.tools.ant.listener.MailLogger" option so that an email will be sent out after the build runs. When I run this from the command line it works perfectly, but I can't get it to work from Eclipse. Exactly where do I have to specify the "-logger" option and what syntax do I use to get this to work via right-click->Run??

My thanks in advance.
 
Ranch Hand
Posts: 225
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Try right-click-->Run as->Ant build...

You'll see a preferences dialog, go to the main tab and add your command line arguments.

And take a look at the menu Run->External tools->External tools...

Here you can pre-configure some ant launches configurations wich will be accessible from the toolbar.
 
reply
    Bookmark Topic Watch Topic
  • New Topic