|
5 | 5 | <project name="tmc-netbeans" basedir=".">
|
6 | 6 | <description>Builds the module suite tmc-netbeans.</description>
|
7 | 7 | <import file="nbproject/build-impl.xml"/>
|
8 |
| - |
| 8 | + |
9 | 9 | <!-- Pull maven wrapper into the 'mavenmodules' cluster. Build it first if needed. -->
|
10 |
| - |
| 10 | + |
11 | 11 | <target name="-check-mavenmodules">
|
12 | 12 | <uptodate property="mavenmodules.uptodate"
|
13 | 13 | srcfile="maven-wrapper/target/nbm/maven-wrapper-1.7.nbm"
|
14 | 14 | targetfile="mavenmodules"/>
|
15 | 15 | </target>
|
16 |
| - |
| 16 | + |
17 | 17 | <condition property="mvn.exe" value="mvn.bat" else="mvn">
|
18 | 18 | <os family="windows"/>
|
19 | 19 | </condition>
|
20 |
| - |
| 20 | + |
21 | 21 | <target name="-build-mavenmodules" depends="-check-mavenmodules" unless="mavenmodules.uptodate">
|
22 | 22 | <echo>Building the mavenmodules cluster.</echo>
|
23 | 23 | <echo>NOTE: you may need to restart NetBeans for the editor to notice.</echo>
|
24 |
| - |
| 24 | + |
25 | 25 | <exec dir="maven-wrapper" executable="${mvn.exe}" failonerror="true">
|
26 | 26 | <arg value="package"/>
|
27 | 27 | </exec>
|
28 |
| - |
| 28 | + |
29 | 29 | <delete dir="mavenmodules"/>
|
30 | 30 | <copy todir="mavenmodules">
|
31 | 31 | <fileset dir="maven-wrapper/target/nbm/netbeans/tmcbeans"/>
|
32 | 32 | </copy>
|
33 | 33 | </target>
|
34 |
| - |
| 34 | + |
35 | 35 | <target name="-clean-mavenmodules">
|
36 | 36 | <delete dir="mavenmodules"/>
|
37 |
| - |
| 37 | + |
38 | 38 | <exec dir="maven-wrapper" executable="${mvn.exe}" failonerror="true">
|
39 | 39 | <arg value="clean"/>
|
40 | 40 | </exec>
|
41 | 41 | </target>
|
42 |
| - |
| 42 | + |
43 | 43 | <target name="build" depends="-build-mavenmodules,suite.build"/>
|
44 | 44 | <target name="clean" depends="suite.clean,-clean-mavenmodules"/>
|
45 |
| - |
| 45 | + |
46 | 46 | <!-- Include maven-wrapper NBM in autoupdate site. -->
|
47 | 47 | <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.">
|
48 | 48 | <mkdir dir="${suite.build.dir}/updates"/>
|
|
0 commit comments