- Timestamp:
- May 1, 2018 3:40:07 AM (3 years ago)
- Branches:
- master
- Children:
- 345e741
- Parents:
- 8957c85
- Location:
- launchers/common/src/main/scala/net/i2p/launchers
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
launchers/common/src/main/scala/net/i2p/launchers/DeployProfile.scala
r8957c85 r3488db38 18 18 */ 19 19 object DeployProfile { 20 21 22 /** 23 * This function will find the executing jar. "myself" 24 * @return 25 */ 26 def executingJarFile = getClass().getProtectionDomain().getCodeSource().getLocation() 20 27 21 28 /** -
launchers/common/src/main/scala/net/i2p/launchers/OSXDeployment.scala
r8957c85 r3488db38 77 77 ) { 78 78 79 /**80 * This function will find the executing jar. "myself"81 * @return82 */83 def executingJarFile = getClass().getProtectionDomain().getCodeSource().getLocation()84 79 85 80 … … 126 121 def copyDirFromRes(dir: File): Unit = { 127 122 // A small hack 128 val zipFile = new ZipFile( executingJarFile.getFile)123 val zipFile = new ZipFile(DeployProfile.executingJarFile.getFile) 129 124 zipFile.entries().asScala.toList.filter(_.toString.startsWith(dir.getPath)).filter(!_.isDirectory).map { entry => 130 125 new File(DeployProfile.pathJoin(baseDir,entry.getName)).getParentFile.mkdirs()
Note: See TracChangeset
for help on using the changeset viewer.