Rename binary form of compiler bridge

This will avoid all clashes between modules that may have the same name
as other components of sbt, or two different compiler bridges that would
happen to have the same name.
This commit is contained in:
Martin Duhem 2015-09-11 10:21:45 +02:00
parent f86b8163e8
commit c74eae096f
1 changed files with 2 additions and 1 deletions

View File

@ -107,7 +107,8 @@ private[compiler] class IvyComponentCompiler(compiler: RawCompiler, manager: Com
private val buffered = new BufferedLogger(FullLogger(log))
def apply(): File = {
val binID = binaryID(sourcesModule.name)
// binID is of the form "org.example-compilerbridge-1.0.0-bin_2.11.7__50.0"
val binID = binaryID(s"${sourcesModule.organization}-${sourcesModule.name}-${sourcesModule.revision}")
manager.file(binID)(new IfMissing.Define(true, compileAndInstall(binID)))
}