Commit 7e0a9532 authored by Jens Korinth's avatar Jens Korinth
Browse files

Bugfix in Import, fixed wrong names of zips

parent fead6df4
...@@ -69,7 +69,7 @@ object Import { ...@@ -69,7 +69,7 @@ object Import {
// write core.json to output directory (as per config) // write core.json to output directory (as per config)
val p = cfg.outputDir(c, t).resolve("ipcore").resolve("core.json") val p = cfg.outputDir(c, t).resolve("ipcore").resolve("core.json")
importCore(c, t, p) importCore(c, t, p, vlnv)
} }
/** /**
...@@ -80,7 +80,7 @@ object Import { ...@@ -80,7 +80,7 @@ object Import {
* @param p Output path for core description file. * @param p Output path for core description file.
* @param cfg Implicit [[Configuration]]. * @param cfg Implicit [[Configuration]].
**/ **/
private def importCore(c: Core, t: Target, p: Path)(implicit cfg: Configuration): Boolean = { private def importCore(c: Core, t: Target, p: Path, vlnv: VLNV)(implicit cfg: Configuration): Boolean = {
Files.createDirectories(p.getParent) Files.createDirectories(p.getParent)
logger.trace("created output directories: {}", p.getParent.toString) logger.trace("created output directories: {}", p.getParent.toString)
...@@ -89,7 +89,7 @@ object Import { ...@@ -89,7 +89,7 @@ object Import {
// write core.json // write core.json
logger.debug("writing core description: {}", p.toString) logger.debug("writing core description: {}", p.toString)
Core.to(c, p) Core.to(c.copy(descPath = p,_zipPath = Paths.get("%s.zip".format(vlnv.name))), p)
res res
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment