diff options
Diffstat (limited to 'build/scripts/utils.gant')
-rw-r--r-- | build/scripts/utils.gant | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/build/scripts/utils.gant b/build/scripts/utils.gant index 07dfd61bdb64..a48f2cea9832 100644 --- a/build/scripts/utils.gant +++ b/build/scripts/utils.gant @@ -1,5 +1,5 @@ /* - * Copyright 2000-2013 JetBrains s.r.o. + * Copyright 2000-2014 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -750,12 +750,14 @@ binding.setVariable("buildWinLauncher", { String ch, String inputPath, String ou projectBuilder.stage("winLauncher") if (pathsSelector != null) { - ant.replace(file: launcherProperties) { - replacefilter(token: "__PRODUCT_PATHS_SELECTOR__", value: pathsSelector) - } + def paths = getProperty("paths") + def launcherPropertiesTemp = "${paths.sandbox}/launcher.properties" + copyAndPatchFile(launcherProperties, launcherPropertiesTemp, ["PRODUCT_PATHS_SELECTOR": pathsSelector]) + launcherProperties = launcherPropertiesTemp } ant.java(classname: "com.pme.launcher.LauncherGeneratorMain", fork: "true") { + sysproperty(key: "java.awt.headless", value: "true") arg(value: inputPath) arg(value: appInfo) arg(value: "$ch/native/WinLauncher/WinLauncher/resource.h") |