Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[pde-build-dev] Bug 34757: Support for other repository

Hi!

https://bugs.eclipse.org/bugs/show_bug.cgi?id=34757

I already attached a patch to this. What about the next steps? Is it
allowed to create a public API or should we keep it in an internal
package until there is a final decision?

I implemented this by creating an extension point and extracting the
fetch script generation API into an interface. Each interface must
implement this interface. 

Backward compatibility is retained! Current Eclipse map files still
work. However, the new format just adds a new first argument that
describes the fetch script type (eg. "CVS" for fetching from a CVS
location, "PATH" for fetching from a local path). If the ID is missing
or unknown CVS is assumed for backward compatibility.

----------
Example extension:
----------
<extension
   point="org.eclipse.pde.build.fetchScriptBuilder">
  <builder
    class="org.eclipse.pde.internal.build.PATHFetchScriptBuilder"
    id="PATH"/>
  <builder
    class="org.eclipse.pde.internal.build.CVSFetchScriptBuilder"
    id="CVS"/>
</extension>
----------

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

I also added a new fetch script generator for fetching from a local path
(like it is necessary when ClearCase is used).

Example:
feature@my.feature=PATH,D:/snapshot_views/stable,clearcase_vob/features/
my.feature-feature

Will fetch 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".


Cu, Gunnar


Back to the top