• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to build a Ant based project in Eclipse?

 
Maninder Sahota
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone,

I am new to world of ANT. And I have a folder which is related to a project in J2ME, this folder contains various XML files as required by ANT project. I want to import this project into Eclipse and build ti and run it on PC. But I am not able to find .PROJECT file in any of subfolders of ROOT folder. So I can not import this into Eclipse as Eclipse can nto find project file. Is there any way I can regenerate the project file or make a project again. I have all required XML files like build.xml and other property xml files.

This question might seem very basic, but then this is my first hand experience with J2Me and ANT. Any help would be great.

regards
Maninder
 
Martijn Verburg
author
Bartender
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Maninder and welcome to Javaranch!

What version of eclipse are you using? You should be able to select a File-->New Project-->Java-->From Existing Ant Build File option in Eclipse to import your project.
 
Maninder Sahota
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using Version: 3.4.1

I can find any such option as Import from Ant Build File
 
Maninder Sahota
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think I might need to do File->New->Project then select from existing source. Then try building using existing ANT build.xml file
 
Martijn Verburg
author
Bartender
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try File-->New-->Other

You'll then see a pop-up window with many options. Open up Java and you will see the option "Java Project from Existing Ant Buildfile"

I'm also moving this to the IDE forum.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic