| By David Heffelfinger | Article Rating: |
|
| June 16, 2005 10:00 AM EDT | Reads: |
43,609 |
To export your project settings to an ANT build file:
- In your navigator window, look for a file called ".project"
- Right click on the file and click on "export"
- On the window that pops up, select "Ant Buildfiles" and click on "next"
- Select the appropriate project to use to generate the ANT buildfile
- Click "finish"
You should now have two new build files on your project, "build.xml" and build-user.xml.
Any custom targets you create should go on build-user.xml, since build.xml will be overwritten every time a build file is generated.
To create a project from an existing ANT buildfile:
- Click on File->New->Project
- Select "Java Project from existing Ant Buildfile" and click "next"
- Enter a project name, and select the build file to use to create the project
- Select the javac declaration to be used to define the project
- Click finish
I hope these instructions are helpful to others out there.
Published June 16, 2005 Reads 43,609
Copyright © 2005 SYS-CON Media, Inc. — All Rights Reserved.
Syndicated stories and blog feeds, all rights reserved by the author.
More Stories By David Heffelfinger
David Heffelfinger blogs at http://dheffelfinger.blogspot.com/.
![]() |
Steve Cohen 04/10/08 02:22:37 PM EDT | |||
I also have this problem. It would appear that the purpose of this function is to import build files that were created by exporting an existing Eclipse java project buildfile. It is not intended to be able to import any random build.xml, which might contain just about anything and could hardly be expected to work. Even relatively simple build.xml's do not necessarily yield projects that "work right" with the eclipse automated builder. |
||||
![]() |
gary 05/16/06 09:56:12 AM EDT | |||
I have the exact same problem as Erik does. A complex root build file that does not contain a javac task defined in the root build file but the sub projects do have a javac task defined. I cannot create an Eclipse project from an existing ant build file. What is the solution? |
||||
![]() |
erik 09/08/05 08:00:05 AM EDT | |||
this solution works only when you have defined a javac task in your build file. when you have a more complex project structure, with sub projects (every sub project contains it's own build file system) and you have a root build file to build the whole project than this solution does not work. on my experience eclipse don't walk through the ant tasks in the build file and search for javac tasks through the other build files in the project :( for any solution about this problem feel free to inform me ;) - mailto:faithnomore@gmx.at |
||||
- Acquia Announces Two New Board Members
- CollabNet Adds Board Member and Senior Executives to Fuel Continued Growth in Agile ALM and Enterprise Cloud Development
- Learn Open Source Database Tools from Stanford for Free
- Research and Markets: Global Mobile Device Management Enterprise Software Market 2010-2014 Includes a Discussion of the Key Vendors Operating in This Market
- Alternative Search Engines for the Contemporary User
- FORTUNE Magazine Names Rackspace Among “100 Best Companies to Work For”
- New York City : Blueprint for Cloud-enabled economic transformation
- EnterpriseDB Announces Availability of Postgres Plus Cloud Database
- Connectria Hosting Achieves "Off the Chart" Operational Efficiency With Cloud-Based Storage Solution From Nexsan and CommVault
- ICOS and Joyent Announce Strategic Partnership to Deliver Joyent's Cloud Infrastructure Solution to Channel Partners and Service Providers
- eXo Platform 3.5 Now Available: First Cloud-Ready Enterprise Portal and User Experience Platform-as-a-Service (UXPaaS)
- Research and Markets: WordPress 24-Hour Trainer, 2nd Edition
- Five Years Waiting for JRE 7: Is It Justified? (Part 1)
- Book Review: The CERT Oracle Secure Coding Standard for Java
- Acquia Announces Two New Board Members
- CollabNet Adds Board Member and Senior Executives to Fuel Continued Growth in Agile ALM and Enterprise Cloud Development
- Learn Open Source Database Tools from Stanford for Free
- China suppliers of mobile phones expand range with more smartphone and 3G models
- Research and Markets: Global Mobile Device Management Enterprise Software Market 2010-2014 Includes a Discussion of the Key Vendors Operating in This Market
- Government Big Data Solutions Award Nominee: Wayne Wheeles (Sherpa Surfing)
- Alternative Search Engines for the Contemporary User
- FORTUNE Magazine Names Rackspace Among “100 Best Companies to Work For”
- New York City : Blueprint for Cloud-enabled economic transformation
- EnterpriseDB Announces Availability of Postgres Plus Cloud Database
- Java Developer's Journal Exclusive: 2006 "JDJ Editors' Choice" Awards
- The i-Technology Right Stuff
- Creating Web Applications with the Eclipse Web Tools Project
- Eclipse Special: Remote Debugging Tomcat & JBoss Apps with Eclipse
- The Next Programming Models, RIAs and Composite Applications
- Where Are RIA Technologies Headed in 2008?
- SYS-CON Webcast: Eclipse IDE for Students, Useful Eclipse Tips & Tricks
- How to Bring Eclipse 3.1, J2SE 5.0, and Tomcat 5.0 Together
- Eclipse: The Story of Web Tools Platform 0.7
- "Eclipse 3.0 is a Great Leap Forward," Says JDJ's Dudney
- The Top 250 Players in the Cloud Computing Ecosystem
- Developing an Eclipse BIRT Report Item Extension





















