Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Subversive » PDE Subversive Generates incomplete FetchScript
PDE Subversive Generates incomplete FetchScript [message #482165] Tue, 25 August 2009 14:57 Go to next message
Chris Eagan is currently offline Chris Eagan
Messages: 5
Registered: July 2009
Junior Member
The problem I am having is that the FetchScript generated by Subversive
appears to abruptly end and therefore cannot be executed by Ant.

I am building using the PDE Product Build method, which requires checking
out the feature containing the product manually in the postSetup target of
the customTargets.xml file which I have done as follows:

<!-- Must manually fetch the product -->
<ant antfile="${genericTargets}" target="fetchElement">
<property name="type" value="feature" />
<property name="id" value="com.redacted.redacted.feature" />
</ant>

This uses the map file for SVN to generate a fetch script for the single
feature that I need, which contains the product file. The map file
contains this line:

feature@com.redacted.redacted.feature=SVN,url= https://host/svn/redacted,tag=trunk,path=features/com.redact ed.redacted.feature,username=redacted,password=redacted

When the build is executed, a fetch script file named
"fetch_com.redacted.redacted.feature.xml" is generated. This file contains
the following:

<?xml version="1.0" encoding="UTF-8"?>

<!-- Fetch script for feature@com.redacted.redacted.feature -->

<project name="FetchScript" default="fetch">
<property name="quiet" value="true"/>

<target name="fetch">
<antcall target="fetch.element"/>
<antcall target="fetch.plugins"/>
<antcall target="fetch.recursively"/>
</target>
<target name="fetch.element" if="featureOnly">
<available
property=" ${buildDirectory}/features/com.redacted.redacted.feature/fea ture.xml "
file=" ${buildDirectory}/features/com.redacted.redacted.feature/fea ture.xml "/>
<antcall target="FetchFromSVN">
<param name="revision" value="HEAD"/>
<param name="fileToCheck"
value=" ${buildDirectory}/features/com.redacted.redacted.feature/fea ture.xml "/>
<param name="username" value="redacted"/>
<param name="elementName" value="com.redacted.redacted.feature"/>
<param name="tagPath" value="trunk"/>
<param name="tag" value="trunk"/>
<param name="path" value="features/com.redacted.redacted.feature"/>
<param name="destinationFolder" value="${buildDirectory}/features"/>
<param name="force" value="false"/>
<param name="peg" value="HEAD"/>
<param name="password" value="redacted"/>
<param name="url" value="https://host/svn/redacted"/>
</antcall>
</target>
<target name="fetch.plugins" if="featureAndPlugins">

As you can see, the file is not complete. Is there potentially a problem
in my map file? I can switch to a local map file that uses the COPY
notation and everything works fine. The installation of Eclipse used to
run the build has the following SVN P2 Install Units (and their
dependencies) installed:

iu="org.eclipse.team.svn.feature.group"
repository=" http://download.eclipse.org/technology/subversive/0.7/update -site/"

iu="org.eclipse.team.svn.pde.build.feature.group"
repository=" http://download.eclipse.org/technology/subversive/0.7/pde-up date-site/"

iu=" org.polarion.eclipse.team.svn.connector.svnkit16.feature.gro up "
repository=" http://www.polarion.org/projects/subversive/download/eclipse /2.0/update-site/"

Thank you for your help!
Re: PDE Subversive Generates incomplete FetchScript [message #482228 is a reply to message #482165] Tue, 25 August 2009 18:43 Go to previous message
Chris Eagan is currently offline Chris Eagan
Messages: 5
Registered: July 2009
Junior Member
It turns out that the SSL Certificate needed to be accepted and cached
locally. The retrieve.xml Ant script gets the content of the temp feature
from the server, but the commands fail silently and result in empty
feature.xml and build.properties files. Maybe there is some way to verify
that the commands executed properly and producing a more helpful error
message.

Another solution is to use the Subversion version 1.6.0 option
"--trust-server-cert", but that option is not on the version 1.5.4, which
comes with the current stable release of Ubuntu.

To fix the issue for a single machine, execute the following on the
command line and press P to accept the server certificate permanently:

svn cat https://host/svn/path/to/feature.xml

For those of you reading this that might be interested, I solved this
problem by checking out the SVN PDE build source code from Eclipse SVN and
built the source bundle for the SVN PDE build plug-in. I then inserted the
exported plug-ins into my running Eclipse, and set up a launcher in Debug
mode. I was able to trace through the code to find the location where the
failure occurred.
Previous Topic:Can I repackage Eclipse Subversive connectors?
Next Topic:Update all projects
Goto Forum:
  


Current Time: Sat Oct 25 07:13:40 GMT 2014

Powered by FUDForum. Page generated in 0.01780 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software