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)
printUnusedModules(info.usedModules)
- //reorder(targetDirectory)
+ reorder(home, targetDirectory)
return info
}
}
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)
}
}
}
<arg value="-f"/>
<arg value="gant.xml"/>
</java>
-
- <java classname="com.intellij.util.io.zip.ReorderJarsMain" fork="true">
- <jvmarg line="-Djava.awt.headless=true"/>
- <arg value="${build}/order.txt"/>
- <arg value="@{deploy}"/>
- <arg value="@{deploy}"/>
- <arg value="${project.home}/lib"/>
- <classpath>
- <pathelement location="${modules.output}/production/util-rt"/>
- <pathelement location="${modules.output}/production/util"/>
- <pathelement location="${project.home}/lib/jna.jar"/>
- <pathelement location="${project.home}/lib/trove4j.jar"/>
- </classpath>
- </java>
</sequential>
</macrodef>