Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[pde-build-dev] Fwd: PDE Build

FYI

-------- Original Message --------
Subject: Re: PDE Build
Date: Tue, 29 Nov 2005 10:37:18 +0100
From: Gunnar Wagenknecht <gunnar@xxxxxxxxxxxxxxx>
To: bracken@xxxxxxxxxxxx


Peter Bracken wrote:
> I'm interested in the patch to the PDE Build System that you provided. I
> am not too familiar with patches. It looks like just a list of changes 
> to the source that you made. Is this correct? I'm working in a Windows 
> environment, is it possible to use Eclipse to apply the patch to my
> source?

Yes, that's an interesting feature of the Eclipse CVS Plug-in. You
checkout something from CVS, modify it and create a patch. Later you can
apply this patch in any workspace. :) See Team -> Create/Apply Patch...

> Also, it sounds to me like you have created a new extension point in 
> your patch, am I right? If so, I should be able to write my own 
> SubversionFetchScriptGenerator class and plug it into your extension
> point.
> Can you describe your patch to me in a little bit more detail please?

Well, the patch extracts the CVS specific parts from
FetchScriptGenerator into a pluggable FetchScriptBuilder (see
CVSFetchScriptBuilder). It also introduces a new COPYFetchScriptBuilder,
which generates plain copying Ant tasks for copying features and plugins
into the build environment.

The decide which FetchScriptBuilder to use the map file syntax was
expanded. The first argument is now expected to be the ID of a
FetchScriptBuilder to use.

In general, the new format is:
type@element=<BUILDERID>,otherArgs,..

Example:
feature@my.feature=COPY,D:/snapshot_views/stable,clearcase_vob/features/my.feat
ure-feature

Will copy feature "my.feature" from
"D:/snapshot_views/stable/clearcase_vob/features/my.feature-feature".

Property "fetchTag" is also supported to define another location.
If "fetchTag" is set to "D:\snapshot_views\latest" the effective path
would be
"D:/snapshot_views/latest/clearcase_vob/features/my.feature-feature".

The old syntax is *still* support:
plugin@org.eclipse.draw2d=I20040619,:pserver:anon...

and can be combined with the new:
plugin@org.eclipse.draw2d=CVS,I20040619,:pserver:anon...

If you want to integrate Subversion you just need to build a
FetchScriptBuilder that knows about Subversion specific Ant tasks and
generates them into the fetch scripts.

Cu, Gunnar

-- 
Gunnar Wagenknecht
gunnar@xxxxxxxxxxxxxxx
http://wagenknecht.org/


-- 
Gunnar Wagenknecht
gunnar@xxxxxxxxxxxxxxx
http://wagenknecht.org/




Back to the top