|
31 | 31 | <property name="nbplatform.default.harness.dir" location="${nbplatform.default.netbeans.dest.dir}/harness" />
|
32 | 32 | <property name="nbantext.jar" location="netbeans/nbbuild/build/nbantext.jar" />
|
33 | 33 | <property name="nb_all" location="netbeans" />
|
34 |
| - <property name="patches" value="patches/6330.diff patches/7001.diff patches/7271.diff patches/7353.diff patches/7368.diff patches/7370.diff patches/7382.diff patches/7491-preliminary.diff patches/7543.diff patches/7548.diff patches/7621.diff patches/7583.diff patches/mvn-sh.diff patches/generate-dependencies.diff patches/rename-debugger.diff patches/remove-db.diff patches/nbjavac-not-required.diff" /> |
| 34 | + <loadresource property="patch-files"> |
| 35 | + <string> |
| 36 | + patches/6330.diff |
| 37 | + patches/7001.diff |
| 38 | + patches/7271.diff |
| 39 | + patches/7353.diff |
| 40 | + patches/7368.diff |
| 41 | + patches/7370.diff |
| 42 | + patches/7382.diff |
| 43 | + patches/7491-preliminary.diff |
| 44 | + patches/7543.diff |
| 45 | + patches/7548.diff |
| 46 | + patches/7621.diff |
| 47 | + patches/7583.diff |
| 48 | + patches/mvn-sh.diff |
| 49 | + patches/generate-dependencies.diff |
| 50 | + patches/rename-debugger.diff |
| 51 | + patches/remove-db.diff |
| 52 | + patches/nbjavac-not-required.diff |
| 53 | + </string> |
| 54 | + <filterchain> |
| 55 | + <tokenfilter delimoutput=" "> |
| 56 | + <replaceregex pattern="\s+" replace=""/> |
| 57 | + </tokenfilter> |
| 58 | + </filterchain> |
| 59 | + </loadresource> |
| 60 | + <property name="patches" value="${patch-files}"/> |
| 61 | + <condition property="has-patches"> |
| 62 | + <length string="${patches}" trim="true" when="greater" length="0"/> |
| 63 | + </condition> |
| 64 | + |
35 | 65 | <condition property="cmd.suffix" value=".cmd" else="">
|
36 | 66 | <os family="windows"/>
|
37 | 67 | </condition>
|
|
175 | 205 | </exec>
|
176 | 206 | </target>
|
177 | 207 |
|
178 |
| - <target name="apply-patches"> |
| 208 | + <target name="apply-patches" if="has-patches"> |
| 209 | + <echo>${patches}</echo> |
179 | 210 | <exec executable="git">
|
180 | 211 | <arg value="apply"/>
|
181 | 212 | <arg value="--directory=netbeans"/>
|
|
184 | 215 | </exec>
|
185 | 216 | </target>
|
186 | 217 |
|
187 |
| - <target name="unapply-patches"> |
| 218 | + <target name="unapply-patches" if="has-patches"> |
188 | 219 | <!--in the reverse order:-->
|
189 | 220 | <echo file="${build.dir}/Reverse.java">
|
190 | 221 | import java.util.Arrays;
|
|
218 | 249 | <ant dir="netbeans" inheritAll="false" inheritRefs="false" useNativeBasedir="true"/>
|
219 | 250 | </target>
|
220 | 251 |
|
| 252 | + <target name="clean-netbeans"> |
| 253 | + <ant dir="netbeans" target="clean" inheritAll="false" inheritRefs="false" useNativeBasedir="true"/> |
| 254 | + </target> |
| 255 | + |
221 | 256 | <target name="generate-netbeans-license-summary" depends="-set-use-jdk-javac,proxy-setup" description="Generate license summary">
|
222 | 257 | <delete dir="${build.dir}/nblic" />
|
223 | 258 | <mkdir dir="${build.dir}/nblic/nbcode" />
|
|
0 commit comments