Ignore:
Timestamp:
May 1, 2018 11:15:11 AM (3 years ago)
Author:
meeh <meeh@…>
Branches:
master
Children:
c326bb7
Parents:
345e741
Message:

Jar deployment, SBT hacking, and more related to launcher code.
Some refactoring, bugfixing, and self awareness of launcher jar.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • launchers/macosx/src/main/scala/net/i2p/MacOSXRouterLauncherApp.scala

    r345e741 rf6c8e44  
    11package net.i2p
    22
    3 import net.i2p.router.Router
     3import java.io.File
     4
     5import collection.JavaConverters._
    46import net.i2p.launchers.{OSXDefaults, OSXDeployment}
    5 import java.io.File
    67
    78/**
     
    3536object MacOSXRouterLauncherApp extends App {
    3637
    37   val i2pBaseDir = new File(OSXDefaults.getOSXBaseDirectory)
     38  val i2pBaseDir = OSXDefaults.getOSXBaseDirectory
     39
    3840
    3941  new OSXDeployment()
     
    4244  System.setProperty("user.dir", i2pBaseDir.getAbsolutePath)
    4345
    44   Router.main(args)
     46  val i2pJarDir = new File(i2pBaseDir.getAbsolutePath, "lib")
     47  i2pJarDir.list().toList.map { jar => {
     48    val jarFile = new File(i2pJarDir, jar)
     49    println(s"Loading jar: ${jarFile.toURI.toURL} => ${MacOSXRouterLauncher.addJarToClassPath(jarFile.toURI.toURL)}")
     50
     51  } }
     52
     53  MacOSXRouterLauncher.runRouter(args)
     54  //net.i2p.Router.main(args)
    4555}
Note: See TracChangeset for help on using the changeset viewer.