Skip to content

Commit

Permalink
Put protos in the right place.
Browse files Browse the repository at this point in the history
  • Loading branch information
mcoblenz committed Sep 1, 2019
1 parent 7f083d5 commit 0c05c36
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/scala/edu/cmu/cs/obsidian/Main.scala
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ object Main {
/* if an output path is specified, use it; otherwise, use working directory */
val path = outputPath match {
case Some(p) =>
Paths.get(p + mainName)
Paths.get(p).resolve(mainName)
case None =>
Paths.get(mainName)
}
Expand Down Expand Up @@ -203,7 +203,7 @@ object Main {

replaceClassNameInGradleBuild.!
new File(gradleBackupPath.toString).delete()
println("Successfully generated Fabric chaincode at " + path)
println("Successfully generated Fabric chaincode at " + path.toAbsolutePath)
} catch {
case e: Throwable => println("Error generating Fabric code: " + e)
}
Expand Down Expand Up @@ -335,7 +335,7 @@ object Main {
val mainName = findMainContractName(checkedTable.ast)

val protobufs: Seq[(Protobuf, String)] = ProtobufGen.translateProgram(checkedTable.ast, sourceFilename)
val protobufOutputPath = outputPath.resolve("protos")
val protobufOutputPath = outputPath.resolve(mainName).resolve("protos")

// Each import results in a .proto file, which needs to be compiled.
for (p <- protobufs) {
Expand Down

0 comments on commit 0c05c36

Please sign in to comment.