forked from I2P_Developers/i2p.i2p
* news.xml:
- move from base to router dir
This commit is contained in:
@ -46,7 +46,7 @@ public class NewsFetcher implements Runnable, EepGet.StatusListener {
|
|||||||
_log = ctx.logManager().getLog(NewsFetcher.class);
|
_log = ctx.logManager().getLog(NewsFetcher.class);
|
||||||
_instance = this;
|
_instance = this;
|
||||||
_lastFetch = 0;
|
_lastFetch = 0;
|
||||||
_newsFile = new File(_context.getBaseDir(), NEWS_FILE);
|
_newsFile = new File(_context.getRouterDir(), NEWS_FILE);
|
||||||
_tempFile = new File(_context.getTempDir(), TEMP_NEWS_FILE);
|
_tempFile = new File(_context.getTempDir(), TEMP_NEWS_FILE);
|
||||||
updateLastFetched();
|
updateLastFetched();
|
||||||
_lastUpdated = _lastFetch;
|
_lastUpdated = _lastFetch;
|
||||||
|
@ -19,7 +19,7 @@ if (System.getProperty("router.consoleNonce") == null) {
|
|||||||
|
|
||||||
<div class="news" id="news">
|
<div class="news" id="news">
|
||||||
<jsp:useBean class="net.i2p.router.web.ContentHelper" id="newshelper" scope="request" />
|
<jsp:useBean class="net.i2p.router.web.ContentHelper" id="newshelper" scope="request" />
|
||||||
<% File fpath = new java.io.File(net.i2p.I2PAppContext.getGlobalContext().getBaseDir(), "docs/news.xml"); %>
|
<% File fpath = new java.io.File(net.i2p.I2PAppContext.getGlobalContext().getRouterDir(), "docs/news.xml"); %>
|
||||||
<jsp:setProperty name="newshelper" property="page" value="<%=fpath.getAbsolutePath()%>" />
|
<jsp:setProperty name="newshelper" property="page" value="<%=fpath.getAbsolutePath()%>" />
|
||||||
<jsp:setProperty name="newshelper" property="maxLines" value="300" />
|
<jsp:setProperty name="newshelper" property="maxLines" value="300" />
|
||||||
<jsp:getProperty name="newshelper" property="content" />
|
<jsp:getProperty name="newshelper" property="content" />
|
||||||
|
@ -121,6 +121,7 @@ public class WorkingDir {
|
|||||||
// this one must be after MIGRATE_BASE
|
// this one must be after MIGRATE_BASE
|
||||||
success &= migrateJettyXml(oldDirf, dirf);
|
success &= migrateJettyXml(oldDirf, dirf);
|
||||||
success &= migrateClientsConfig(oldDirf, dirf);
|
success &= migrateClientsConfig(oldDirf, dirf);
|
||||||
|
success &= copy(new File(oldDirf, "docs/news.xml"), new File(dirf, "docs"));
|
||||||
|
|
||||||
// Report success or failure
|
// Report success or failure
|
||||||
if (success) {
|
if (success) {
|
||||||
|
Reference in New Issue
Block a user