Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 328872

Summary: Multi Jetty xml files not loading if directory is referenced in jetty.conf
Product: [RT] Jetty Reporter: Quintin <qpaulson>
Component: serverAssignee: Joakim Erdfelt <joakim.erdfelt>
Status: CLOSED FIXED QA Contact:
Severity: major    
Priority: P3 CC: jetty-inbox, qpaulson
Version: unspecified   
Target Milestone: 7.1.x   
Hardware: All   
OS: All   
Whiteboard:

Description Quintin CLA 2010-10-27 14:11:51 EDT
Build Identifier: 7.1.6.v20100715

When you try to specify a directory to load .xml files from within the /etc/jetty.conf file it does not work.

The problem is within the jetty.conf:

      for file in "$CONF/"*.xml
      do
        echo "Checking file: $file" 
        if [ -r "$FILE" ] && [ -f "$FILE" ]
        then
          echo "addding configgggg"
          CONFIGS+=("$FILE")
        else
          echo "** WARNING: Cannot read '$FILE' specified in '$JETTY_CONF'" 
        fi

the first line should be:
      for file in "$CONF/"*.xml

( lowercase file )




Reproducible: Always

Steps to Reproduce:
1. create a /etc/jetty.conf file with a path to a dir ( /Users/user1/jetty/etc/myConfigs )
2. create one or more jettty.xml files within this directory ( jetty_7000.xml, jetty_7001.xml )
3. run jetty.sh check

you will notice that the configs output is empty.
Comment 1 Joakim Erdfelt CLA 2011-01-10 19:37:13 EST
Fixed in /rt/org.eclipse.jetty/jetty/trunk@2649