Skip to content

Commit 0764a10

Browse files
authored
Merge pull request #5263 from bjhargrave/decoration-phase2
Decoration phase2
2 parents 8396d9d + f3aead2 commit 0764a10

File tree

3 files changed

+6
-11
lines changed

3 files changed

+6
-11
lines changed

Diff for: biz.aQute.bndlib/src/aQute/bnd/build/Project.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -619,8 +619,7 @@ public List<Container> getBundles(Strategy strategyx, String spec, String source
619619
Parameters bundles = parseHeader(spec);
620620
if (source != null) {
621621
Instructions decorator = new Instructions(mergeProperties(source + "+"));
622-
// TODO change the decorated call to remove the second arg.
623-
decorator.decorate(bundles, true);
622+
decorator.decorate(bundles);
624623
decorator = new Instructions(mergeProperties(source + "++"));
625624
decorator.decorate(bundles, true);
626625
}

Diff for: biz.aQute.bndlib/src/aQute/bnd/osgi/Builder.java

+4-8
Original file line numberDiff line numberDiff line change
@@ -402,8 +402,7 @@ public boolean hasSources() {
402402
@Override
403403
protected Jar getExtra() throws Exception {
404404
Parameters conditionals = getMergedParameters(CONDITIONAL_PACKAGE);
405-
// TODO change the decorated call to remove the second arg.
406-
conditionals.putAll(decorated(CONDITIONALPACKAGE, true));
405+
conditionals.putAll(decorated(CONDITIONALPACKAGE));
407406
if (conditionals.isEmpty())
408407
return null;
409408
logger.debug("do Conditional Package {}", conditionals);
@@ -629,11 +628,9 @@ private void doExpand(Jar dot) throws Exception {
629628
}
630629

631630
Parameters private_package = getParameters(PRIVATE_PACKAGE);
632-
// TODO change the decorated call to remove the second arg.
633-
Parameters privatepackage = decorated(PRIVATEPACKAGE, true);
631+
Parameters privatepackage = decorated(PRIVATEPACKAGE);
634632
Parameters testpackage = new Parameters();
635-
// TODO change the decorated call to remove the second arg.
636-
Parameters includepackage = decorated(INCLUDEPACKAGE, true);
633+
Parameters includepackage = decorated(INCLUDEPACKAGE);
637634

638635
if (buildInstrs.undertest()) {
639636
String h = mergeProperties(Constants.TESTPACKAGES, "test;presence:=optional");
@@ -905,8 +902,7 @@ private Instruction matches(Instructions instructions, String pack, Set<Instruct
905902
private void doIncludeResources(Jar jar) throws Exception {
906903
Parameters includes = parseHeader(getProperty("Bundle-Includes"));
907904
if (includes.isEmpty()) {
908-
// TODO change the decorated call to remove the second arg.
909-
includes = decorated(Constants.INCLUDERESOURCE, true);
905+
includes = decorated(Constants.INCLUDERESOURCE);
910906
includes.putAll(getMergedParameters(Constants.INCLUDE_RESOURCE));
911907
} else {
912908
warning("Please use -includeresource instead of Bundle-Includes");

Diff for: cnf/build.bnd

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Bundle-Version: ${base.version}.${tstamp}-SNAPSHOT
3838
"org.osgi.namespace.*";~version=latest;~maven-scope=provided,\
3939
"org.osgi.service.*.annotations";~version=latest;~maven-scope=provided
4040

41-
-conditionalpackage+: \
41+
-conditionalpackage++: \
4242
=!aQute.lib.exceptions.*
4343

4444
-testpath+: \

0 commit comments

Comments
 (0)