Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 51382 - Add "Export project to buildfile"
Summary: Add "Export project to buildfile"
Status: VERIFIED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Ant (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: 3.1 M6   Edit
Assignee: Kevin Barnes CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 80159
  Show dependency tree
 
Reported: 2004-02-09 14:40 EST by Darin Swanson CLA
Modified: 2005-04-23 08:40 EDT (History)
6 users (show)

See Also:


Attachments
eclipse2ant Plugin (85.25 KB, application/zip)
2004-11-24 15:53 EST, Richard . CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Darin Swanson CLA 2004-02-09 14:40:46 EST
From feedback from EclipseCon, users could make use of this functionality.

Using the structure of the Eclipse project, create an Ant build file that can 
be used to build the project external to Eclipse.
Comment 1 John-Mason P. Shackelford CLA 2004-02-09 20:58:07 EST
I'd like to work with whomever tackles this as I may have some ant tasks to
contribute which could help build Eclipse projects which have dependencies on
other Eclipse projects.
Comment 2 Darin Swanson CLA 2004-03-26 12:05:19 EST
Deferred to post 3.0
Comment 3 Adam Kiezun CLA 2004-05-07 17:34:40 EDT
i just spent some time looking for exactly this functionality - i wanted to
create an ant buildfile for someone who does not use eclipse.

and i don't feel like writting one from scratch myself

+1 here
Comment 4 Darin Swanson CLA 2004-08-26 13:18:03 EDT
Consider in 3.1
Comment 5 Richard . CLA 2004-11-24 15:53:46 EST
Created attachment 16110 [details]
eclipse2ant Plugin

As requested by Jared/Darin, I upload my eclipse2ant plugin. It is a possible
implementation of an ant export filter. Hereby I release it under EPL.
http://www.geocities.com/richard_hoefter/eclipse2ant/
Thanks for your interest :-)
Comment 6 Darin Swanson CLA 2004-11-25 01:28:14 EST
Thanks Richard. 
We are heading into the Thanksgiving break in the United States but we will 
soon "dive" into reviewing your contribution.
Comment 7 Darin Swanson CLA 2004-12-10 11:48:43 EST
We have received permission to proceed from the EMO and the PMC.
We will move forward after the release of M4 (Dec 17)
Comment 8 Darin Swanson CLA 2005-02-04 13:42:23 EST
Moving to M6...sorry for the slow progress...but progress is being made :-)
Comment 9 Darin Swanson CLA 2005-02-23 20:52:30 EST
An alpha cut has been released and will be in next weeks integration build (in 
time for EclispeCon!) so I would appreciate the "earlier the better" feedback 
from the CC list.
Comment 10 Marcello Teodori CLA 2005-03-16 11:19:54 EST
from the sample build files on the original web site I can see that the new include mechanism in ant 1.6 
is not used, could it be possible to have an option to do so?
Comment 11 Darin Swanson CLA 2005-03-21 23:08:05 EST
(In reply to comment #10)
> from the sample build files on the original web site I can see that the new 
include mechanism in ant 1.6 
> is not used, could it be possible to have an option to do so?

If using the import task in the generated buildfile is important to you please 
log a separate bug request for that issue.

Remaining items:
ensure correct error handling/reporting in exception cases
Comment 12 Darin Swanson CLA 2005-04-06 19:30:59 EDT
I am going to mark this as fixed in M6
I know there are likely bugs but we will report these separately as the 
majority of the feature is implemented.

Thanks again Richard.
Comment 13 Darin Swanson CLA 2005-04-06 19:31:45 EDT
Please verify Kevin.

I encourage the CC list to stress test this to find problems before we ship 
3.1. Thanks.
Comment 14 Kevin Barnes CLA 2005-04-08 09:34:46 EDT
verified
Comment 15 Richard . CLA 2005-04-23 02:25:36 EDT
I found a problem: Existing build files with empty lines get overwritten without
warning. 
Fix in method AntBuildfileExportPage.existsBuildFile():

Replace
    if (warning.startsWith(line))
with
    if (!line.equals("") && warning.startsWith(line))
Comment 16 Darin Swanson CLA 2005-04-23 08:40:55 EDT
Thanks Richard. Fixed applied.

In the future please open new bug reports for specific problems...easier for the
community to track the fixes etc.