facebook

[Closed] Ant in MyEclipse

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. Installation, Configuration & Updates
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #265327 Reply

    Mork
    Participant

    I am trying to learn to use Ant and am confused as to whether MyEclipse actually has an Ant editor, runner, and whatever else already installed.

    I did a search for “Eclipse Ant plug-in”, but got results that didn’t seem exactly what I thought (“AntView”?).

    If MyEclipse does have ant support, I’m not sure how to use it.

    If MyEclipse has ant support built in, does it help automate some of the drudgery with Ant?

    Thanks.

    M

    #265347

    Scott Anderson
    Participant

    Mork,

    Yep, Ant support is “in there”. What might be confusing you is that the editor framework determines what editor to open based on file content, not just the extension. What that means is that it “recognizes” Ant build files even though they have a .xml extension, whatever they’re named and that Open with… > Ant Editor should be available. So, if you have an Ant build file with any file name, the Ant editor will be available to edit it. However, to create a new Ant file, you need to use File > New > Other > General > File and name it ‘build.xml’. You’ll notice that it will open in the Ant editor and will provide content assist to help write your Ant file. To run your Ant file, just right-click on it in the Package Explorer view and select Run As… > Ant Build.

    #266035

    jhm
    Member

    There is also an AntView (as part of Eclipse): Window > Show View > Other > Ant::Ant

    You could drag&drop a buildfile onto that view and you’ll get the targets. A doubleclick on the target would run that.

    #266046

    Scott Anderson
    Participant

    Nice tip! Thanks for sharing it.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: [Closed] Ant in MyEclipse

You must be logged in to post in the forum log in