Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 214909 - Bootstrap PDE Build with just ant
Summary: Bootstrap PDE Build with just ant
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: LinuxTools (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Alexander Kurtakov CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 280685
  Show dependency tree
 
Reported: 2008-01-10 11:01 EST by Andrew Overholt CLA
Modified: 2022-01-13 14:51 EST (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Overholt CLA 2008-01-10 11:01:26 EST
It would be nice for Linux distributions if we could get a source drop of the SDK without the pre-generated build.xml files (see [1] for some background).  In order for that to be useful, though, we'll need to bootstrap PDE Build so that it can be used to generate the build.xml files for us.  I'm envisioning something like:

1) decompress source drop which doesn't have build.xml (and other generated) files
2) build PDE Build with just ant
3) use bootstrap PDE Build to generate PDE Build's build.xml
4) build PDE Build using the generated build.xml
5) use PDE Build to generate the rest of the build.xml files
6) build the SDK

DJ, does this make sense or am I way off base here?  Do you have any suggestions for how to proceed?

[1]
http://dev.eclipse.org/mhonarc/lists/linux-distros-dev/msg00321.html
Comment 1 Andrew Overholt CLA 2008-01-10 12:20:53 EST
Adding a few more CCs.
Comment 2 Andrew Niefer CLA 2008-01-10 13:13:45 EST
Note that (2) is more than just pde.build, you basically need to bootstrap the equivalent of the basebuilder.  This is something like 16 bundles or so. 
This might not be all that bad if you accept pre-generated build scripts for this part (like the current source builds, but simpler since it isn't the entire eclipse).

Or, if you can accept using pre-built binaries for the basebuilder, and maybe just build the pde.build, then is much simpler.
Comment 3 Andrew Overholt CLA 2008-01-10 13:25:35 EST
Yeah, I realized that after looking at a generated build.xml for PDE Build :)  I think pre-generated build scripts for that part are perfectly okay.  Much better than pre-built binaries.
Comment 4 DJ Houghton CLA 2008-01-11 05:57:41 EST
Yeah this seems like a good direction. I remember when I first started putting together the build for p2 I was trying to get a minimal builder but it ended up bringing a lot of things in which was unfortunate so I think pre-generated build scripts for at least that part is the way to go.
Comment 5 Andrew Overholt CLA 2008-09-30 14:12:28 EDT
Tentatively setting 1.0 target.
Comment 6 Andrew Overholt CLA 2009-01-13 16:06:58 EST
Alex is working on this.  eclipse-build in Linux Tools SVN.  I'll let him comment as to what 3.5 milestone we're targetting.
Comment 7 Andrew Overholt CLA 2009-04-27 12:02:19 EDT
Alex is working on this as part of his eclipse-build project.  It is mostly working and we're going to include the eclipse-build stuff as part of our 0.3 release in July if it can produce a working Eclipse SDK.
Comment 8 Andrew Overholt CLA 2009-07-22 16:58:30 EDT
This work is now finished.
Comment 9 Andrew Overholt CLA 2009-07-22 17:19:20 EDT
See revision 22560 and earlier in eclipse-build.  We include pre-generated build.xml files for PDE Build and its dependencies and use them to bootstrap the build.  We then use the bootstrapped PDE Build & friends much like basebuilder is used by others.
Comment 10 Andrew Niefer CLA 2009-07-22 17:26:43 EDT
(In reply to comment #9)
> See revision 22560 and earlier in eclipse-build.  We include pre-generated
> build.xml files for PDE Build and its dependencies and use them to bootstrap
> the build.  We then use the bootstrapped PDE Build & friends much like
> basebuilder is used by others.
> 

In general, you would only really want to do this for major milestones/releases where you can believe that the pde.build you're bootstrapping is stable enough to actually perform the entire build.
Comment 11 Andrew Overholt CLA 2009-07-22 17:35:24 EDT
(In reply to comment #10)
> (In reply to comment #9)
> > See revision 22560 and earlier in eclipse-build.  We include pre-generated
> > build.xml files for PDE Build and its dependencies and use them to bootstrap
> > the build.  We then use the bootstrapped PDE Build & friends much like
> > basebuilder is used by others.
> > 
> 
> In general, you would only really want to do this for major milestones/releases
> where you can believe that the pde.build you're bootstrapping is stable enough
> to actually perform the entire build.

Understood.  I don't imagine we'll be doing it more than major releases.

Thanks again for the help, Andrew!