mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
building jars from update.xml
This commit is contained in:
+2
-1
@@ -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>
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
@@ -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=""-Ddeploy=@{deploy}""/>
|
||||
<jvmarg line=""-Dmodules.output=${modules.output}""/>
|
||||
<jvmarg line=""-Dgant.script=@{script}""/>
|
||||
<jvmarg line=""-Dgant.target=@{target}""/>
|
||||
|
||||
<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>
|
||||
Reference in New Issue
Block a user