This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes IDEs, Version Control and other tools and the fly likes How to build a Ant based project in Eclipse? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "How to build a Ant based project in Eclipse?" Watch "How to build a Ant based project in Eclipse?" New topic
Author

How to build a Ant based project in Eclipse?

Maninder Sahota
Greenhorn

Joined: Dec 08, 2008
Posts: 4
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

Joined: Jun 24, 2003
Posts: 3274
    
    5

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.


Cheers, Martijn - Blog,
Twitter, PCGen, Ikasan, My The Well-Grounded Java Developer book!,
My start-up.
Maninder Sahota
Greenhorn

Joined: Dec 08, 2008
Posts: 4
I am using Version: 3.4.1

I can find any such option as Import from Ant Build File
Maninder Sahota
Greenhorn

Joined: Dec 08, 2008
Posts: 4
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

Joined: Jun 24, 2003
Posts: 3274
    
    5

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to build a Ant based project in Eclipse?
 
Similar Threads
Runnable jar is not including the files
use a specific jvm with ant
import to eclipse
Eclipse Content Assist is not working while creating a project from an ant build file
Struts Application Deployment