Lines 7-12
Link Here
|
7 |
* |
7 |
* |
8 |
* Contributors: |
8 |
* Contributors: |
9 |
* IBM Corporation - initial API and implementation |
9 |
* IBM Corporation - initial API and implementation |
|
|
10 |
* Compuware Corporation - Sebastien Angers <sebastien.angers@compuware.com> |
11 |
* - Enabled additional mirror slicingOptions in Headless PDE Build |
12 |
* - https://bugs.eclipse.org/338878 |
10 |
*******************************************************************************/ |
13 |
*******************************************************************************/ |
11 |
|
14 |
|
12 |
package org.eclipse.pde.internal.build; |
15 |
package org.eclipse.pde.internal.build; |
Lines 300-306
Link Here
|
300 |
script.printStartTag("p2.mirror"); //$NON-NLS-1$ |
303 |
script.printStartTag("p2.mirror"); //$NON-NLS-1$ |
301 |
script.printTab(); |
304 |
script.printTab(); |
302 |
script.print("\t<slicingOptions"); //$NON-NLS-1$ |
305 |
script.print("\t<slicingOptions"); //$NON-NLS-1$ |
303 |
script.printAttribute("includeNonGreedy", FALSE, true); //$NON-NLS-1$ |
306 |
|
|
|
307 |
if (havePDEUIState()) { |
308 |
// since the GUI does not provide ability to set slicingOptions, setting most common ones |
309 |
script.printAttribute("includeNonGreedy", FALSE, true); //$NON-NLS-1$ |
310 |
script.printAttribute("includeOptional", FALSE, true); //$NON-NLS-1$ |
311 |
} else { |
312 |
// headless PDE Build mode |
313 |
// note that if a slicingOption has not been set in the build.properties, |
314 |
// a default value will be set here |
315 |
String filter = AbstractScriptGenerator.getImmutableAntProperty(PROPERTY_P2_MIRROR_SLICING_FILTER); |
316 |
script.printAttribute("filter", filter != null ? Utils.getPropertyFormat(PROPERTY_P2_MIRROR_SLICING_FILTER) : "", true); //$NON-NLS-1$ |
317 |
|
318 |
String followOnlyFilteredRequirements = AbstractScriptGenerator.getImmutableAntProperty(PROPERTY_P2_MIRROR_SLICING_FOLLOW_ONLY_FILTERED_REQS); |
319 |
script.printAttribute("followOnlyFilteredRequirements", followOnlyFilteredRequirements != null ? Utils.getPropertyFormat(PROPERTY_P2_MIRROR_SLICING_FOLLOW_ONLY_FILTERED_REQS) : "false", true); //$NON-NLS-1$ |
320 |
|
321 |
String followStrict = AbstractScriptGenerator.getImmutableAntProperty(PROPERTY_P2_MIRROR_SLICING_FOLLOW_STRICT); |
322 |
script.printAttribute("followStrict", followStrict != null ? Utils.getPropertyFormat(PROPERTY_P2_MIRROR_SLICING_FOLLOW_STRICT) : "false", true); //$NON-NLS-1$ |
323 |
|
324 |
String includeFeatures = AbstractScriptGenerator.getImmutableAntProperty(PROPERTY_P2_MIRROR_SLICING_INCLUDE_FEATURES); |
325 |
script.printAttribute("includeFeatures", includeFeatures != null ? Utils.getPropertyFormat(PROPERTY_P2_MIRROR_SLICING_INCLUDE_FEATURES) : "true", true); //$NON-NLS-1$ |
326 |
|
327 |
String includeNonGreedy = AbstractScriptGenerator.getImmutableAntProperty(PROPERTY_P2_MIRROR_SLICING_INCLUDE_NON_GREEDY); |
328 |
script.printAttribute("includeNonGreedy", includeNonGreedy != null ? Utils.getPropertyFormat(PROPERTY_P2_MIRROR_SLICING_INCLUDE_NON_GREEDY) : "false", true); //$NON-NLS-1$ |
329 |
|
330 |
String includeOptional = AbstractScriptGenerator.getImmutableAntProperty(PROPERTY_P2_MIRROR_SLICING_INCLUDE_OPTIONAL); |
331 |
script.printAttribute("includeOptional", includeOptional != null ? Utils.getPropertyFormat(PROPERTY_P2_MIRROR_SLICING_INCLUDE_OPTIONAL) : "false", true); //$NON-NLS-1$ |
332 |
|
333 |
String latestVersionOnly = AbstractScriptGenerator.getImmutableAntProperty(PROPERTY_P2_MIRROR_SLICING_LATEST_VERSION_ONLY); |
334 |
script.printAttribute("latestVersionOnly", latestVersionOnly != null ? Utils.getPropertyFormat(PROPERTY_P2_MIRROR_SLICING_LATEST_VERSION_ONLY) : "false", true); //$NON-NLS-1$ |
335 |
|
336 |
String platformFilter = AbstractScriptGenerator.getImmutableAntProperty(PROPERTY_P2_MIRROR_SLICING_PLATFORM_FILTER); |
337 |
script.printAttribute("platformFilter", platformFilter != null ? Utils.getPropertyFormat(PROPERTY_P2_MIRROR_SLICING_PLATFORM_FILTER) : "", true); //$NON-NLS-1$ |
338 |
} |
339 |
|
304 |
script.println("/>"); //$NON-NLS-1$ |
340 |
script.println("/>"); //$NON-NLS-1$ |
305 |
|
341 |
|
306 |
script.printTab(); |
342 |
script.printTab(); |