- fix path to default heuristic.cfg

- deprecate unused ProxyServlet
pull/1/head
reger 10 years ago
parent 00113dcfbd
commit 6c3f36def1

@ -138,7 +138,7 @@ public class ConfigHeuristics_p {
// copy default opensearch heuristic config with sample entries
if (post.containsKey("copydefaultosdconfig") || post.containsKey("resettodefaultosdlist")) {
// prepare a solr index profile switch list
final File osdDefaultConfig = new File(sb.getDataPath(), "defaults/heuristicopensearch.conf");
final File osdDefaultConfig = new File(sb.getAppPath(), "defaults/heuristicopensearch.conf");
final File osdConfig = new File(sb.getDataPath(), "DATA/SETTINGS/heuristicopensearch.conf");
if ((post.containsKey("resettodefaultosdlist") || !osdConfig.exists()) && osdDefaultConfig.exists()) {
try {

@ -54,8 +54,10 @@ import org.eclipse.jetty.proxy.ProxyServlet;
* later improvemnts should/could use implementation to avoid back and forth converting
* between YaCy and Servlet header/parameter style and use proxy implementation within
* servlet specification or a existing reverse-proxy library.
*
*
* @deprecated since 1.81 use {@link UrlProxyServlet} instead.
*/
@Deprecated //use UrlProxyServlet instead
public class YaCyProxyServlet extends ProxyServlet implements Servlet {
private static final long serialVersionUID = 4900000000000001120L;

Loading…
Cancel
Save