commit | 85927eb17b2a7587b7c2a686f8d3d4b87795ced9 | [log] [tgz] |
---|---|---|
author | Stuart McCulloch <mcculls@apache.org> | Fri Jun 24 20:55:37 2011 +0000 |
committer | Stuart McCulloch <mcculls@apache.org> | Fri Jun 24 20:55:37 2011 +0000 |
tree | b7bf3893cb51847f887f2f12dec7861c5e47b99f | |
parent | 4848cc858671d59fe6c8ccf8cfa468661dc1e571 [diff] |
FELIX-2820: Provide a default value when using <_wab/> git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1139436 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/bundleplugin/src/main/java/org/apache/felix/bundleplugin/BundlePlugin.java b/bundleplugin/src/main/java/org/apache/felix/bundleplugin/BundlePlugin.java index 76073bc..d9c9625 100644 --- a/bundleplugin/src/main/java/org/apache/felix/bundleplugin/BundlePlugin.java +++ b/bundleplugin/src/main/java/org/apache/felix/bundleplugin/BundlePlugin.java
@@ -273,6 +273,12 @@ value = value.replaceAll( "\\p{Blank}*[\r\n]\\p{Blank}*", "" ); } + if ( Analyzer.WAB.equals( key ) && value.length() == 0 ) + { + // provide useful default + value = "src/main/webapp/"; + } + transformedInstructions.put( key, value ); } return transformedInstructions;