Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Bartel2010-07-29 02:23:49 +0000
committerJan Bartel2010-07-29 02:23:49 +0000
commit135a5ada7a29af237bc1a812c8cdd1dcd3bf84c7 (patch)
tree5803011ce0e18cc59766a0629ecefdd25bbc2e44
parent1106b2875ca65d83c5b4f83a25bfc94be53759c5 (diff)
downloadorg.eclipse.jetty.project-135a5ada7a29af237bc1a812c8cdd1dcd3bf84c7.tar.gz
org.eclipse.jetty.project-135a5ada7a29af237bc1a812c8cdd1dcd3bf84c7.tar.xz
org.eclipse.jetty.project-135a5ada7a29af237bc1a812c8cdd1dcd3bf84c7.zip
port r2193 (ensure ORDERED_LIBS only set if there is an ordering - a regression from an earlier refactoring)
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/branches/jetty-8@2195 7e9141cc-0065-0410-87d8-b60c137991c4
-rw-r--r--jetty-webapp/src/main/java/org/eclipse/jetty/webapp/MetaData.java20
1 files changed, 11 insertions, 9 deletions
diff --git a/jetty-webapp/src/main/java/org/eclipse/jetty/webapp/MetaData.java b/jetty-webapp/src/main/java/org/eclipse/jetty/webapp/MetaData.java
index 833341952a..453efaae22 100644
--- a/jetty-webapp/src/main/java/org/eclipse/jetty/webapp/MetaData.java
+++ b/jetty-webapp/src/main/java/org/eclipse/jetty/webapp/MetaData.java
@@ -258,17 +258,19 @@ public class MetaData
throws Exception
{
// Set the ordered lib attribute
- List<String> orderedLibs = new ArrayList<String>();
- for (Resource webInfJar:_orderedWebInfJars)
+ if (_ordering != null)
{
- //get just the name of the jar file
- String fullname = webInfJar.getName();
- int i = fullname.indexOf(".jar");
- int j = fullname.lastIndexOf("/", i);
- orderedLibs.add(fullname.substring(j+1,i+4));
+ List<String> orderedLibs = new ArrayList<String>();
+ for (Resource webInfJar:_orderedWebInfJars)
+ {
+ //get just the name of the jar file
+ String fullname = webInfJar.getName();
+ int i = fullname.indexOf(".jar");
+ int j = fullname.lastIndexOf("/", i);
+ orderedLibs.add(fullname.substring(j+1,i+4));
+ }
+ context.setAttribute(ServletContext.ORDERED_LIBS, orderedLibs);
}
- context.setAttribute(ServletContext.ORDERED_LIBS, orderedLibs);
-
// set the webxml version
if (_webXmlRoot != null)

Back to the top