Skip to content

Commit 61cd38a

Browse files
committed
add new 'compile' repotag
Signed-off-by: Christoph Rueger <chrisrueger@gmail.com>
1 parent d38e6cd commit 61cd38a

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

biz.aQute.bndlib/src/aQute/bnd/build/Project.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1405,7 +1405,7 @@ public List<RepositoryPlugin> getRepositories() {
14051405
.filter(repo -> {
14061406
Tags tags = repo.getTags();
14071407

1408-
if (tags == null || tags.includesAny(Constants.REPOTAGS_RESOLVE)) {
1408+
if (tags == null || tags.includesAny(Constants.REPOTAGS_COMPILE)) {
14091409
return true;
14101410
}
14111411
return false;

biz.aQute.bndlib/src/aQute/bnd/osgi/Constants.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,13 @@ public interface Constants {
265265
*/
266266
String REPOTAGS_RESOLVE = "resolve";
267267

268+
/**
269+
* tag for repos which should be used for project compilation (-buildpath,
270+
* -testpath). This is also the default tag for all repos which not have
271+
* specified tags (also for bc reasons)
272+
*/
273+
String REPOTAGS_COMPILE = "compile";
274+
268275
String RUNBLACKLIST = "-runblacklist";
269276
String RUNREQUIRES = "-runrequires";
270277
String RUNEE = "-runee";

0 commit comments

Comments
 (0)