• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Devaka Cooray
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
Bartenders:

How to build a Ant based project in Eclipse?

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author
Posts: 3285
13
Mac OS X Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 3285
13
Mac OS X Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
I'm not dead! I feel happy! I'd like to go for a walk! I'll even read a tiny ad:
Paul Wheaton's 16th Kickstarter: Gardening playing cards for gardeners and homesteaders
https://coderanch.com/t/889615/Paul-Wheaton-Kickstarter-Gardening-playing
reply
    Bookmark Topic Watch Topic
  • New Topic