Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'jetty-maven-plugin/src/main/java/org/eclipse/jetty/maven/plugin/WarPluginInfo.java')
-rw-r--r--jetty-maven-plugin/src/main/java/org/eclipse/jetty/maven/plugin/WarPluginInfo.java21
1 files changed, 8 insertions, 13 deletions
diff --git a/jetty-maven-plugin/src/main/java/org/eclipse/jetty/maven/plugin/WarPluginInfo.java b/jetty-maven-plugin/src/main/java/org/eclipse/jetty/maven/plugin/WarPluginInfo.java
index f939a220cc..0dbb2c694c 100644
--- a/jetty-maven-plugin/src/main/java/org/eclipse/jetty/maven/plugin/WarPluginInfo.java
+++ b/jetty-maven-plugin/src/main/java/org/eclipse/jetty/maven/plugin/WarPluginInfo.java
@@ -28,12 +28,11 @@ import java.util.List;
import org.apache.maven.model.Plugin;
import org.apache.maven.project.MavenProject;
import org.codehaus.plexus.util.xml.Xpp3Dom;
-
-
+import org.eclipse.jetty.util.StringUtil;
/**
* WarPluginInfo
- *
+ * <p>
* Information about the maven-war-plugin contained in the pom
*/
public class WarPluginInfo
@@ -45,10 +44,6 @@ public class WarPluginInfo
private List<OverlayConfig> _overlayConfigs;
-
- /**
- * @param project
- */
public WarPluginInfo (MavenProject project)
{
_project = project;
@@ -59,7 +54,7 @@ public class WarPluginInfo
/**
* Find the maven-war-plugin, if one is configured
- * @return
+ * @return the plugin
*/
public Plugin getPlugin()
{
@@ -86,7 +81,7 @@ public class WarPluginInfo
/**
* Get value of dependentWarIncludes for maven-war-plugin
- * @return
+ * @return the list of dependent war includes
*/
public List<String> getDependentMavenWarIncludes()
{
@@ -105,7 +100,7 @@ public class WarPluginInfo
if (node == null)
return null;
String val = node.getValue();
- _dependentMavenWarIncludes = Arrays.asList(val.split(","));
+ _dependentMavenWarIncludes = StringUtil.csvSplit(null,val,0,val.length());
}
return _dependentMavenWarIncludes;
}
@@ -115,7 +110,7 @@ public class WarPluginInfo
/**
* Get value of dependentWarExcludes for maven-war-plugin
- * @return
+ * @return the list of dependent war excludes
*/
public List<String> getDependentMavenWarExcludes()
{
@@ -134,7 +129,7 @@ public class WarPluginInfo
if (node == null)
return null;
String val = node.getValue();
- _dependentMavenWarExcludes = Arrays.asList(val.split(","));
+ _dependentMavenWarExcludes = StringUtil.csvSplit(null,val,0,val.length());
}
return _dependentMavenWarExcludes;
}
@@ -145,7 +140,7 @@ public class WarPluginInfo
/**
* Get config for any overlays that have been declared for the maven-war-plugin.
*
- * @return
+ * @return the list of overlay configs
*/
public List<OverlayConfig> getMavenWarOverlayConfigs ()
{

Back to the top