|
Lines 11-16
Link Here
|
| 11 |
|
11 |
|
| 12 |
import java.io.File; |
12 |
import java.io.File; |
| 13 |
import java.io.FileFilter; |
13 |
import java.io.FileFilter; |
|
|
14 |
import java.io.IOException; |
| 14 |
import java.util.*; |
15 |
import java.util.*; |
| 15 |
import java.util.jar.Attributes; |
16 |
import java.util.jar.Attributes; |
| 16 |
|
17 |
|
|
Lines 578-581
Link Here
|
| 578 |
Utils.storeBuildProperties(build2, properties); |
579 |
Utils.storeBuildProperties(build2, properties); |
| 579 |
runBuild(build2); |
580 |
runBuild(build2); |
| 580 |
} |
581 |
} |
|
|
582 |
|
| 583 |
public void testBug252711() throws Exception { |
| 584 |
IFolder buildFolder = newTest("252711"); |
| 585 |
|
| 586 |
IFolder aBinary = Utils.createFolder(buildFolder, "base/plugins/a_3.4.2.v_833"); |
| 587 |
Utils.generateBundleManifest(aBinary, "a; singleton:=true", "3.4.2.v_833", null); |
| 588 |
|
| 589 |
IFolder aBinary2 = Utils.createFolder(buildFolder, "base/plugins/b_1.0.0"); |
| 590 |
Utils.generateBundleManifest(aBinary2, "b; singleton:=true", "1.0.0", null); |
| 591 |
|
| 592 |
IFolder aSource = Utils.createFolder(buildFolder, "plugins/a"); |
| 593 |
generateBundle(aSource, "a; singleton:=true", "3.4.2.Branch_qualifier"); |
| 594 |
|
| 595 |
Utils.generateFeature(buildFolder, "f", null, new String[] {"a;version=\"3.4.2.Branch_qualifier\""}); |
| 596 |
|
| 597 |
Properties buildProperties = BuildConfiguration.getScriptGenerationProperties(buildFolder, "feature", "f"); |
| 598 |
buildProperties.put("baseLocation", buildFolder.getFolder("base").getLocation().toOSString()); |
| 599 |
generateScripts(buildFolder, buildProperties); |
| 600 |
} |
| 601 |
|
| 602 |
public void generateBundle(IFolder folder, String bundleId, String version) throws CoreException, IOException { |
| 603 |
Utils.generateBundleManifest(folder, bundleId, version, null); |
| 604 |
Utils.generatePluginBuildProperties(folder, null); |
| 605 |
folder.refreshLocal(IResource.DEPTH_INFINITE, null); |
| 606 |
} |
| 581 |
} |
607 |
} |