| By David Heffelfinger | Article Rating: |
|
| June 16, 2005 10:00 AM EDT | Reads: |
23,448 |
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 23,448
Copyright © 2005 SYS-CON Media, Inc. — All Rights Reserved.
Syndicated stories and blog feeds, all rights reserved by the author.
About 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 |
||||
- Java Kicks Ruby on Rails in the Butt
- Ulitzer’s Amazing First 30 Days in Public Beta
- "Government IT Expo" to Highlight Cloud Computing and SOA
- Will Ulitzer Dominate News Content on The Web? -Gartner
- Building Private and Hybrid Clouds with Ubuntu 9.04
- Ulitzer vs. Ning - a Quick Review
- Eclipse.Org Releases Swordfish Next-Generation ESB for SOA
- Ted Weissman and Lois Paul & Partners PR Firm
- New Eclipse Plugin Adds Cloud Hosting for Java, PHP and Rails Applications
- Software AG Comments on Oracle-Sun Acquisition
- Java Kicks Ruby on Rails in the Butt
- IBM Named “Platinum Sponsor” of SYS-CON's Virtualization Conference
- Ulitzer’s Amazing First 30 Days in Public Beta
- "Government IT Expo" to Highlight Cloud Computing and SOA
- Cloud Computing Expo Keynote to Be Delivered by IBM's CTO Kristof Kloeckner
- Will Ulitzer Dominate News Content on The Web? -Gartner
- Micro Focus Offers Micro Focus COBOL for Eclipse
- Building Private and Hybrid Clouds with Ubuntu 9.04
- Sun CEO Reviews Company's Prospects for 2009-10
- Virtualization & Cloud Computing Expo Attracts More Delegates Than Gartner
- 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
- How to Bring Eclipse 3.1, J2SE 5.0, and Tomcat 5.0 Together
- SYS-CON Webcast: Eclipse IDE for Students, Useful Eclipse Tips & Tricks
- Eclipse: The Story of Web Tools Platform 0.7
- "Eclipse 3.0 is a Great Leap Forward," Says JDJ's Dudney
- Developing an Eclipse BIRT Report Item Extension






































