|
Lines 481-487
Link Here
|
| 481 |
if (haveP2Bundles()) { |
481 |
if (haveP2Bundles()) { |
| 482 |
script.printTargetDeclaration(TARGET_P2_METADATA, null, TARGET_P2_METADATA, null, null); |
482 |
script.printTargetDeclaration(TARGET_P2_METADATA, null, TARGET_P2_METADATA, null, null); |
| 483 |
script.printProperty(PROPERTY_P2_APPEND, "true"); //$NON-NLS-1$ |
483 |
script.printProperty(PROPERTY_P2_APPEND, "true"); //$NON-NLS-1$ |
| 484 |
|
484 |
script.printProperty(PROPERTY_P2_METADATA_REPO_NAME, ""); //$NON-NLS-1$ |
|
|
485 |
script.printProperty(PROPERTY_P2_ARTIFACT_REPO_NAME, ""); //$NON-NLS-1$ |
| 486 |
|
| 485 |
if (havePDEUIState()) { |
487 |
if (havePDEUIState()) { |
| 486 |
//during feature export we need to override the "mode" |
488 |
//during feature export we need to override the "mode" |
| 487 |
printP2GenerationModeCondition(); |
489 |
printP2GenerationModeCondition(); |
|
Lines 492-502
Link Here
|
| 492 |
script.printAttribute("flavor", Utils.getPropertyFormat(PROPERTY_P2_FLAVOR), true); //$NON-NLS-1$ |
494 |
script.printAttribute("flavor", Utils.getPropertyFormat(PROPERTY_P2_FLAVOR), true); //$NON-NLS-1$ |
| 493 |
script.printAttribute("metadataRepository", Utils.getPropertyFormat(PROPERTY_P2_METADATA_REPO), true); //$NON-NLS-1$ |
495 |
script.printAttribute("metadataRepository", Utils.getPropertyFormat(PROPERTY_P2_METADATA_REPO), true); //$NON-NLS-1$ |
| 494 |
script.printAttribute("artifactRepository", Utils.getPropertyFormat(PROPERTY_P2_ARTIFACT_REPO), true); //$NON-NLS-1$ |
496 |
script.printAttribute("artifactRepository", Utils.getPropertyFormat(PROPERTY_P2_ARTIFACT_REPO), true); //$NON-NLS-1$ |
|
|
497 |
script.printAttribute("metadataRepositoryName", Utils.getPropertyFormat(PROPERTY_P2_METADATA_REPO_NAME), true); //$NON-NLS-1$ |
| 498 |
script.printAttribute("artifactRepositoryName", Utils.getPropertyFormat(PROPERTY_P2_ARTIFACT_REPO_NAME), true); //$NON-NLS-1$ |
| 495 |
script.printAttribute("publishArtifacts", Utils.getPropertyFormat(PROPERTY_P2_PUBLISH_ARTIFACTS), true); //$NON-NLS-1$ |
499 |
script.printAttribute("publishArtifacts", Utils.getPropertyFormat(PROPERTY_P2_PUBLISH_ARTIFACTS), true); //$NON-NLS-1$ |
| 496 |
script.printAttribute("p2OS", configInfo.getOs(), true); //$NON-NLS-1$ |
500 |
script.printAttribute("p2OS", configInfo.getOs(), true); //$NON-NLS-1$ |
| 497 |
if (!havePDEUIState() || rootFileProviders.size() > 0) |
501 |
if (!havePDEUIState() || rootFileProviders.size() > 0) |
| 498 |
script.printAttribute("mode", "incremental", true); //$NON-NLS-1$ //$NON-NLS-2$ |
502 |
script.printAttribute("mode", "incremental", true); //$NON-NLS-1$ //$NON-NLS-2$ |
| 499 |
else |
503 |
else |
| 500 |
script.printAttribute("mode", Utils.getPropertyFormat(PROPERTY_P2_GENERATION_MODE), true); //$NON-NLS-1$ |
504 |
script.printAttribute("mode", Utils.getPropertyFormat(PROPERTY_P2_GENERATION_MODE), true); //$NON-NLS-1$ |
| 501 |
script.println("/>"); //$NON-NLS-1$ |
505 |
script.println("/>"); //$NON-NLS-1$ |
| 502 |
|
506 |
|
|
Lines 507-516
Link Here
|
| 507 |
script.printAttribute("flavor", Utils.getPropertyFormat(PROPERTY_P2_FLAVOR), true); //$NON-NLS-1$ |
511 |
script.printAttribute("flavor", Utils.getPropertyFormat(PROPERTY_P2_FLAVOR), true); //$NON-NLS-1$ |
| 508 |
script.printAttribute("metadataRepository", Utils.getPropertyFormat(PROPERTY_P2_METADATA_REPO), true); //$NON-NLS-1$ |
512 |
script.printAttribute("metadataRepository", Utils.getPropertyFormat(PROPERTY_P2_METADATA_REPO), true); //$NON-NLS-1$ |
| 509 |
script.printAttribute("artifactRepository", Utils.getPropertyFormat(PROPERTY_P2_ARTIFACT_REPO), true); //$NON-NLS-1$ |
513 |
script.printAttribute("artifactRepository", Utils.getPropertyFormat(PROPERTY_P2_ARTIFACT_REPO), true); //$NON-NLS-1$ |
|
|
514 |
script.printAttribute("metadataRepositoryName", Utils.getPropertyFormat(PROPERTY_P2_METADATA_REPO_NAME), true); //$NON-NLS-1$ |
| 515 |
script.printAttribute("artifactRepositoryName", Utils.getPropertyFormat(PROPERTY_P2_ARTIFACT_REPO_NAME), true); //$NON-NLS-1$ |
| 510 |
script.printAttribute("launcherConfig", configInfo.toString(), true); //$NON-NLS-1$ |
516 |
script.printAttribute("launcherConfig", configInfo.toString(), true); //$NON-NLS-1$ |
| 511 |
script.printAttribute("p2OS", configInfo.getOs(), true); //$NON-NLS-1$ |
517 |
script.printAttribute("p2OS", configInfo.getOs(), true); //$NON-NLS-1$ |
| 512 |
script.printAttribute("publishArtifacts", Utils.getPropertyFormat(PROPERTY_P2_PUBLISH_ARTIFACTS), true); //$NON-NLS-1$ |
518 |
script.printAttribute("publishArtifacts", Utils.getPropertyFormat(PROPERTY_P2_PUBLISH_ARTIFACTS), true); //$NON-NLS-1$ |
| 513 |
if(!havePDEUIState()) |
519 |
if (!havePDEUIState()) |
| 514 |
script.printAttribute("mode", "incremental", true); //$NON-NLS-1$ //$NON-NLS-2$ |
520 |
script.printAttribute("mode", "incremental", true); //$NON-NLS-1$ //$NON-NLS-2$ |
| 515 |
else |
521 |
else |
| 516 |
script.printAttribute("mode", Utils.getPropertyFormat(PROPERTY_P2_GENERATION_MODE), true); //$NON-NLS-1$ |
522 |
script.printAttribute("mode", Utils.getPropertyFormat(PROPERTY_P2_GENERATION_MODE), true); //$NON-NLS-1$ |
|
Lines 527-533
Link Here
|
| 527 |
|
533 |
|
| 528 |
protected void printP2GenerationModeCondition() { |
534 |
protected void printP2GenerationModeCondition() { |
| 529 |
// "final" if not running packager and we are overriding, else "incremental" |
535 |
// "final" if not running packager and we are overriding, else "incremental" |
| 530 |
script.print("<condition"); //$NON-NLS-1$ |
536 |
script.print("<condition"); //$NON-NLS-1$ |
| 531 |
script.printAttribute("property", PROPERTY_P2_GENERATION_MODE, true); //$NON-NLS-1$ |
537 |
script.printAttribute("property", PROPERTY_P2_GENERATION_MODE, true); //$NON-NLS-1$ |
| 532 |
script.printAttribute("value", "final", true); //$NON-NLS-1$ //$NON-NLS-2$ |
538 |
script.printAttribute("value", "final", true); //$NON-NLS-1$ //$NON-NLS-2$ |
| 533 |
script.printAttribute("else", "incremental", false); //$NON-NLS-1$ //$NON-NLS-2$ |
539 |
script.printAttribute("else", "incremental", false); //$NON-NLS-1$ //$NON-NLS-2$ |
|
Lines 540-546
Link Here
|
| 540 |
script.println("\t</and>"); //$NON-NLS-1$ |
546 |
script.println("\t</and>"); //$NON-NLS-1$ |
| 541 |
script.printEndTag("condition"); //$NON-NLS-1$ |
547 |
script.printEndTag("condition"); //$NON-NLS-1$ |
| 542 |
} |
548 |
} |
| 543 |
|
549 |
|
| 544 |
public boolean haveP2Bundles() { |
550 |
public boolean haveP2Bundles() { |
| 545 |
if (p2Bundles != null) |
551 |
if (p2Bundles != null) |
| 546 |
return p2Bundles.booleanValue(); |
552 |
return p2Bundles.booleanValue(); |