aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzongyu <zzy2529420793@gmail.com>2020-06-18 15:25:44 +0800
committerzongyu <zzy2529420793@gmail.com>2020-07-06 17:48:27 +0800
commitc3771a74b781e7ebc97065e8201fd3a8e45a43d1 (patch)
tree0f37fb0cab73f6c6044e8f95f0156e1c93c5e09a
parentinitial code to support MAVEN_PROVIDE (diff)
downloadjava-ebuilder-c3771a74b781e7ebc97065e8201fd3a8e45a43d1.tar.gz
java-ebuilder-c3771a74b781e7ebc97065e8201fd3a8e45a43d1.tar.bz2
java-ebuilder-c3771a74b781e7ebc97065e8201fd3a8e45a43d1.zip
fix bugs of MAVEN_PROVIDE
Signed-off-by: zongyu <zzy2529420793@gmail.com>
-rw-r--r--src/main/java/org/gentoo/java/ebuilder/portage/PortageParser.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/org/gentoo/java/ebuilder/portage/PortageParser.java b/src/main/java/org/gentoo/java/ebuilder/portage/PortageParser.java
index a222956..fd9e2c4 100644
--- a/src/main/java/org/gentoo/java/ebuilder/portage/PortageParser.java
+++ b/src/main/java/org/gentoo/java/ebuilder/portage/PortageParser.java
@@ -358,9 +358,9 @@ public class PortageParser {
cacheItems.add(new CacheItem(category, pkg, version, slot, useFlag,
groupId, artifactId, mavenVersion, eclasses));
- if (mavenP != null) {
+ if (mavenProvide != null) {
for (String providedId: mavenProvide) {
- parts = mavenProvide.split(":")
+ final String[] parts = providedId.split(":");
cacheItems.add(new CacheItem(category, pkg, version, slot, useFlag,
parts[0], parts[1], parts[2], eclasses));
}