blob: cdf6a07a44484aefa5e718d4b8688a4e070c349e [file] [log] [blame]
<%
String name = null;
if (resultStepBuildLocation.getResultStep() instanceof PublishStep)
name = ((PublishStep) resultStepBuildLocation.getResultStep()).getComponent().getId();
else if (resultStepBuildLocation.getResultStep() instanceof AggregateStep)
name = ((AggregateStep) resultStepBuildLocation.getResultStep()).getId();
String location = new GenerationHelper().getPublishPath(ctx, resultStepBuildLocation.getResultStep(), resultStepBuildLocation) + name + "/site.p2/";
String id=new GenerationHelper().getNameOrGeneratedIdString(resultStepBuildLocation);
%>
<locator searchPathRef="<%=id%>" <%=new GenerationHelper().getPatternString(resultStepBuildLocation)%> failOnError="false" />
<searchPath name="<%=id%>">
<provider componentTypes="eclipse.feature,osgi.bundle" readerType="p2" source="false" mutable="false">
<uri format="{0}">
<bc:replace>
<bc:constant value="file:/<%=location%>" />
<bc:match pattern="\\" replacement="/" />
</bc:replace>
</uri>
</provider>
</searchPath>