/** * Create a LuceneIndexManager with a default IndexPolicy. */ public LuceneIndexManager() { policy = new IndexPolicyAdapter(); try { baseFolderURI = CWProject.instance().getWritableProjectSubdir(DIR_LUCENE, false); } catch (IOException ex) { log.error("Failed to find lucene index storage area.", ex); } }
/** * The URL for the cached index file for this installer */ protected URI getCachedIndexDir() throws InstallException { try { return CWProject.instance().getWritableProjectSubdir(getTempFileExtension(host, catalogDirectory), true); } catch (IOException ex) { throw new InstallException(JSOtherMsg.lookupText("URL manipulation failed"), ex); } }
URI uricache = getWritableProjectSubdir(DIR_NETCACHE, true); File filecache = new File(uricache.getPath()); NetUtil.setURICacheDir(filecache); this.writableFrontEndHome = getWritableProjectSubdir(this.frontendName, true);