Author: scabanovich
Date: 2007-08-27 08:02:51 -0400 (Mon, 27 Aug 2007)
New Revision: 3343
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/project/helpers/NewWebProjectHelper.java
Log:
JBIDE-850
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/project/helpers/NewWebProjectHelper.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/project/helpers/NewWebProjectHelper.java 2007-08-27
12:02:24 UTC (rev 3342)
+++
trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/project/helpers/NewWebProjectHelper.java 2007-08-27
12:02:51 UTC (rev 3343)
@@ -28,6 +28,7 @@
import org.w3c.dom.Node;
import org.jboss.tools.common.meta.action.impl.handlers.DefaultCreateHandler;
import org.jboss.tools.common.model.XModel;
+import org.jboss.tools.common.model.XModelConstants;
import org.jboss.tools.common.model.XModelObject;
import org.jboss.tools.common.model.filesystems.impl.FileSystemsImpl;
import org.jboss.tools.common.model.impl.XModelImpl;
@@ -80,7 +81,7 @@
if (libName != null && libName.length() > 0) {
File libDir = new File(libName);
libName = (new File(libName).getParentFile().equals(webInfDir))
- ? "%redhat.workspace%/lib/" : libName.replace('\\',
'/')+"/";
+ ? XModelConstants.WORKSPACE_REF + "/lib/" :
libName.replace('\\', '/')+"/";
File[] jars = libDir.listFiles(new FileFilter() {
public boolean accept(File file) {
if (!file.isFile()) return false;
Show replies by date