Lines 76-85
Link Here
|
76 |
</tstamp> |
76 |
</tstamp> |
77 |
<taskdef name="cleanall" classname="org.netbeans.nbbuild.CleanAll" classpath="nbantext.jar"/> |
77 |
<taskdef name="cleanall" classname="org.netbeans.nbbuild.CleanAll" classpath="nbantext.jar"/> |
78 |
<taskdef name="nbmerge" classname="org.netbeans.nbbuild.NbMerge" classpath="nbantext.jar"/> |
78 |
<taskdef name="nbmerge" classname="org.netbeans.nbbuild.NbMerge" classpath="nbantext.jar"/> |
79 |
<taskdef name="configmods" classname="org.netbeans.nbbuild.ConfigureModules" classpath="nbantext.jar"/> |
|
|
80 |
<taskdef name="makeupdatedesc" classname="org.netbeans.nbbuild.MakeUpdateDesc" classpath="nbantext.jar"/> |
79 |
<taskdef name="makeupdatedesc" classname="org.netbeans.nbbuild.MakeUpdateDesc" classpath="nbantext.jar"/> |
81 |
<taskdef name="for-each" classname="org.netbeans.nbbuild.ForEach" classpath="nbantext.jar"/> |
80 |
<taskdef name="for-each" classname="org.netbeans.nbbuild.ForEach" classpath="nbantext.jar"/> |
82 |
<taskdef name="check" classname="org.netbeans.nbbuild.CheckValue" classpath="nbantext.jar"/> |
|
|
83 |
<taskdef name="validatexml" classname="org.netbeans.nbbuild.XMLValidate" classpath="nbantext.jar;${binroot}/xml/catalog/release/modules/ext/resolver-1_1_nb.jar"/> |
81 |
<taskdef name="validatexml" classname="org.netbeans.nbbuild.XMLValidate" classpath="nbantext.jar;${binroot}/xml/catalog/release/modules/ext/resolver-1_1_nb.jar"/> |
84 |
|
82 |
|
85 |
<!-- Read the user property file at first --> |
83 |
<!-- Read the user property file at first --> |
Lines 88-98
Link Here
|
88 |
<!-- Read standard property file --> |
86 |
<!-- Read standard property file --> |
89 |
<property file="build.properties"/> |
87 |
<property file="build.properties"/> |
90 |
|
88 |
|
91 |
<!-- Check if we want to build platform --> |
89 |
<!-- Define modules. --> |
92 |
<check property="moduleconfig" |
90 |
<!-- The following is not permitted by Ant: --> |
93 |
is="platform" |
91 |
<!-- <property name="modules" value="${config.modules.${moduleconfig}}"/> --> |
94 |
set="fixedmodules" |
92 |
<!-- So this is a little trick to do it anyway. --> |
95 |
tovalue="core,openide,core/javahelp,core/compiler,core/execution,core/ui,core/windows"/> |
93 |
<echo file="moduledefs-tmp.properties">modules=$${config.modules.${moduleconfig}} |
|
|
94 |
fixedmodules=$${config.fixedmodules.${moduleconfig}} |
95 |
</echo> |
96 |
<property file="moduledefs-tmp.properties"/> |
97 |
<property name="allmodules" value="${fixedmodules},${modules}"/> |
96 |
|
98 |
|
97 |
<!-- We need absolute path to ${netbeans.dest} --> |
99 |
<!-- We need absolute path to ${netbeans.dest} --> |
98 |
<property name="netbeans.dest.abs" location="${netbeans.dest}"/> |
100 |
<property name="netbeans.dest.abs" location="${netbeans.dest}"/> |
Lines 103-141
Link Here
|
103 |
<!-- But this it is OK to change: --> |
105 |
<!-- But this it is OK to change: --> |
104 |
<property name="tryme.args" value=" -J-Dnetbeans.debug.exceptions=true ${tryme.args.additional}"/> |
106 |
<property name="tryme.args" value=" -J-Dnetbeans.debug.exceptions=true ${tryme.args.additional}"/> |
105 |
|
107 |
|
106 |
<!-- Override this with the Ant command, e.g. -Dmoduleconfig=superslim --> |
|
|
107 |
<property name="moduleconfig" value="stable"/> |
108 |
|
109 |
<!-- You can also explicitly set a particular list of modules if you prefer: --> |
110 |
<!-- -Dmodules=foo,bar,... (do not include core or openide) --> |
111 |
|
112 |
<configmods property="modules" selectedconfig="${moduleconfig}"> |
113 |
<config name="platform" modules="autoupdate"/> |
114 |
|
115 |
<config name="superslim" modules="${config.superslim}"/> |
116 |
|
117 |
<config name="slim" modules="${config.slim}"/> |
118 |
<!-- [PENDING] A poor name; 'standard' would be more in line with the CVS pseudomodule. --> |
119 |
|
120 |
<config name="stable" modules="${config.stable}"/> |
121 |
|
122 |
<config name="stable-with-apisupport" modules="${config.stable-with-apisupport}"/> |
123 |
|
124 |
<config name="bloated" modules="${config.bloated}"/> |
125 |
<!-- You are on your own for getting the binaries for some of these: --> |
126 |
|
127 |
<config name="bloated-plus-extrabins" modules="${config.bloated-plus-extrabins}"/> |
128 |
|
129 |
<!-- config for making NBMs for Daily Alpha Update Centre --> |
130 |
<config name="daily-alpha-nbms" modules="${config.daily-alpha-nbms}"/> |
131 |
|
132 |
<!-- config for javadoc --> |
133 |
<config name="javadoc" modules="${config.javadoc}"/> |
134 |
|
135 |
<!-- config for API signature test builds --> |
136 |
<config name="sigtest" modules="${config.sigtest}"/> |
137 |
</configmods> |
138 |
|
139 |
</target> |
108 |
</target> |
140 |
|
109 |
|
141 |
<target name="check-for-binaries" depends="bootstrap-init" unless="have-binaries-already"> |
110 |
<target name="check-for-binaries" depends="bootstrap-init" unless="have-binaries-already"> |
Lines 631-637
Link Here
|
631 |
<!-- It's good idea to call merge target before this one. |
600 |
<!-- It's good idea to call merge target before this one. |
632 |
NbMerge.java can set property "modules" to the list of realy |
601 |
NbMerge.java can set property "modules" to the list of realy |
633 |
built modules (excluding fixedmodules which must build everytime). --> |
602 |
built modules (excluding fixedmodules which must build everytime). --> |
634 |
<for-each startdir=".." target="nbm" locations="${fixedmodules},${modules}"/> |
603 |
<for-each startdir=".." target="nbm" locations="${allmodules}"/> |
635 |
</target> |
604 |
</target> |
636 |
<target name="nbm" description="Dummy target."/> |
605 |
<target name="nbm" description="Dummy target."/> |
637 |
|
606 |
|
Lines 1233-1244
Link Here
|
1233 |
<delete dir="${netbeans.dest}"/> |
1202 |
<delete dir="${netbeans.dest}"/> |
1234 |
<delete dir="${test.user.dir}"/> |
1203 |
<delete dir="${test.user.dir}"/> |
1235 |
<delete dir="modules_javadoc"/> |
1204 |
<delete dir="modules_javadoc"/> |
|
|
1205 |
<delete file="moduledefs-tmp.properties"/> |
1236 |
</target> |
1206 |
</target> |
1237 |
|
1207 |
|
1238 |
<target name="clean" depends="init,localclean" |
1208 |
<target name="clean" depends="init,localclean" |
1239 |
description="Clean out (almost) all build products."> |
1209 |
description="Clean out (almost) all build products."> |
1240 |
<cleanall topdir=".." |
1210 |
<cleanall topdir=".." |
1241 |
modules="${fixedmodules},${modules}" |
1211 |
modules="${allmodules}" |
1242 |
targetname="clean" |
1212 |
targetname="clean" |
1243 |
resolvedependencies="${resolve.clean.dependencies}" |
1213 |
resolvedependencies="${resolve.clean.dependencies}" |
1244 |
deptargetprefix="all-" |
1214 |
deptargetprefix="all-" |
Lines 1247-1252
Link Here
|
1247 |
</target> |
1217 |
</target> |
1248 |
|
1218 |
|
1249 |
<target name="print-selected-modules" depends="init" description="Prints list of modules to build in selected moduleconfig."> |
1219 |
<target name="print-selected-modules" depends="init" description="Prints list of modules to build in selected moduleconfig."> |
1250 |
<echo message="modules=${fixedmodules},${modules}"/> |
1220 |
<echo message="modules=${allmodules}"/> |
1251 |
</target> |
1221 |
</target> |
1252 |
</project> |
1222 |
</project> |