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-04 12:10:16 +02:00
parent 1c4a900ff5
commit 152b040fe3
1 changed files with 2 additions and 1 deletions

View File

@ -96,7 +96,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)))
}