Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Is Ant built-in/included in Eclipse v3.3.2?
Is Ant built-in/included in Eclipse v3.3.2? [message #332283] Thu, 16 October 2008 18:48 Go to next message
Eclipse UserFriend
Originally posted by: markmccloud200.email.com

Is Ant built-in/included in Eclipse v3.3.2 or do I have to install it seperately?

If I have to install it in addition: How do I execute build.xml as an ANT task?

In other words: How do I use Ant from within Eclipse (not from the command
line)?

Mark
Re: Is Ant built-in/included in Eclipse v3.3.2? [message #332284 is a reply to message #332283] Fri, 17 October 2008 00:19 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: codeslave.ca.ibm.com

It's included.

1. Open your Ant script in the Ant editor within Eclipse (you might need
to associate build.xml or *.xml with that editor first, using Window >
Preferences > File Associations).
2. Use ALT-SHIFT-X,Q to run the ant script; use ALT-SHIFT-D,Q to debug
the ant script.

OR

1. Drag the Ant script from Package Explorer into the Ant view.
2. Double-click the target within the script you want to run (or
right-click and you can select Debug As > Ant Build).



Mark McCloud wrote:
> Is Ant built-in/included in Eclipse v3.3.2 or do I have to install it seperately?
>
> If I have to install it in addition: How do I execute build.xml as an ANT task?
>
> In other words: How do I use Ant from within Eclipse (not from the command
> line)?
>
> Mark

--
Nick Boldt :: http://wiki.eclipse.org/index.php/User:Nickb
Re: Is Ant built-in/included in Eclipse v3.3.2? [message #332288 is a reply to message #332283] Fri, 17 October 2008 08:33 Go to previous messageGo to next message
Achim Loerke is currently offline Achim LoerkeFriend
Messages: 376
Registered: July 2009
Location: Braunschweig, Germany
Senior Member

On Thu, 16 Oct 2008 18:48:43 +0000 (UTC), markmccloud200@email.com
(Mark McCloud) wrote:

>Is Ant built-in/included in Eclipse v3.3.2 or do I have to install it seperately?

There is an Ant plug-in but I'm not sure if it's installed with all
packages. I have never installed an Ant seperately.

>
>If I have to install it in addition: How do I execute build.xml as an ANT task?
>
>In other words: How do I use Ant from within Eclipse (not from the command
>line)?

Open the Ant View from the "Window/Show View" menu and drag your ant
script into this view. If you use "build.xml" as file name this will
work directly, otherwise you should add your filename pattern to the
Ant preferences.


Achim
--
Achim Lörke

Eclipse-Stammtisch in the Braunschweig, Germany area:
http://www.bredex.de/de/news/events.html


Achim Lörke

Re: Is Ant built-in/included in Eclipse v3.3.2? [message #332303 is a reply to message #332283] Fri, 17 October 2008 15:31 Go to previous messageGo to next message
Andrew Niefer is currently offline Andrew NieferFriend
Messages: 990
Registered: July 2009
Senior Member
Eclipse 3.3.2 includes Ant 1.7.0.

Look in the plugins directory and you should see a folder
org.apache.ant_1.7.0.v200706080842
which is ant packaged up as an OSGi bundle.

You can run ant files by creating launch configurations under Run ->
External Tools -> External Tools Configurations...

The other methods that have been mentioned are really just shortcuts for
this.

Mark McCloud wrote:
> Is Ant built-in/included in Eclipse v3.3.2 or do I have to install it seperately?
>
> If I have to install it in addition: How do I execute build.xml as an ANT task?
>
> In other words: How do I use Ant from within Eclipse (not from the command
> line)?
>
> Mark
Re: Is Ant built-in/included in Eclipse v3.3.2? [message #332321 is a reply to message #332283] Sat, 18 October 2008 21:33 Go to previous message
Darin Swanson is currently offline Darin SwansonFriend
Messages: 2386
Registered: July 2009
Senior Member
Hey Mark

Eclipse 3.3.2 comes with Ant 1.7.0 included.
The simplest way to invoke an Ant build for your build.xml you can right
click to get the context menu>Run As>Ant Build
This will do the build starting with the default target.

If you need to get more fancy, use the context menu>Run As>Ant Build... to
configure the target, extra parameters, classpath, etc

To dig into more details, please check out:
http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclips e.platform.doc.user/concepts/concepts-antsupport.htm

HTH
Darins
http://www.runnerwhocodes.blogspot.com/

"Mark McCloud" <markmccloud200@email.com> wrote in message
news:gd82aa$nai$1@build.eclipse.org...
> Is Ant built-in/included in Eclipse v3.3.2 or do I have to install it
> seperately?
>
> If I have to install it in addition: How do I execute build.xml as an ANT
> task?
>
> In other words: How do I use Ant from within Eclipse (not from the command
> line)?
>
> Mark
Previous Topic:How do I detect which (latest) version of WTP is currently installed?
Next Topic:Contribute Run External Program Actions via Plugin
Goto Forum:
  


Current Time: Sat Apr 20 01:31:42 GMT 2024

Powered by FUDForum. Page generated in 0.03430 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top