forked from testmycode/tmc-netbeans
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
62 lines (51 loc) · 2.62 KB
/
build.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<?xml version="1.0" encoding="UTF-8"?>
<!-- You may freely edit this file. See harness/README in the NetBeans platform -->
<!-- for some information on what you could do (e.g. targets to override). -->
<!-- If you delete this file and reopen the project it will be recreated. -->
<project name="tmc-netbeans" basedir=".">
<description>Builds the module suite tmc-netbeans.</description>
<import file="nbproject/build-impl.xml"/>
<!-- Pull maven wrapper into the 'mavenmodules' cluster. Build it first if needed. -->
<target name="-check-mavenmodules">
<uptodate property="mavenmodules.uptodate"
srcfile="maven-wrapper/target/nbm/maven-wrapper-1.6.nbm"
targetfile="mavenmodules"/>
</target>
<condition property="mvn.exe" value="mvn.bat" else="mvn">
<os family="windows"/>
</condition>
<target name="-build-mavenmodules" depends="-check-mavenmodules" unless="mavenmodules.uptodate">
<echo>Building the mavenmodules cluster.</echo>
<echo>NOTE: you may need to restart NetBeans for the editor to notice.</echo>
<exec dir="maven-wrapper" executable="${mvn.exe}" failonerror="true">
<arg value="package"/>
</exec>
<delete dir="mavenmodules"/>
<copy todir="mavenmodules">
<fileset dir="maven-wrapper/target/nbm/netbeans/tmcbeans"/>
</copy>
</target>
<target name="-clean-mavenmodules">
<delete dir="mavenmodules"/>
<exec dir="maven-wrapper" executable="${mvn.exe}" failonerror="true">
<arg value="clean"/>
</exec>
</target>
<target name="build" depends="-build-mavenmodules,suite.build"/>
<target name="clean" depends="suite.clean,-clean-mavenmodules"/>
<!-- Include maven-wrapper NBM in autoupdate site. -->
<target name="nbms" depends="-init,branding,release,-hide-excluded-modules" description="Build NBMs and an Auto Update site descriptor for all modules in the suite.">
<mkdir dir="${suite.build.dir}/updates"/>
<copy todir="${suite.build.dir}/updates">
<fileset dir="maven-wrapper/target/nbm">
<include name="*.nbm"/>
</fileset>
</copy>
<antcall target="suite.nbms"/>
</target>
<!-- Override default startup params in application distribution. -->
<target name="build-launchers" depends="suite.build-launchers">
<!-- run.args specified in project.properties -->
<replace file="build/launcher/etc/${app.name}.conf" token="-J-Xms24m -J-Xmx64m" value="${run.args}"/>
</target>
</project>