Skip to content

Commit

Permalink
Remove StringUtils dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
elharo committed Nov 24, 2024
1 parent eceab09 commit 8324695
Showing 1 changed file with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@

import java.io.File;

import org.apache.commons.lang3.StringUtils;
import org.apache.maven.plugins.dependency.fromConfiguration.ArtifactItem;

/**
Expand Down Expand Up @@ -52,22 +51,22 @@ public UnpackFileMarkerHandler(ArtifactItem artifactItem, File markerFilesDirect
protected File getMarkerFile() {
/*
* Build a hash of all include/exclude strings, to determine if an artifactItem has been unpacked using the
* include/exclude parameters, this will allow an artifact to be included multiple times with different
* include/exclude parameters
* include/exclude parameters. This allows an artifact to be included multiple times with different
* include/exclude parameters.
*/
File markerFile;
if (this.artifactItem == null
|| (StringUtils.isEmpty(this.artifactItem.getIncludes())
&& StringUtils.isEmpty(this.artifactItem.getExcludes()))) {
|| this.artifactItem.getIncludes().isEmpty()
&& this.artifactItem.getExcludes().isEmpty()) {
markerFile = super.getMarkerFile();
} else {
int includeExcludeHash = 0;

if (StringUtils.isNotEmpty(this.artifactItem.getIncludes())) {
if (!this.artifactItem.getIncludes().isEmpty()) {
includeExcludeHash += this.artifactItem.getIncludes().hashCode();
}

if (StringUtils.isNotEmpty(this.artifactItem.getExcludes())) {
if (!this.artifactItem.getExcludes().isEmpty()) {
includeExcludeHash += this.artifactItem.getExcludes().hashCode();
}

Expand Down

0 comments on commit 8324695

Please sign in to comment.