diff --git a/build/scripts/layouts.gant b/build/scripts/layouts.gant
index 65e87e5844d5..a8d23b4de88b 100644
--- a/build/scripts/layouts.gant
+++ b/build/scripts/layouts.gant
@@ -18,6 +18,7 @@ import static org.jetbrains.jps.idea.IdeaProjectLoader.guessHome
includeTargets << new File("${guessHome(this)}/build/scripts/utils.gant")
target('default': "Developers update") {
+ loadProjectFromPath(home)
def patchedDescriptorDir = patchAppDescriptor(deploy)
layoutFull(home, deploy, patchedDescriptorDir)
ant.delete(dir: patchedDescriptorDir)
@@ -261,7 +262,7 @@ def layoutFull(String home, String targetDirectory, String patchedDescriptorDir
printUnusedModules(info.usedModules)
- //reorder(targetDirectory)
+ reorder(home, targetDirectory)
return info
}
@@ -681,17 +682,15 @@ def moduleOptional(String name, Closure init) {
}
def reorder(String home, String targetDirectory) {
- if (findModule("util") != null) {
- ant.java(classname: "com.intellij.util.io.zip.ReorderJarsMain", fork: "true") {
- arg(value: "$home/build/order.txt")
- arg(value: targetDirectory)
- arg(value: targetDirectory)
- arg(value: "$home/lib")
- classpath {
- pathelement(location: projectBuilder.moduleOutput(findModule("util")))
- pathelement(location: projectBuilder.moduleOutput(findModule("util-rt")))
- pathelement(location: "$home/lib/jna.jar")
- pathelement(location: "$home/lib/trove4j.jar")
+ projectBuilder.info("Reordering JARs in $targetDirectory")
+ ant.java(classname: "com.intellij.util.io.zip.ReorderJarsMain", fork: true, failonerror: true) {
+ arg(value: "${home}/build/order.txt")
+ arg(value: targetDirectory)
+ arg(value: targetDirectory)
+ arg(value: "${home}/lib")
+ classpath {
+ projectBuilder.moduleRuntimeClasspath(findModule("util"), false).each {
+ pathelement(location: it)
}
}
}
diff --git a/build/update.xml b/build/update.xml
index ae4871b2eb6b..adbc5c5faa0b 100644
--- a/build/update.xml
+++ b/build/update.xml
@@ -42,20 +42,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-