facebook

How do I load my Ant master build file into MyEclipse?

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #240694 Reply

    lawrieg
    Member

    Hi,

    I am trying to import a project which of made up of several Web modules and Java modules into MyEclipse. I can load each of the modules as a separate WAR or Java projects, but then how do I load in my master Ant build file that I use to call targets on all the modules? It currently is in a parent directory of the modules’ directories, and when I try to load it into Eclipse using the “Java Project from Existing Ant File” the dialog complains that “Specified buildfile does not contain a javac task”. I’d like to load this Ant file into MyEclipse so that I can edit it, and call targets on it from within MyEclipse, but I’m not sure how I should do this…

    Any ideas?

    Thanks in advance,
    Lawrie.

    #240704 Reply

    Scott Anderson
    Participant

    Lawrie,

    One of the features of MyEclipse is that it automates compilation and deployment of your applications so you don’t normally need an Ant build file.

    I can load each of the modules as a separate WAR or Java projects,

    That’s exactly the way you should do it. Each MyEclipse Web project can then be deployed using the Deployment Manager dialog to any configured application server. Infomation on how to use our web projects is in the “Working with Web Projects” quickstart in the Documentation Section. In the advanced section is information on how to get MyEclipse to deploy your Java projects if your web projects need them in order to function properly. But all this is automatic, once configured.

    However, if you really want to keep your ant file in a project, don’t import it. The easiest way to incorporate it is to just drag it into a project from the Windows Explorer view of the file system. It will simply be an XML file in your project that you can then execute tasks by right clicking and selecting Run As.. > Ant build…

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: How do I load my Ant master build file into MyEclipse?

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