Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 253268

Summary: merge start.sh and setup.sh
Product: z_Archived Reporter: Andrew Overholt <overholt>
Component: Dash AthenaAssignee: Common Build Inbox <dash.commonbuilder-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: aniefer, bjorn.freeman-benson, gunnar, nboldt, richard.gronback
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on: 252028, 253269    
Bug Blocks:    

Description Andrew Overholt CLA 2008-11-03 14:49:41 EST
start.sh should just do the setup.sh bits if they're not already in place
Comment 1 Nick Boldt CLA 2008-11-15 01:05:18 EST
... and this should be all Ant, if possible, so that we're as platform-independent as possible and even runnable within Eclipse.
Comment 2 Nick Boldt CLA 2009-02-26 03:27:09 EST
With the exception of copying ant-contrib.jar into the 3rdPartyJars dir, start.sh can now bootstrap itself. (Hudson version can perform that step too because it's reusing existing folders via symlink.)

Do we still need something to check for ant and java and wget and curl, etc.?

If so, see 253277.

build.xml can run in Eclipse if it's already bootstrapped by psf file (and ant-contrib.jar can be found). We can improve on that by implementing bug 265847 so that build.xml can use a .psf file to check out the other two required CVS projects.

Then, to really ice the cake, we could write some cheat sheet code to wrap these steps:

1. check for existing workspace projects, prompt to delete if found
2. check out required projects from cvs/svn using psf file converted to an ant build script (bug 265847)
3. make sure that ant-contrib can be found in one of the 4 valid locations
4. mention SVN PDE plugin requirement if project sources are in SVN
5. run a build

As a plugin (eg., for a workshop @ EclipseCon), this cheatsheet code could include a psf/build.xml to checkout all three projects, including SVN PDE plugin and ant-contrib.jar. 
Comment 3 Nick Boldt CLA 2009-03-03 02:07:47 EST
Cheatsheets started in /cvsroot/technology/org.eclipse.dash/athena/org.eclipse.dash.commonbuilder/org.eclipse.dash.common.releng.tutorial - current code is a dump of what I used for last year's EclipseCon presentation.
Comment 4 Nick Boldt CLA 2009-03-20 01:17:55 EDT
We won't be doing cheatsheets since the 'run a build in eclipse' process is now pretty simple:

http://wiki.eclipse.org/Common_Build_Infrastructure/Getting_Started/Build_In_Eclipse

Otherwise, as start.sh can bootstrap itself, this bug is closed.