Project

General

Profile

« Previous | Next » 

Revision 4812

Added by daigle about 15 years ago

Format indexPaths in metacat.properties. Remove from build.properties and build.xml. Move indexPath list getter from MetacatUtil to SystemUtil.

View differences:

QuerySpecification.java
37 37
import java.util.Vector;
38 38

  
39 39
import edu.ucsb.nceas.metacat.util.MetacatUtil;
40
import edu.ucsb.nceas.metacat.util.SystemUtil;
41
import edu.ucsb.nceas.metacat.util.UtilException;
40 42

  
41 43
import org.apache.log4j.Logger;
42 44
import org.xml.sax.Attributes;
......
984 986
        	else 
985 987
        	{
986 988
        		elementVector.add(path);
987
        	}       	
988
            if(!MetacatUtil.pathsForIndexing.contains(path)){
989
                usePathIndex = false;              
990
            }
989
        	} 
990
        	try {
991
        		if(!SystemUtil.getPathsForIndexing().contains(path)){
992
        			usePathIndex = false;              
993
        		}
994
        	} catch (UtilException ue) {
995
        		logMetacat.warn("Could not get index paths: "  + ue.getMessage());
996
        	}
991 997
         
992 998
        }
993 999
        // check if has return field

Also available in: Unified diff