Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipse-dev] Source builds with source code in the .zip files

Hi Jim,

The build scripts included in the source build downloads are mostly
pde-build generated for a specific build , and expect the directory
structure:

<install>
      features
      plugins

As a result, the paths in the generated feature build scripts would need to
be changed if compiling from a different directory structure.  The approach
you suggest is not incorrect, but may amount to a lot of work.  Also your
work would be overwritten if the scripts are regenerated by PDE-BUILD.  It
is possible that PDE-BUILD should be changed to produce something more
along the lines of what you describe.  However, I know they did go down
this path at one point and things became very confusing, very quickly.  I
suspect some of the PDE developers would have more insight.

The simplest solution may be to have a workspace organized so that it has
the structure described above, with the scripts copied into place.  It may
also prevent unwanted "surprises" to have the matching plugin and features
checked out for the scripts you have downloaded (tags in the fetch*.xml),
since they are generated for those specific versions.

Thanks for your feedback.

As an aside, I propose we move this discussion into the platform-releng-dev
and pde-dev discussion lists since we are getting into pretty specific
areas.

Sonia



                                                                                                                                        
                      "Jim Sculley"                                                                                                     
                      <niceguy@abraxis.c        To:       <eclipse-dev@xxxxxxxxxxx>                                                     
                      om>                       cc:                                                                                     
                      Sent by:                  Subject:  Re: [eclipse-dev] Source builds with source code in the .zip files            
                      eclipse-dev-admin@                                                                                                
                      eclipse.org                                                                                                       
                                                                                                                                        
                                                                                                                                        
                      07/13/2002 12:58                                                                                                  
                      PM                                                                                                                
                      Please respond to                                                                                                 
                      eclipse-dev                                                                                                       
                                                                                                                                        
                                                                                                                                        




On Thursday 11 July 2002 02:55 pm, Dean Roberts wrote:
> Hi folks,
>
> As promised yesterday we have added a 2nd flavour of source build.  There
> is now a small zip that will fetch Java source code and resources from
cvs
> on dev.eclipse.org to do the build and a larger zip that already contains
> all the Java source code.

Excellent.

> Please let us know about any problems you find.

Hmmmm.  If I have already checked out the Eclipse source into my Eclipse
workspace as separate projects for each feature/plugin, is there a way to
let
the source build scripts know about it?  I'm no Ant guru, but at first
glance
it looks like the various scripts aren't set up to do that.

They all use '${install}/features' or '${install}/plugins' throughout,
which
doesn't seem to be compatible a workspace filled with separate projects for

each feature/plugin.

Would it be sufficient to replace those paths with the correct ones?  For
example, the 'compileSwt' task looks like this:

<target name="compileSwt" depends="init">
<!--  Compile dependencies require that the swt.jar be compiled first  -->
    <ant antfile="${install}/plugins/org.eclipse.swt.${ws}/build.xml"
         target="clean"
         dir="${install}/plugins/org.eclipse.swt.${ws}" />
    <ant antfile="${install}/plugins/org.eclipse.swt.${ws}/build.xml"
         target="build.jars"
         dir="${install}/plugins/org.eclipse.swt.${ws}" />
</target>

If (per instructions) I put the various scripts from the source build .zip
file in their own project (which in my case would put it alongside all the
feature/plugin projects checked out from CVS), and then changed the
compileSwt task so that it looked like:

<target name="compileSwt" depends="init">
<!--  Compile dependencies require that the swt.jar be compiled first  -->
    <ant antfile="../org.eclipse.swt.${ws}/build.xml"
         target="clean"
         dir="../org.eclipse.swt.${ws}" />
    <ant antfile="../org.eclipse.swt.${ws}/build.xml"
         target="build.jars"
         dir="../org.eclipse.swt.${ws}" />
</target>

Is this the correct approach?

My goal is to be able to fetch from CVS using Eclipse as opposed to Ant,
which provides very little feedback on what it is doing.  After fetching, I

want to use the other tasks (e.g. compile) in the 'build.xml' file to do
the
rest of the work.

I think I'm on the right track, but before I spend the time tweaking all
this
XML, I'd like a 'reality-check' from those more familiar with the build
process.

Any help is appreciated,

Jim S.
_______________________________________________
eclipse-dev mailing list
eclipse-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/eclipse-dev






Back to the top