Author: fbricon
Date: 2012-03-16 13:17:39 -0400 (Fri, 16 Mar 2012)
New Revision: 39579
Modified:
trunk/common/plugins/org.jboss.tools.common.jdt.ui/src/org/jboss/tools/common/jdt/ui/buildpath/handlers/MaterializeLibraryHandler.java
Log:
JBIDE-11345 : fix default materialization output folder for webapps
Modified:
trunk/common/plugins/org.jboss.tools.common.jdt.ui/src/org/jboss/tools/common/jdt/ui/buildpath/handlers/MaterializeLibraryHandler.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.jdt.ui/src/org/jboss/tools/common/jdt/ui/buildpath/handlers/MaterializeLibraryHandler.java 2012-03-16
17:11:13 UTC (rev 39578)
+++
trunk/common/plugins/org.jboss.tools.common.jdt.ui/src/org/jboss/tools/common/jdt/ui/buildpath/handlers/MaterializeLibraryHandler.java 2012-03-16
17:17:39 UTC (rev 39579)
@@ -53,6 +53,7 @@
private static final String ECLIPSE_DEFAULT_WEBFOLDER = "WebContent";
private static final String MAVEN_DEFAULT_WEBFOLDER = "src/main/webapp";
+ private static final String WEB_INF = "/WEB-INF/";
@Override
@@ -145,9 +146,9 @@
//Let's try to be smart and guess where we're gonna put all the dependencies
StringBuilder path = new StringBuilder();
if (project.getFolder(MAVEN_DEFAULT_WEBFOLDER).exists()) {
- path.append(MAVEN_DEFAULT_WEBFOLDER).append("/");
+ path.append(MAVEN_DEFAULT_WEBFOLDER).append(WEB_INF);
} else if (project.getFolder(ECLIPSE_DEFAULT_WEBFOLDER).exists()) {
- path.append(ECLIPSE_DEFAULT_WEBFOLDER).append("/");
+ path.append(ECLIPSE_DEFAULT_WEBFOLDER).append(WEB_INF);
}
path.append("lib");
return path.toString();