building jars from update.xml

This commit is contained in:
Dmitry Lomov
2012-05-24 17:36:25 +02:00
parent 7ac410e321
commit 3e510d787b
3 changed files with 21 additions and 1 deletions
+2 -1
View File
@@ -2,6 +2,7 @@
<dirname property="build.dir" file="${ant.file}"/>
<property name="project.home" value="${build.dir}/.."/>
<property name="gant.home" value="${project.home}/build/lib/gant"/>
<property name="gant.target" value="default"/>
<path id="gant.classpath">
<fileset dir="${gant.home}/lib">
@@ -14,6 +15,6 @@
</taskdef>
<target name="doGant">
<gant file="${gant.script}"/>
<gant file="${gant.script}" target="${gant.target}"/>
</target>
</project>
+11
View File
@@ -82,6 +82,17 @@ target('default': 'The default target') {
home, null, paths)
}
target('build-dist-jars' : 'Target to build jars from locally compiled classes') {
loadProject()
// load ApplicationInfo.xml properties
ant.xmlproperty(file: appInfoFile(), collapseAttributes: "true")
layoutAll([buildNumber: "IC-$snapshot",
system_selector: "IdeaIC${p("component.version.major")}",
tools_jar: true],
home, null, paths)
}
def layoutAll(Map args, String home, String out, Paths _paths = null) {
Paths paths = _paths != null ? _paths : new Paths(out)
+8
View File
@@ -21,6 +21,7 @@
<macrodef name="run">
<attribute name="script"/>
<attribute name="target" default="default"/>
<attribute name="deploy"/>
<sequential>
@@ -29,6 +30,7 @@
<jvmarg line="&quot;-Ddeploy=@{deploy}&quot;"/>
<jvmarg line="&quot;-Dmodules.output=${modules.output}&quot;"/>
<jvmarg line="&quot;-Dgant.script=@{script}&quot;"/>
<jvmarg line="&quot;-Dgant.target=@{target}&quot;"/>
<classpath>
<fileset dir="${project.home}/lib/ant/lib">
@@ -62,4 +64,10 @@
<run script="${project.home}/build/scripts/layouts.gant"
deploy="${project.home}/out/deploy"/>
</target>
<target name="build-jars">
<run script="${project.home}/build/scripts/dist.gant"
target="build-dist-jars"
deploy="${project.home}/out/deploy"/>
</target>
</project>