| By David Heffelfinger | Article Rating: |
|
| June 16, 2005 10:00 AM EDT | Reads: |
25,831 |
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 25,831
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 |
||||
- IBM Puts Systems Chief on Leave of Absence
- Amazon Web Services Database in the Cloud
- SpringSource Moving to Spring 3.0
- Un-Clouding Federal Security Compliance
- United Planet offers practical portal building tips for SMBs
- The Bunker achieves PCI DSS Compliance
- Developing APIs for the Cloud
- Qt DevDays 2009 - Munich
- Canonical Offers Free Cloudware
- New-Generation Virtualization Technologies with Ultra Low-Cost Endpoints
- Microsoft Nudges Eclipse Developers to Windows-Ware
- Trusting the Cloud
- Oracle-Sun: IBM Reportedly Behind Delay
- The Case for Single-Purpose Services
- Current Trends in the Data Management Market
- IBM Puts Systems Chief on Leave of Absence
- Cloud BI & Amazon VPC
- The Curious Case of Build Release Management eBook
- Cloud-Oriented Switch Start-up Valued at $230M
- Tips for Efficient PaaS Application Design
- Reporting Solutions Using Crystal Reports for Eclipse
- Amazon Web Services Database in the Cloud
- SpringSource Moving to Spring 3.0
- Five Ways to Incorporate CMMI with Agile Methods
- 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?
- 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
- Eclipse Special: Bill Dudney Looks at New Stuff in M9





































