Skip to content
This repository has been archived by the owner on Nov 19, 2024. It is now read-only.

Commit

Permalink
Merge pull request #74 from praveen12bnitt/master
Browse files Browse the repository at this point in the history
Expand the inclusion and exclusion inputs.
  • Loading branch information
centic9 authored Aug 20, 2016
2 parents a41112e + ba49161 commit c172c76
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main/java/hudson/plugins/jacoco/JacocoPublisher.java
Original file line number Diff line number Diff line change
Expand Up @@ -472,12 +472,14 @@ public void perform(@Nonnull Run<?, ?> run, @Nonnull FilePath filePath, @Nonnull
logger.println("\n[JaCoCo plugin] Loading inclusions files..");
String[] includes = {};
if (inclusionPattern != null) {
includes = inclusionPattern.split(DIR_SEP);
String expandedInclusion = env.expand(inclusionPattern);
includes = expandedInclusion.split(DIR_SEP);
logger.println("[JaCoCo plugin] inclusions: " + Arrays.toString(includes));
}
String[] excludes = {};
if (exclusionPattern != null) {
excludes = exclusionPattern.split(DIR_SEP);
String expandedExclusion = env.expand(exclusionPattern);
excludes = expandedExclusion.split(DIR_SEP);
logger.println("[JaCoCo plugin] exclusions: " + Arrays.toString(excludes));
}

Expand Down

0 comments on commit c172c76

Please sign in to comment.