Skip to content

Commit

Permalink
Don't pass paths to non-existing metadata files from dependent modules
Browse files Browse the repository at this point in the history
(cherry picked from commit 3225c93)
  • Loading branch information
yole committed Feb 16, 2017
1 parent e30cd05 commit 50be60d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,15 @@ class JpsKotlinCompilerRunner : KotlinCompilerRunner<JpsCompilerEnvironment>() {
libraries: List<String>,
outputFile: File
) {
log.debug("K2JS: common arguments: " + ArgumentUtils.convertArgumentsToStringList(commonArguments))
log.debug("K2JS: JS arguments: " + ArgumentUtils.convertArgumentsToStringList(k2jsArguments))

val arguments = mergeBeans(commonArguments, k2jsArguments)
log.debug("K2JS: merged arguments: " + ArgumentUtils.convertArgumentsToStringList(arguments))

setupK2JsArguments(outputFile, sourceFiles, libraries, arguments)
log.debug("K2JS: arguments after setup" + ArgumentUtils.convertArgumentsToStringList(arguments))

withCompilerSettings(compilerSettings) {
runCompiler(K2JS_COMPILER, arguments, environment)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ object JpsJsModuleUtils {
val moduleBuildTarget = ModuleBuildTarget(module, targetType)
val outputDir = KotlinBuilderModuleScriptGenerator.getOutputDirSafe(moduleBuildTarget)
val metaInfoFile = getOutputMetaFile(outputDir, module.name)
result.add(metaInfoFile.absolutePath)
if (metaInfoFile.exists()) {
result.add(metaInfoFile.absolutePath)
}
}
})
}
Expand Down

0 comments on commit 50be60d

Please sign in to comment.