Changeset bb8e0504


Ignore:
Timestamp:
Jun 11, 2016 1:34:09 PM (4 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
d84b0e44
Parents:
e27af37
Message:

i2psnark standalone:

  • Add shutdown hook to delete temp dir
  • Fix up CSS URL paths to use single quotes
  • Don't attempt to register with update manager
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • apps/i2psnark/java/build.xml

    re27af37 rbb8e0504  
    192192        <zipfileset src="../../../core/java/build/i2p.jar" />
    193193        <zipfileset src="../../jetty/jettylib/commons-logging.jar"  />
     194      <!-- without this we get a warning about 'no JSP support' but that's it
    194195        <zipfileset src="../../jetty/jettylib/jasper-runtime.jar"  />
     196       -->
    195197        <zipfileset src="../../jetty/jettylib/javax.servlet.jar" />
    196198        <zipfileset src="../../jetty/jettylib/jetty-continuation.jar" />
     
    245247        <replace dir="build/standalone-resources/.resources/themes/snark"
    246248            summary="true"
    247             token="url(&quot;../../console/light/images/"
    248             value="url(&quot;/i2psnark/.resources/themes/snark/ubergine/images/" >
     249            token="url('../../console/light/images/"
     250            value="url('/i2psnark/.resources/themes/snark/ubergine/images/" >
    249251            <include name="**/*.css" />
    250252        </replace>
  • apps/i2psnark/java/src/org/klomp/snark/SnarkManager.java

    re27af37 rbb8e0504  
    234234        _trackerMap = new ConcurrentHashMap<String, Tracker>(4);
    235235        loadConfig(null);
     236        if (!ctx.isRouterContext())
     237            Runtime.getRuntime().addShutdownHook(new Thread(new TempDeleter(_util.getTempDir()), "Snark Temp Dir Deleter"));
    236238    }
    237239
     
    246248        _monitor.start();
    247249        // only if default instance
    248         if ("i2psnark".equals(_contextName))
     250        if (_context.isRouterContext() && "i2psnark".equals(_contextName))
    249251            // delay until UpdateManager is there
    250252            _context.simpleTimer2().addEvent(new Register(), 4*60*1000);
     
    253255        _idleChecker = new IdleChecker(this, _peerCoordinatorSet);
    254256        _idleChecker.schedule(5*60*1000);
     257    }
     258
     259    /**
     260     * Only used in app context
     261     * @since 0.9.27
     262     */
     263    private static class TempDeleter implements Runnable {
     264        private final File file;
     265        public TempDeleter(File f) { file = f; }
     266        public void run() { FileUtil.rmdir(file, false); }
    255267    }
    256268
  • installer/resources/themes/snark/light/snark.css

    re27af37 rbb8e0504  
    3030     font-size: 9pt;
    3131     color: #559;
    32      background: #fff url("../../console/light/images/header.png") repeat-x scroll center center;
     32     background: #fff url('../../console/light/images/header.png') repeat-x scroll center center;
    3333     -moz-border-radius: 0px;
    3434     -khtml-border-radius: 3px;
     
    168168     color: #001;
    169169      whitespace: nowrap;
    170      background: #fff url("../../console/light/images/header.png") repeat-x scroll center center;
     170     background: #fff url('../../console/light/images/header.png') repeat-x scroll center center;
    171171}
    172172
     
    415415     border-top: 0;
    416416     text-shadow: 0 1px 0 #aaa;
    417      background: #fff url("../../console/light/images/header.png") repeat-x scroll center center;
     417     background: #fff url('../../console/light/images/header.png') repeat-x scroll center center;
    418418     font-variant: small-caps !important;
    419419     box-shadow: 0 1px 3px #999;
  • installer/resources/themes/snark/vanilla/snark.css

    re27af37 rbb8e0504  
    167167
    168168thead, tfoot {
    169      background: url("images/bling2.png") repeat-x scroll center center #867;
     169     background: url('images/bling2.png') repeat-x scroll center center #867;
    170170     font-weight: bold;
    171171     color: #503;
Note: See TracChangeset for help on using the changeset viewer.