java/nekurak.net-ear/nbproject/build-impl.xml
changeset 186 b0f7d9ab4a07
parent 142 44ef544460ca
child 188 74d06a8a4948
     1.1 --- a/java/nekurak.net-ear/nbproject/build-impl.xml	Sun Jul 10 20:17:56 2011 +0200
     1.2 +++ b/java/nekurak.net-ear/nbproject/build-impl.xml	Fri Jul 15 22:25:39 2011 +0200
     1.3 @@ -15,126 +15,129 @@
     1.4  
     1.5  -->
     1.6  <project xmlns:ear2="http://www.netbeans.org/ns/j2ee-earproject/2" basedir=".." default="default" name="nekurak.net-ear-impl">
     1.7 -    <import file="ant-deploy.xml"/>
     1.8 -    <fail message="Please build using Ant 1.7.1 or higher.">
     1.9 -        <condition>
    1.10 -            <not>
    1.11 -                <antversion atleast="1.7.1"/>
    1.12 -            </not>
    1.13 -        </condition>
    1.14 -    </fail>
    1.15 -    <target depends="dist" description="Build whole project." name="default"/>
    1.16 +	<import file="ant-deploy.xml"/>
    1.17 +	<fail message="Please build using Ant 1.7.1 or higher.">
    1.18 +		<condition>
    1.19 +			<not>
    1.20 +				<antversion atleast="1.7.1"/>
    1.21 +			</not>
    1.22 +		</condition>
    1.23 +	</fail>
    1.24 +	<target depends="dist" description="Build whole project." name="default"/>
    1.25      <!-- 
    1.26      INITIALIZATION SECTION 
    1.27      -->
    1.28 -    <target name="pre-init">
    1.29 +	<target name="pre-init">
    1.30          <!-- Empty placeholder for easier customization. -->
    1.31          <!-- You can override this target in the ../build.xml file. -->
    1.32 -    </target>
    1.33 -    <target depends="pre-init" name="init-private">
    1.34 -        <property file="nbproject/private/private.properties"/>
    1.35 -    </target>
    1.36 -    <target depends="pre-init,init-private" name="init-userdir">
    1.37 -        <property location="${netbeans.user}/build.properties" name="user.properties.file"/>
    1.38 -    </target>
    1.39 -    <target depends="pre-init,init-private,init-userdir" name="init-user">
    1.40 -        <property file="${user.properties.file}"/>
    1.41 -    </target>
    1.42 -    <target depends="pre-init,init-private,init-userdir,init-user" name="init-project">
    1.43 -        <property file="nbproject/project.properties"/>
    1.44 -    </target>
    1.45 -    <target depends="pre-init,init-private,init-userdir,init-user,init-project" name="do-init">
    1.46 +	</target>
    1.47 +	<target depends="pre-init" name="init-private">
    1.48 +		<property file="nbproject/private/private.properties"/>
    1.49 +	</target>
    1.50 +	<target depends="pre-init,init-private" name="init-userdir">
    1.51 +		<property location="${netbeans.user}/build.properties" name="user.properties.file"/>
    1.52 +	</target>
    1.53 +	<target depends="pre-init,init-private,init-userdir" name="init-user">
    1.54 +		<property file="${user.properties.file}"/>
    1.55 +	</target>
    1.56 +	<target depends="pre-init,init-private,init-userdir,init-user" name="init-project">
    1.57 +		<property file="nbproject/project.properties"/>
    1.58 +	</target>
    1.59 +	<target depends="pre-init,init-private,init-userdir,init-user,init-project" name="do-init">
    1.60          <!-- The two properties below are usually overridden -->
    1.61          <!-- by the active platform. Just a fallback. -->
    1.62 -        <property name="default.javac.source" value="1.4"/>
    1.63 -        <property name="default.javac.target" value="1.4"/>
    1.64 -        <condition property="do.compile.jsps">
    1.65 -            <istrue value="${compile.jsps}"/>
    1.66 -        </condition>
    1.67 -        <condition property="do.display.browser">
    1.68 -            <and>
    1.69 -                <istrue value="${display.browser}"/>
    1.70 -                <isset property="client.module.uri"/>
    1.71 -                <not>
    1.72 -                    <isset property="app.client"/>
    1.73 -                </not>
    1.74 -            </and>
    1.75 -        </condition>
    1.76 -        <available file="${meta.inf}/MANIFEST.MF" property="has.custom.manifest"/>
    1.77 +		<property name="default.javac.source" value="1.4"/>
    1.78 +		<property name="default.javac.target" value="1.4"/>
    1.79 +		<condition property="do.compile.jsps">
    1.80 +			<istrue value="${compile.jsps}"/>
    1.81 +		</condition>
    1.82 +		<condition property="do.display.browser">
    1.83 +			<and>
    1.84 +				<istrue value="${display.browser}"/>
    1.85 +				<isset property="client.module.uri"/>
    1.86 +				<not>
    1.87 +					<isset property="app.client"/>
    1.88 +				</not>
    1.89 +			</and>
    1.90 +		</condition>
    1.91 +		<available file="${meta.inf}/MANIFEST.MF" property="has.custom.manifest"/>
    1.92          <!--
    1.93                      Variables needed to support directory deployment.
    1.94                  -->
    1.95 -        <condition property="do.package.with.custom.manifest.not.directory.deploy">
    1.96 -            <and>
    1.97 -                <isset property="has.custom.manifest"/>
    1.98 -                <isfalse value="${directory.deployment.supported}"/>
    1.99 -            </and>
   1.100 -        </condition>
   1.101 -        <condition property="do.package.without.custom.manifest.not.directory.deploy">
   1.102 -            <and>
   1.103 -                <not>
   1.104 -                    <isset property="has.custom.manifest"/>
   1.105 -                </not>
   1.106 -                <isfalse value="${directory.deployment.supported}"/>
   1.107 -            </and>
   1.108 -        </condition>
   1.109 -        <condition property="do.package.not.directory.deploy">
   1.110 -            <isfalse value="${directory.deployment.supported}"/>
   1.111 -        </condition>
   1.112 +		<condition property="do.package.with.custom.manifest.not.directory.deploy">
   1.113 +			<and>
   1.114 +				<isset property="has.custom.manifest"/>
   1.115 +				<isfalse value="${directory.deployment.supported}"/>
   1.116 +			</and>
   1.117 +		</condition>
   1.118 +		<condition property="do.package.without.custom.manifest.not.directory.deploy">
   1.119 +			<and>
   1.120 +				<not>
   1.121 +					<isset property="has.custom.manifest"/>
   1.122 +				</not>
   1.123 +				<isfalse value="${directory.deployment.supported}"/>
   1.124 +			</and>
   1.125 +		</condition>
   1.126 +		<condition property="do.package.not.directory.deploy">
   1.127 +			<isfalse value="${directory.deployment.supported}"/>
   1.128 +		</condition>
   1.129          <!--End Variables needed to support directory deployment.-->
   1.130 -        <condition else="" property="j2ee.appclient.mainclass.tool.param" value="-mainclass ${main.class}">
   1.131 -            <and>
   1.132 -                <isset property="main.class"/>
   1.133 -                <not>
   1.134 -                    <equals arg1="${main.class}" arg2="" trim="true"/>
   1.135 -                </not>
   1.136 -            </and>
   1.137 -        </condition>
   1.138 -        <condition else="" property="j2ee.appclient.jvmoptions.param" value="${j2ee.appclient.jvmoptions}">
   1.139 -            <and>
   1.140 -                <isset property="j2ee.appclient.jvmoptions"/>
   1.141 -                <not>
   1.142 -                    <equals arg1="${j2ee.appclient.jvmoptions}" arg2="" trim="true"/>
   1.143 -                </not>
   1.144 -            </and>
   1.145 -        </condition>
   1.146 -        <condition else="" property="application.args.param" value="${application.args}">
   1.147 -            <and>
   1.148 -                <isset property="application.args"/>
   1.149 -                <not>
   1.150 -                    <equals arg1="${application.args}" arg2="" trim="true"/>
   1.151 -                </not>
   1.152 -            </and>
   1.153 -        </condition>
   1.154 -        <condition property="can.debug.appclient">
   1.155 -            <and>
   1.156 -                <isset property="netbeans.home"/>
   1.157 -                <isset property="app.client"/>
   1.158 -            </and>
   1.159 -        </condition>
   1.160 -        <path id="endorsed.classpath.path" path="${endorsed.classpath}"/>
   1.161 -        <condition else="" property="endorsed.classpath.cmd.line.arg" value="-Xbootclasspath/p:'${toString:endorsed.classpath.path}'">
   1.162 -            <length length="0" string="${endorsed.classpath}" when="greater"/>
   1.163 -        </condition>
   1.164 -    </target>
   1.165 -    <target depends="init" name="-init-cos">
   1.166 -        <condition else="false" property="build.deploy.on.save">
   1.167 -            <istrue value="${j2ee.deploy.on.save}"/>
   1.168 -        </condition>
   1.169 -    </target>
   1.170 -    <target name="post-init">
   1.171 +		<condition else="" property="j2ee.appclient.mainclass.tool.param" value="-mainclass ${main.class}">
   1.172 +			<and>
   1.173 +				<isset property="main.class"/>
   1.174 +				<not>
   1.175 +					<equals arg1="${main.class}" arg2="" trim="true"/>
   1.176 +				</not>
   1.177 +			</and>
   1.178 +		</condition>
   1.179 +		<condition else="" property="j2ee.appclient.jvmoptions.param" value="${j2ee.appclient.jvmoptions}">
   1.180 +			<and>
   1.181 +				<isset property="j2ee.appclient.jvmoptions"/>
   1.182 +				<not>
   1.183 +					<equals arg1="${j2ee.appclient.jvmoptions}" arg2="" trim="true"/>
   1.184 +				</not>
   1.185 +			</and>
   1.186 +		</condition>
   1.187 +		<condition else="" property="application.args.param" value="${application.args}">
   1.188 +			<and>
   1.189 +				<isset property="application.args"/>
   1.190 +				<not>
   1.191 +					<equals arg1="${application.args}" arg2="" trim="true"/>
   1.192 +				</not>
   1.193 +			</and>
   1.194 +		</condition>
   1.195 +		<condition property="can.debug.appclient">
   1.196 +			<and>
   1.197 +				<isset property="netbeans.home"/>
   1.198 +				<isset property="app.client"/>
   1.199 +			</and>
   1.200 +		</condition>
   1.201 +		<path id="endorsed.classpath.path" path="${endorsed.classpath}"/>
   1.202 +		<condition else="" property="endorsed.classpath.cmd.line.arg" value="-Xbootclasspath/p:'${toString:endorsed.classpath.path}'">
   1.203 +			<and>
   1.204 +				<isset property="endorsed.classpath"/>
   1.205 +				<length length="0" string="${endorsed.classpath}" when="greater"/>
   1.206 +			</and>
   1.207 +		</condition>
   1.208 +	</target>
   1.209 +	<target depends="init" name="-init-cos">
   1.210 +		<condition else="false" property="build.deploy.on.save">
   1.211 +			<istrue value="${j2ee.deploy.on.save}"/>
   1.212 +		</condition>
   1.213 +	</target>
   1.214 +	<target name="post-init">
   1.215          <!-- Empty placeholder for easier customization. -->
   1.216          <!-- You can override this target in the ../build.xml file. -->
   1.217 -    </target>
   1.218 -    <target depends="pre-init,init-private,init-userdir,init-user,init-project,do-init" name="init-check">
   1.219 -        <fail unless="build.dir">Must set build.dir</fail>
   1.220 -        <fail unless="build.generated.dir">Must set build.generated.dir</fail>
   1.221 -        <fail unless="dist.dir">Must set dist.dir</fail>
   1.222 -        <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
   1.223 -        <fail unless="dist.jar">Must set dist.jar</fail>
   1.224 -    </target>
   1.225 -    <target name="-init-taskdefs">
   1.226 -        <fail unless="libs.CopyLibs.classpath">
   1.227 +	</target>
   1.228 +	<target depends="pre-init,init-private,init-userdir,init-user,init-project,do-init" name="init-check">
   1.229 +		<fail unless="build.dir">Must set build.dir</fail>
   1.230 +		<fail unless="build.generated.dir">Must set build.generated.dir</fail>
   1.231 +		<fail unless="dist.dir">Must set dist.dir</fail>
   1.232 +		<fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
   1.233 +		<fail unless="dist.jar">Must set dist.jar</fail>
   1.234 +	</target>
   1.235 +	<target name="-init-taskdefs">
   1.236 +		<fail unless="libs.CopyLibs.classpath">
   1.237  The libs.CopyLibs.classpath property is not set up.
   1.238  This property must point to 
   1.239  org-netbeans-modules-java-j2seproject-copylibstask.jar file which is part
   1.240 @@ -143,444 +146,483 @@
   1.241  Either open the project in the IDE and make sure CopyLibs library
   1.242  exists or setup the property manually. For example like this:
   1.243   ant -Dlibs.CopyLibs.classpath=a/path/to/org-netbeans-modules-java-j2seproject-copylibstask.jar
   1.244 -                </fail>
   1.245 -        <taskdef classpath="${libs.CopyLibs.classpath}" resource="org/netbeans/modules/java/j2seproject/copylibstask/antlib.xml"/>
   1.246 -    </target>
   1.247 -    <target depends="pre-init,init-private,init-userdir,init-user,init-project,do-init,post-init,init-check,-init-taskdefs" name="init"/>
   1.248 +		</fail>
   1.249 +		<taskdef classpath="${libs.CopyLibs.classpath}" resource="org/netbeans/modules/java/j2seproject/copylibstask/antlib.xml"/>
   1.250 +	</target>
   1.251 +	<target depends="-profile-pre-init, init, -profile-post-init, -profile-init-check" name="profile-init"/>
   1.252 +	<target name="-profile-pre-init">
   1.253 +        <!-- Empty placeholder for easier customization. -->
   1.254 +        <!-- You can override this target in the ../build.xml file. -->
   1.255 +	</target>
   1.256 +	<target name="-profile-post-init">
   1.257 +        <!-- Empty placeholder for easier customization. -->
   1.258 +        <!-- You can override this target in the ../build.xml file. -->
   1.259 +	</target>
   1.260 +	<target depends="-profile-pre-init, init, -profile-post-init" name="-profile-init-check">
   1.261 +		<fail unless="profiler.info.jvm">Must set JVM to use for profiling in profiler.info.jvm</fail>
   1.262 +		<fail unless="profiler.info.jvmargs.agent">Must set profiler agent JVM arguments in profiler.info.jvmargs.agent</fail>
   1.263 +	</target>
   1.264 +	<target depends="pre-init,init-private,init-userdir,init-user,init-project,do-init,post-init,init-check,-init-taskdefs" name="init"/>
   1.265      <!--
   1.266      COMPILATION SECTION
   1.267      -->
   1.268 -    <target depends="init" name="deps-jar" unless="no.deps"/>
   1.269 -    <target depends="init" name="deps-j2ee-archive" unless="no.deps">
   1.270 -        <condition property="build.deploy.on.save" value="false">
   1.271 -            <not>
   1.272 -                <isset property="build.deploy.on.save"/>
   1.273 -            </not>
   1.274 -        </condition>
   1.275 -        <ant antfile="${project.nekurak_net-ejb}/build.xml" inheritall="false" target="dist-ear">
   1.276 -            <property location="${build.dir}" name="dist.ear.dir"/>
   1.277 -            <property name="deploy.on.save" value="${build.deploy.on.save}"/>
   1.278 -        </ant>
   1.279 -        <condition property="build.deploy.on.save" value="false">
   1.280 -            <not>
   1.281 -                <isset property="build.deploy.on.save"/>
   1.282 -            </not>
   1.283 -        </condition>
   1.284 -        <ant antfile="${project.nekurak_net-rest}/build.xml" inheritall="false" target="dist-ear">
   1.285 -            <property location="${build.dir}" name="dist.ear.dir"/>
   1.286 -            <property name="deploy.on.save" value="${build.deploy.on.save}"/>
   1.287 -        </ant>
   1.288 -        <condition property="build.deploy.on.save" value="false">
   1.289 -            <not>
   1.290 -                <isset property="build.deploy.on.save"/>
   1.291 -            </not>
   1.292 -        </condition>
   1.293 -        <ant antfile="${project.nekurak_net-web}/build.xml" inheritall="false" target="dist-ear">
   1.294 -            <property location="${build.dir}" name="dist.ear.dir"/>
   1.295 -            <property name="deploy.on.save" value="${build.deploy.on.save}"/>
   1.296 -        </ant>
   1.297 -        <condition property="build.deploy.on.save" value="false">
   1.298 -            <not>
   1.299 -                <isset property="build.deploy.on.save"/>
   1.300 -            </not>
   1.301 -        </condition>
   1.302 -        <ant antfile="${project.nekurak_net-ws}/build.xml" inheritall="false" target="dist-ear">
   1.303 -            <property location="${build.dir}" name="dist.ear.dir"/>
   1.304 -            <property name="deploy.on.save" value="${build.deploy.on.save}"/>
   1.305 -        </ant>
   1.306 -    </target>
   1.307 -    <target depends="init,deps-jar,deps-j2ee-archive" name="pre-pre-compile"/>
   1.308 -    <target name="pre-compile">
   1.309 +	<target depends="init" name="deps-jar" unless="no.deps"/>
   1.310 +	<target depends="init" name="deps-j2ee-archive" unless="no.deps">
   1.311 +		<condition property="build.deploy.on.save" value="false">
   1.312 +			<not>
   1.313 +				<isset property="build.deploy.on.save"/>
   1.314 +			</not>
   1.315 +		</condition>
   1.316 +		<ant antfile="${project.nekurak_net-ejb}/build.xml" inheritall="false" target="dist-ear">
   1.317 +			<property location="${build.dir}" name="dist.ear.dir"/>
   1.318 +			<property name="deploy.on.save" value="${build.deploy.on.save}"/>
   1.319 +		</ant>
   1.320 +		<condition property="build.deploy.on.save" value="false">
   1.321 +			<not>
   1.322 +				<isset property="build.deploy.on.save"/>
   1.323 +			</not>
   1.324 +		</condition>
   1.325 +		<ant antfile="${project.nekurak_net-rest}/build.xml" inheritall="false" target="dist-ear">
   1.326 +			<property location="${build.dir}" name="dist.ear.dir"/>
   1.327 +			<property name="deploy.on.save" value="${build.deploy.on.save}"/>
   1.328 +		</ant>
   1.329 +		<condition property="build.deploy.on.save" value="false">
   1.330 +			<not>
   1.331 +				<isset property="build.deploy.on.save"/>
   1.332 +			</not>
   1.333 +		</condition>
   1.334 +		<ant antfile="${project.nekurak_net-web}/build.xml" inheritall="false" target="dist-ear">
   1.335 +			<property location="${build.dir}" name="dist.ear.dir"/>
   1.336 +			<property name="deploy.on.save" value="${build.deploy.on.save}"/>
   1.337 +		</ant>
   1.338 +		<condition property="build.deploy.on.save" value="false">
   1.339 +			<not>
   1.340 +				<isset property="build.deploy.on.save"/>
   1.341 +			</not>
   1.342 +		</condition>
   1.343 +		<ant antfile="${project.nekurak_net-ws}/build.xml" inheritall="false" target="dist-ear">
   1.344 +			<property location="${build.dir}" name="dist.ear.dir"/>
   1.345 +			<property name="deploy.on.save" value="${build.deploy.on.save}"/>
   1.346 +		</ant>
   1.347 +	</target>
   1.348 +	<target depends="init,deps-jar,deps-j2ee-archive" name="pre-pre-compile"/>
   1.349 +	<target name="pre-compile">
   1.350          <!-- Empty placeholder for easier customization. -->
   1.351          <!-- You can override this target in the ../build.xml file. -->
   1.352 -    </target>
   1.353 -    <target depends="init,deps-jar,pre-pre-compile,pre-compile,-do-compile-deps" name="do-compile">
   1.354 -        <copy todir="${build.dir}/META-INF">
   1.355 -            <fileset dir="${meta.inf}"/>
   1.356 -        </copy>
   1.357 -    </target>
   1.358 -    <target depends="init,deps-jar,pre-pre-compile,pre-compile" name="-do-compile-deps">
   1.359 -        <copyfiles files="${reference.nekurak_net-web.dist-ear}" todir="${build.dir}//"/>
   1.360 -        <copyfiles files="${reference.nekurak_net-ejb.dist-ear}" todir="${build.dir}//"/>
   1.361 -        <copyfiles files="${reference.nekurak_net-rest.dist-ear}" todir="${build.dir}//"/>
   1.362 -        <copyfiles files="${reference.nekurak_net-ws.dist-ear}" todir="${build.dir}//"/>
   1.363 -    </target>
   1.364 -    <target name="post-compile">
   1.365 +	</target>
   1.366 +	<target depends="init,deps-jar,pre-pre-compile,pre-compile,-do-compile-deps" name="do-compile">
   1.367 +		<copy todir="${build.dir}/META-INF">
   1.368 +			<fileset dir="${meta.inf}"/>
   1.369 +		</copy>
   1.370 +	</target>
   1.371 +	<target depends="init,deps-jar,pre-pre-compile,pre-compile" name="-do-compile-deps">
   1.372 +		<copyfiles files="${reference.nekurak_net-web.dist-ear}" todir="${build.dir}//"/>
   1.373 +		<copyfiles files="${reference.nekurak_net-ejb.dist-ear}" todir="${build.dir}//"/>
   1.374 +		<copyfiles files="${reference.nekurak_net-rest.dist-ear}" todir="${build.dir}//"/>
   1.375 +		<copyfiles files="${reference.nekurak_net-ws.dist-ear}" todir="${build.dir}//"/>
   1.376 +	</target>
   1.377 +	<target name="post-compile">
   1.378          <!-- Empty placeholder for easier customization. -->
   1.379          <!-- You can override this target in the ../build.xml file. -->
   1.380 -    </target>
   1.381 -    <target depends="init,deps-jar,pre-pre-compile,pre-compile,do-compile,post-compile" description="Compile project." name="compile"/>
   1.382 +	</target>
   1.383 +	<target depends="init,deps-jar,pre-pre-compile,pre-compile,do-compile,post-compile" description="Compile project." name="compile"/>
   1.384      <!--
   1.385                  DIST BUILDING SECTION
   1.386              -->
   1.387 -    <target name="pre-dist">
   1.388 +	<target name="pre-dist">
   1.389          <!-- Empty placeholder for easier customization. -->
   1.390          <!-- You can override this target in the ../build.xml file. -->
   1.391 -    </target>
   1.392 -    <target depends="init,compile,pre-dist" name="do-dist-without-manifest" unless="has.custom.manifest">
   1.393 -        <dirname file="${dist.jar}" property="dist.jar.dir"/>
   1.394 -        <mkdir dir="${dist.jar.dir}"/>
   1.395 -        <jar compress="${jar.compress}" jarfile="${dist.jar}">
   1.396 -            <fileset dir="${build.dir}"/>
   1.397 -        </jar>
   1.398 -    </target>
   1.399 -    <target depends="init,compile,pre-dist" if="has.custom.manifest" name="do-dist-with-manifest">
   1.400 -        <dirname file="${dist.jar}" property="dist.jar.dir"/>
   1.401 -        <mkdir dir="${dist.jar.dir}"/>
   1.402 -        <jar compress="${jar.compress}" jarfile="${dist.jar}" manifest="${meta.inf}/MANIFEST.MF">
   1.403 -            <fileset dir="${build.dir}"/>
   1.404 -        </jar>
   1.405 -    </target>
   1.406 +	</target>
   1.407 +	<target depends="init,compile,pre-dist" name="do-dist-without-manifest" unless="has.custom.manifest">
   1.408 +		<dirname file="${dist.jar}" property="dist.jar.dir"/>
   1.409 +		<mkdir dir="${dist.jar.dir}"/>
   1.410 +		<jar compress="${jar.compress}" jarfile="${dist.jar}">
   1.411 +			<fileset dir="${build.dir}"/>
   1.412 +		</jar>
   1.413 +	</target>
   1.414 +	<target depends="init,compile,pre-dist" if="has.custom.manifest" name="do-dist-with-manifest">
   1.415 +		<dirname file="${dist.jar}" property="dist.jar.dir"/>
   1.416 +		<mkdir dir="${dist.jar.dir}"/>
   1.417 +		<jar compress="${jar.compress}" jarfile="${dist.jar}" manifest="${meta.inf}/MANIFEST.MF">
   1.418 +			<fileset dir="${build.dir}"/>
   1.419 +		</jar>
   1.420 +	</target>
   1.421      <!--
   1.422                  TARGETS NEEDED TO SUPPORT DIRECTORY DEPLOYMENT
   1.423              -->
   1.424 -    <target depends="init,compile,pre-dist" if="do.package.without.custom.manifest.not.directory.deploy" name="-do-tmp-dist-without-manifest">
   1.425 -        <dirname file="${dist.jar}" property="dist.jar.dir"/>
   1.426 -        <mkdir dir="${dist.jar.dir}"/>
   1.427 -        <jar compress="${jar.compress}" jarfile="${dist.jar}">
   1.428 -            <fileset dir="${build.dir}"/>
   1.429 -        </jar>
   1.430 -    </target>
   1.431 -    <target depends="init,compile,pre-dist" if="do.package.with.custom.manifest.not.directory.deploy" name="-do-tmp-dist-with-manifest">
   1.432 -        <dirname file="${dist.jar}" property="dist.jar.dir"/>
   1.433 -        <mkdir dir="${dist.jar.dir}"/>
   1.434 -        <jar compress="${jar.compress}" jarfile="${dist.jar}" manifest="${meta.inf}/MANIFEST.MF">
   1.435 -            <fileset dir="${build.dir}"/>
   1.436 -        </jar>
   1.437 -    </target>
   1.438 -    <target depends="init,compile,pre-dist,-do-tmp-dist-without-manifest,-do-tmp-dist-with-manifest" name="-do-dist-directory-deploy"/>
   1.439 -    <target depends="init,compile,pre-dist,-do-dist-directory-deploy,post-dist" description="Build distribution (JAR) - if directory deployment is not supported." name="dist-directory-deploy"/>
   1.440 +	<target depends="init,compile,pre-dist" if="do.package.without.custom.manifest.not.directory.deploy" name="-do-tmp-dist-without-manifest">
   1.441 +		<dirname file="${dist.jar}" property="dist.jar.dir"/>
   1.442 +		<mkdir dir="${dist.jar.dir}"/>
   1.443 +		<jar compress="${jar.compress}" jarfile="${dist.jar}">
   1.444 +			<fileset dir="${build.dir}"/>
   1.445 +		</jar>
   1.446 +	</target>
   1.447 +	<target depends="init,compile,pre-dist" if="do.package.with.custom.manifest.not.directory.deploy" name="-do-tmp-dist-with-manifest">
   1.448 +		<dirname file="${dist.jar}" property="dist.jar.dir"/>
   1.449 +		<mkdir dir="${dist.jar.dir}"/>
   1.450 +		<jar compress="${jar.compress}" jarfile="${dist.jar}" manifest="${meta.inf}/MANIFEST.MF">
   1.451 +			<fileset dir="${build.dir}"/>
   1.452 +		</jar>
   1.453 +	</target>
   1.454 +	<target depends="init,compile,pre-dist,-do-tmp-dist-without-manifest,-do-tmp-dist-with-manifest" name="-do-dist-directory-deploy"/>
   1.455 +	<target depends="init,compile,pre-dist,-do-dist-directory-deploy,post-dist" description="Build distribution (JAR) - if directory deployment is not supported." name="dist-directory-deploy"/>
   1.456      <!--
   1.457                  END TARGETS NEEDED TO SUPPORT DIRECTORY DEPLOYMENT
   1.458              -->
   1.459 -    <target name="post-dist">
   1.460 +	<target name="post-dist">
   1.461          <!-- Empty placeholder for easier customization. -->
   1.462          <!-- You can override this target in the ../build.xml file. -->
   1.463 -    </target>
   1.464 -    <target depends="init,compile,pre-dist,do-dist-without-manifest,do-dist-with-manifest,post-dist" description="Build distribution (JAR)." name="dist"/>
   1.465 +	</target>
   1.466 +	<target depends="init,compile,pre-dist,do-dist-without-manifest,do-dist-with-manifest,post-dist" description="Build distribution (JAR)." name="dist"/>
   1.467      <!--
   1.468      EXECUTION SECTION
   1.469      -->
   1.470 -    <target depends="run-deploy,run-display-browser,run-ac" description="Deploy to server." name="run"/>
   1.471 -    <target name="pre-run-deploy">
   1.472 +	<target depends="run-deploy,run-display-browser,run-ac" description="Deploy to server." name="run"/>
   1.473 +	<target name="pre-run-deploy">
   1.474          <!-- Empty placeholder for easier customization. -->
   1.475          <!-- You can override this target in the ../build.xml file. -->
   1.476 -    </target>
   1.477 -    <target name="post-run-deploy">
   1.478 +	</target>
   1.479 +	<target name="post-run-deploy">
   1.480          <!-- Empty placeholder for easier customization. -->
   1.481          <!-- You can override this target in the ../build.xml file. -->
   1.482 -    </target>
   1.483 -    <target name="-pre-nbmodule-run-deploy">
   1.484 +	</target>
   1.485 +	<target name="-pre-nbmodule-run-deploy">
   1.486          <!-- Empty placeholder for easier customization. -->
   1.487          <!-- This target can be overriden by NetBeans modules. Don't override it directly, use -pre-run-deploy task instead. -->
   1.488 -    </target>
   1.489 -    <target name="-post-nbmodule-run-deploy">
   1.490 +	</target>
   1.491 +	<target name="-post-nbmodule-run-deploy">
   1.492          <!-- Empty placeholder for easier customization. -->
   1.493          <!-- This target can be overriden by NetBeans modules. Don't override it directly, use -post-run-deploy task instead. -->
   1.494 -    </target>
   1.495 -    <target name="-run-deploy-am" unless="no.deps">
   1.496 +	</target>
   1.497 +	<target name="-run-deploy-am" unless="no.deps">
   1.498          <!-- Task to deploy to the Access Manager runtime. -->
   1.499 -        <ant antfile="${project.nekurak_net-ejb}/build.xml" inheritall="false" target="-run-deploy-am"/>
   1.500 -        <ant antfile="${project.nekurak_net-rest}/build.xml" inheritall="false" target="-run-deploy-am"/>
   1.501 -        <ant antfile="${project.nekurak_net-web}/build.xml" inheritall="false" target="-run-deploy-am"/>
   1.502 -        <ant antfile="${project.nekurak_net-ws}/build.xml" inheritall="false" target="-run-deploy-am"/>
   1.503 -    </target>
   1.504 -    <target depends="-init-cos,dist-directory-deploy,pre-run-deploy,-pre-nbmodule-run-deploy,-run-deploy-nb,-init-deploy-ant,-deploy-ant,-run-deploy-am,-post-nbmodule-run-deploy,post-run-deploy" name="run-deploy"/>
   1.505 -    <target if="netbeans.home" name="-run-deploy-nb">
   1.506 -        <nbdeploy clientModuleUri="${client.module.uri}" clientUrlPart="${client.urlPart}" debugmode="false" forceRedeploy="${forceRedeploy}"/>
   1.507 -    </target>
   1.508 -    <target name="-init-deploy-ant" unless="netbeans.home">
   1.509 -        <property name="deploy.ant.archive" value="${dist.jar}"/>
   1.510 -        <property name="deploy.ant.resource.dir" value="${resource.dir}"/>
   1.511 -        <property name="deploy.ant.enabled" value="true"/>
   1.512 -    </target>
   1.513 -    <target depends="dist,-run-undeploy-nb,-init-deploy-ant,-undeploy-ant" name="run-undeploy"/>
   1.514 -    <target if="netbeans.home" name="-run-undeploy-nb">
   1.515 -        <fail message="Undeploy is not supported from within the IDE"/>
   1.516 -    </target>
   1.517 -    <target depends="dist" name="verify">
   1.518 -        <nbverify file="${dist.jar}"/>
   1.519 -    </target>
   1.520 -    <target depends="run-deploy,-init-display-browser,-display-browser-nb,-display-browser-cl" name="run-display-browser"/>
   1.521 -    <target if="do.display.browser" name="-init-display-browser">
   1.522 -        <condition property="do.display.browser.nb">
   1.523 -            <isset property="netbeans.home"/>
   1.524 -        </condition>
   1.525 -        <condition property="do.display.browser.cl">
   1.526 -            <and>
   1.527 -                <isset property="deploy.ant.enabled"/>
   1.528 -                <isset property="deploy.ant.client.url"/>
   1.529 -            </and>
   1.530 -        </condition>
   1.531 -    </target>
   1.532 -    <target if="do.display.browser.nb" name="-display-browser-nb">
   1.533 -        <nbbrowse url="${client.url}"/>
   1.534 -    </target>
   1.535 -    <target if="do.display.browser.cl" name="-get-browser" unless="browser">
   1.536 -        <condition property="browser" value="rundll32">
   1.537 -            <os family="windows"/>
   1.538 -        </condition>
   1.539 -        <condition else="" property="browser.args" value="url.dll,FileProtocolHandler">
   1.540 -            <os family="windows"/>
   1.541 -        </condition>
   1.542 -        <condition property="browser" value="/usr/bin/open">
   1.543 -            <os family="mac"/>
   1.544 -        </condition>
   1.545 -        <property environment="env"/>
   1.546 -        <condition property="browser" value="${env.BROWSER}">
   1.547 -            <isset property="env.BROWSER"/>
   1.548 -        </condition>
   1.549 -        <condition property="browser" value="/usr/bin/firefox">
   1.550 -            <available file="/usr/bin/firefox"/>
   1.551 -        </condition>
   1.552 -        <condition property="browser" value="/usr/local/firefox/firefox">
   1.553 -            <available file="/usr/local/firefox/firefox"/>
   1.554 -        </condition>
   1.555 -        <condition property="browser" value="/usr/bin/mozilla">
   1.556 -            <available file="/usr/bin/mozilla"/>
   1.557 -        </condition>
   1.558 -        <condition property="browser" value="/usr/local/mozilla/mozilla">
   1.559 -            <available file="/usr/local/mozilla/mozilla"/>
   1.560 -        </condition>
   1.561 -        <condition property="browser" value="/usr/sfw/lib/firefox/firefox">
   1.562 -            <available file="/usr/sfw/lib/firefox/firefox"/>
   1.563 -        </condition>
   1.564 -        <condition property="browser" value="/opt/csw/bin/firefox">
   1.565 -            <available file="/opt/csw/bin/firefox"/>
   1.566 -        </condition>
   1.567 -        <condition property="browser" value="/usr/sfw/lib/mozilla/mozilla">
   1.568 -            <available file="/usr/sfw/lib/mozilla/mozilla"/>
   1.569 -        </condition>
   1.570 -        <condition property="browser" value="/opt/csw/bin/mozilla">
   1.571 -            <available file="/opt/csw/bin/mozilla"/>
   1.572 -        </condition>
   1.573 -    </target>
   1.574 -    <target depends="-get-browser" if="do.display.browser.cl" name="-display-browser-cl">
   1.575 -        <fail unless="browser">
   1.576 +		<ant antfile="${project.nekurak_net-ejb}/build.xml" inheritall="false" target="-run-deploy-am"/>
   1.577 +		<ant antfile="${project.nekurak_net-rest}/build.xml" inheritall="false" target="-run-deploy-am"/>
   1.578 +		<ant antfile="${project.nekurak_net-web}/build.xml" inheritall="false" target="-run-deploy-am"/>
   1.579 +		<ant antfile="${project.nekurak_net-ws}/build.xml" inheritall="false" target="-run-deploy-am"/>
   1.580 +	</target>
   1.581 +	<target depends="-init-cos,dist-directory-deploy,pre-run-deploy,-pre-nbmodule-run-deploy,-run-deploy-nb,-init-deploy-ant,-deploy-ant,-run-deploy-am,-post-nbmodule-run-deploy,post-run-deploy" name="run-deploy"/>
   1.582 +	<target if="netbeans.home" name="-run-deploy-nb">
   1.583 +		<nbdeploy clientModuleUri="${client.module.uri}" clientUrlPart="${client.urlPart}" debugmode="false" forceRedeploy="${forceRedeploy}"/>
   1.584 +	</target>
   1.585 +	<target name="-init-deploy-ant" unless="netbeans.home">
   1.586 +		<property name="deploy.ant.archive" value="${dist.jar}"/>
   1.587 +		<property name="deploy.ant.resource.dir" value="${resource.dir}"/>
   1.588 +		<property name="deploy.ant.enabled" value="true"/>
   1.589 +	</target>
   1.590 +	<target depends="dist,-run-undeploy-nb,-init-deploy-ant,-undeploy-ant" name="run-undeploy"/>
   1.591 +	<target if="netbeans.home" name="-run-undeploy-nb">
   1.592 +		<fail message="Undeploy is not supported from within the IDE"/>
   1.593 +	</target>
   1.594 +	<target depends="dist" name="verify">
   1.595 +		<nbverify file="${dist.jar}"/>
   1.596 +	</target>
   1.597 +	<target depends="run-deploy,-init-display-browser,-display-browser-nb,-display-browser-cl" name="run-display-browser"/>
   1.598 +	<target if="do.display.browser" name="-init-display-browser">
   1.599 +		<condition property="do.display.browser.nb">
   1.600 +			<isset property="netbeans.home"/>
   1.601 +		</condition>
   1.602 +		<condition property="do.display.browser.cl">
   1.603 +			<and>
   1.604 +				<isset property="deploy.ant.enabled"/>
   1.605 +				<isset property="deploy.ant.client.url"/>
   1.606 +			</and>
   1.607 +		</condition>
   1.608 +	</target>
   1.609 +	<target if="do.display.browser.nb" name="-display-browser-nb">
   1.610 +		<nbbrowse url="${client.url}"/>
   1.611 +	</target>
   1.612 +	<target if="do.display.browser.cl" name="-get-browser" unless="browser">
   1.613 +		<condition property="browser" value="rundll32">
   1.614 +			<os family="windows"/>
   1.615 +		</condition>
   1.616 +		<condition else="" property="browser.args" value="url.dll,FileProtocolHandler">
   1.617 +			<os family="windows"/>
   1.618 +		</condition>
   1.619 +		<condition property="browser" value="/usr/bin/open">
   1.620 +			<os family="mac"/>
   1.621 +		</condition>
   1.622 +		<property environment="env"/>
   1.623 +		<condition property="browser" value="${env.BROWSER}">
   1.624 +			<isset property="env.BROWSER"/>
   1.625 +		</condition>
   1.626 +		<condition property="browser" value="/usr/bin/firefox">
   1.627 +			<available file="/usr/bin/firefox"/>
   1.628 +		</condition>
   1.629 +		<condition property="browser" value="/usr/local/firefox/firefox">
   1.630 +			<available file="/usr/local/firefox/firefox"/>
   1.631 +		</condition>
   1.632 +		<condition property="browser" value="/usr/bin/mozilla">
   1.633 +			<available file="/usr/bin/mozilla"/>
   1.634 +		</condition>
   1.635 +		<condition property="browser" value="/usr/local/mozilla/mozilla">
   1.636 +			<available file="/usr/local/mozilla/mozilla"/>
   1.637 +		</condition>
   1.638 +		<condition property="browser" value="/usr/sfw/lib/firefox/firefox">
   1.639 +			<available file="/usr/sfw/lib/firefox/firefox"/>
   1.640 +		</condition>
   1.641 +		<condition property="browser" value="/opt/csw/bin/firefox">
   1.642 +			<available file="/opt/csw/bin/firefox"/>
   1.643 +		</condition>
   1.644 +		<condition property="browser" value="/usr/sfw/lib/mozilla/mozilla">
   1.645 +			<available file="/usr/sfw/lib/mozilla/mozilla"/>
   1.646 +		</condition>
   1.647 +		<condition property="browser" value="/opt/csw/bin/mozilla">
   1.648 +			<available file="/opt/csw/bin/mozilla"/>
   1.649 +		</condition>
   1.650 +	</target>
   1.651 +	<target depends="-get-browser" if="do.display.browser.cl" name="-display-browser-cl">
   1.652 +		<fail unless="browser">
   1.653              Browser not found, cannot launch the deployed application. Try to set the BROWSER environment variable.
   1.654 -        </fail>
   1.655 -        <property name="browse.url" value="${deploy.ant.client.url}${client.urlPart}"/>
   1.656 -        <echo>Launching ${browse.url}</echo>
   1.657 -        <exec executable="${browser}" spawn="true">
   1.658 -            <arg line="${browser.args} ${browse.url}"/>
   1.659 -        </exec>
   1.660 -    </target>
   1.661 -    <target if="app.client" name="run-ac">
   1.662 -        <antcall target="-run-ac"/>
   1.663 -    </target>
   1.664 -    <target depends="init,-as-retrieve-option-workaround,-init-run-macros,-run-appclient-pregfv3,-run-appclient" name="-run-ac"/>
   1.665 -    <target if="j2ee.appclient.tool.args" name="-run-appclient-pregfv3">
   1.666 -        <ear2:run-appclient-pregfv3/>
   1.667 -    </target>
   1.668 -    <target name="-run-appclient" unless="j2ee.appclient.tool.args">
   1.669 -        <ear2:run-appclient subprojectname="${app.client}"/>
   1.670 -    </target>
   1.671 -    <target if="j2ee.appclient.mainclass.args" name="-as-retrieve-option-workaround" unless="j2ee.clientName">
   1.672 -        <property name="client.jar" value="${dist.dir}/nekurak.net-earClient.jar"/>
   1.673 -        <sleep seconds="3"/>
   1.674 -        <copy failonerror="false" file="${wa.copy.client.jar.from}/nekurak.net-ear/nekurak.net-earClient.jar" todir="${dist.dir}"/>
   1.675 -        <copy failonerror="false" flatten="true" todir="${dist.dir}/">
   1.676 -            <fileset dir="${wa.copy.client.jar.from}/nekurak.net-ear" includes="**/nekurak.net-earClient.jar"/>
   1.677 -        </copy>
   1.678 -        <copy flatten="true" todir="${dist.dir}/nekurak.net-earClient">
   1.679 -            <fileset dir="${wa.copy.client.jar.from}/nekurak.net-ear" includes="**/*.*ar"/>
   1.680 -        </copy>
   1.681 -        <copy failonerror="false" flatten="false" todir="${dist.dir}/nekurak.net-earClient">
   1.682 -            <fileset dir="${dist.dir}/gfdeploy/nekurak.net-ear" includes="**/*.jar"/>
   1.683 -        </copy>
   1.684 -    </target>
   1.685 -    <target depends="init" name="-init-run-macros">
   1.686 -        <macrodef name="run-appclient" uri="http://www.netbeans.org/ns/j2ee-earproject/2">
   1.687 -            <attribute name="subprojectname"/>
   1.688 -            <attribute default="${application.args.param}" name="args"/>
   1.689 -            <element name="customize" optional="true"/>
   1.690 -            <sequential>
   1.691 -                <java dir="${basedir}" fork="true" jar="${client.jar}">
   1.692 -                    <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
   1.693 -                    <jvmarg line="${j2ee.appclient.tool.jvmoptions}${client.jar},arg=-name,arg=@{subprojectname}"/>
   1.694 -                    <arg line="@{args}"/>
   1.695 -                    <syspropertyset>
   1.696 -                        <propertyref prefix="run-sys-prop."/>
   1.697 -                        <mapper from="run-sys-prop.*" to="*" type="glob"/>
   1.698 -                    </syspropertyset>
   1.699 -                    <customize/>
   1.700 -                </java>
   1.701 -            </sequential>
   1.702 -        </macrodef>
   1.703 -        <macrodef name="run-appclient-pregfv3" uri="http://www.netbeans.org/ns/j2ee-earproject/2">
   1.704 -            <element name="customize" optional="true"/>
   1.705 -            <sequential>
   1.706 -                <java classname="${j2ee.appclient.tool.mainclass}" fork="true">
   1.707 -                    <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
   1.708 -                    <jvmarg line="${j2ee.appclient.tool.jvmoptions}"/>
   1.709 -                    <jvmarg line="${j2ee.appclient.jvmoptions.param}"/>
   1.710 -                    <arg line="${j2ee.appclient.tool.args}"/>
   1.711 -                    <arg line="-client ${client.jar}"/>
   1.712 -                    <arg line="${j2ee.appclient.mainclass.tool.param}"/>
   1.713 -                    <arg line="${application.args.param}"/>
   1.714 -                    <classpath>
   1.715 -                        <path path="${j2ee.platform.classpath}:${j2ee.appclient.tool.runtime}"/>
   1.716 -                    </classpath>
   1.717 -                    <syspropertyset>
   1.718 -                        <propertyref prefix="run-sys-prop."/>
   1.719 -                        <mapper from="run-sys-prop.*" to="*" type="glob"/>
   1.720 -                    </syspropertyset>
   1.721 -                    <customize/>
   1.722 -                </java>
   1.723 -            </sequential>
   1.724 -        </macrodef>
   1.725 -    </target>
   1.726 +		</fail>
   1.727 +		<property name="browse.url" value="${deploy.ant.client.url}${client.urlPart}"/>
   1.728 +		<echo>Launching ${browse.url}</echo>
   1.729 +		<exec executable="${browser}" spawn="true">
   1.730 +			<arg line="${browser.args} ${browse.url}"/>
   1.731 +		</exec>
   1.732 +	</target>
   1.733 +	<target if="app.client" name="run-ac">
   1.734 +		<antcall target="-run-ac"/>
   1.735 +	</target>
   1.736 +	<target depends="init,-as-retrieve-option-workaround,-init-run-macros,-run-appclient-pregfv3,-run-appclient" name="-run-ac"/>
   1.737 +	<target if="j2ee.appclient.tool.args" name="-run-appclient-pregfv3">
   1.738 +		<ear2:run-appclient-pregfv3/>
   1.739 +	</target>
   1.740 +	<target name="-run-appclient" unless="j2ee.appclient.tool.args">
   1.741 +		<ear2:run-appclient subprojectname="${app.client}"/>
   1.742 +	</target>
   1.743 +	<target if="j2ee.appclient.mainclass.args" name="-as-retrieve-option-workaround" unless="j2ee.clientName">
   1.744 +		<property name="client.jar" value="${dist.dir}/nekurak.net-earClient.jar"/>
   1.745 +		<sleep seconds="3"/>
   1.746 +		<copy failonerror="false" file="${wa.copy.client.jar.from}/nekurak.net-ear/nekurak.net-earClient.jar" todir="${dist.dir}"/>
   1.747 +		<copy failonerror="false" flatten="true" todir="${dist.dir}/">
   1.748 +			<fileset dir="${wa.copy.client.jar.from}/nekurak.net-ear" includes="**/nekurak.net-earClient.jar"/>
   1.749 +		</copy>
   1.750 +		<copy flatten="true" todir="${dist.dir}/nekurak.net-earClient">
   1.751 +			<fileset dir="${wa.copy.client.jar.from}/nekurak.net-ear" includes="**/*.*ar"/>
   1.752 +		</copy>
   1.753 +		<copy failonerror="false" flatten="false" todir="${dist.dir}/nekurak.net-earClient">
   1.754 +			<fileset dir="${dist.dir}/gfdeploy/nekurak.net-ear" includes="**/*.jar"/>
   1.755 +		</copy>
   1.756 +	</target>
   1.757 +	<target depends="init" name="-init-run-macros">
   1.758 +		<macrodef name="run-appclient" uri="http://www.netbeans.org/ns/j2ee-earproject/2">
   1.759 +			<attribute name="subprojectname"/>
   1.760 +			<attribute default="${application.args.param}" name="args"/>
   1.761 +			<element name="customize" optional="true"/>
   1.762 +			<sequential>
   1.763 +				<java dir="${basedir}" fork="true" jar="${client.jar}">
   1.764 +					<jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
   1.765 +					<jvmarg line="${j2ee.appclient.tool.jvmoptions}${client.jar},arg=-name,arg=@{subprojectname}"/>
   1.766 +					<jvmarg line="${j2ee.appclient.jvmoptions.param}"/>
   1.767 +					<arg line="@{args}"/>
   1.768 +					<syspropertyset>
   1.769 +						<propertyref prefix="run-sys-prop."/>
   1.770 +						<mapper from="run-sys-prop.*" to="*" type="glob"/>
   1.771 +					</syspropertyset>
   1.772 +					<customize/>
   1.773 +				</java>
   1.774 +			</sequential>
   1.775 +		</macrodef>
   1.776 +		<macrodef name="run-appclient-pregfv3" uri="http://www.netbeans.org/ns/j2ee-earproject/2">
   1.777 +			<element name="customize" optional="true"/>
   1.778 +			<sequential>
   1.779 +				<java classname="${j2ee.appclient.tool.mainclass}" fork="true">
   1.780 +					<jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
   1.781 +					<jvmarg line="${j2ee.appclient.tool.jvmoptions}"/>
   1.782 +					<jvmarg line="${j2ee.appclient.jvmoptions.param}"/>
   1.783 +					<arg line="${j2ee.appclient.tool.args}"/>
   1.784 +					<arg line="-client ${client.jar}"/>
   1.785 +					<arg line="${j2ee.appclient.mainclass.tool.param}"/>
   1.786 +					<arg line="${application.args.param}"/>
   1.787 +					<classpath>
   1.788 +						<path path="${j2ee.platform.classpath}:${j2ee.appclient.tool.runtime}"/>
   1.789 +					</classpath>
   1.790 +					<syspropertyset>
   1.791 +						<propertyref prefix="run-sys-prop."/>
   1.792 +						<mapper from="run-sys-prop.*" to="*" type="glob"/>
   1.793 +					</syspropertyset>
   1.794 +					<customize/>
   1.795 +				</java>
   1.796 +			</sequential>
   1.797 +		</macrodef>
   1.798 +	</target>
   1.799      <!--
   1.800      DEBUGGING SECTION
   1.801      -->
   1.802 -    <target depends="run-debug,run-debug-appclient" description="Deploy to server." name="debug"/>
   1.803 -    <target depends="dist" description="Debug project in IDE." if="netbeans.home" name="run-debug" unless="app.client">
   1.804 -        <nbdeploy clientModuleUri="${client.module.uri}" clientUrlPart="${client.urlPart}" debugmode="true"/>
   1.805 -        <antcall target="connect-debugger"/>
   1.806 -        <antcall target="debug-display-browser"/>
   1.807 -    </target>
   1.808 -    <target name="connect-debugger" unless="is.debugged">
   1.809 -        <nbjpdaconnect address="${jpda.address}" host="${jpda.host}" name="${jpda.host}:${jpda.address}" transport="${jpda.transport}">
   1.810 -            <classpath>
   1.811 -                <path path="${debug.classpath}"/>
   1.812 -                <fileset dir="${build.dir}" includes="lib/*.jar"/>
   1.813 -            </classpath>
   1.814 -            <sourcepath>
   1.815 -                <path path="${ear.docbase.dirs}"/>
   1.816 -            </sourcepath>
   1.817 -        </nbjpdaconnect>
   1.818 -    </target>
   1.819 -    <target if="do.display.browser" name="debug-display-browser">
   1.820 -        <nbbrowse url="${client.url}"/>
   1.821 -    </target>
   1.822 -    <target if="can.debug.appclient" name="run-debug-appclient">
   1.823 -        <antcall target="-run-debug-appclient"/>
   1.824 -    </target>
   1.825 -    <target depends="init,-init-debug-args,-debug-appclient-deploy,-as-retrieve-option-workaround,-init-debug-macros,-debug-appclient-start-nbjpda,-debug-appclient-pregfv3,-debug-appclient,connect-debugger" name="-run-debug-appclient"/>
   1.826 -    <target name="-init-debug-args">
   1.827 -        <property name="version-output" value="java version &quot;${ant.java.version}"/>
   1.828 -        <condition property="have-jdk-older-than-1.4">
   1.829 -            <or>
   1.830 -                <contains string="${version-output}" substring="java version &quot;1.0"/>
   1.831 -                <contains string="${version-output}" substring="java version &quot;1.1"/>
   1.832 -                <contains string="${version-output}" substring="java version &quot;1.2"/>
   1.833 -                <contains string="${version-output}" substring="java version &quot;1.3"/>
   1.834 -            </or>
   1.835 -        </condition>
   1.836 -        <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
   1.837 -            <istrue value="${have-jdk-older-than-1.4}"/>
   1.838 -        </condition>
   1.839 -    </target>
   1.840 -    <target depends="init,-init-debug-args,-as-retrieve-option-workaround,-init-run-macros" name="-init-debug-macros">
   1.841 -        <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
   1.842 -            <os family="windows"/>
   1.843 -        </condition>
   1.844 -        <condition else="${debug-transport-by-os}" property="debug-transport-appclient" value="${debug.transport}">
   1.845 -            <isset property="debug.transport"/>
   1.846 -        </condition>
   1.847 -        <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2ee-earproject/2">
   1.848 -            <attribute default="${main.class}" name="name"/>
   1.849 -            <attribute default="${debug.classpath}" name="classpath"/>
   1.850 -            <attribute default="" name="stopclassname"/>
   1.851 -            <sequential>
   1.852 -                <nbjpdastart addressproperty="jpda.address.appclient" name="@{name}" stopclassname="@{stopclassname}" transport="${debug-transport-appclient}">
   1.853 -                    <classpath>
   1.854 -                        <path path="@{classpath}"/>
   1.855 -                    </classpath>
   1.856 -                </nbjpdastart>
   1.857 -            </sequential>
   1.858 -        </macrodef>
   1.859 -        <macrodef name="debug-appclient" uri="http://www.netbeans.org/ns/j2ee-earproject/2">
   1.860 -            <attribute name="subprojectname"/>
   1.861 -            <sequential>
   1.862 -                <ear2:run-appclient subprojectname="@{subprojectname}">
   1.863 -                    <customize>
   1.864 -                        <jvmarg value="-Xrunjdwp:transport=${debug-transport-appclient},address=${jpda.address.appclient}"/>
   1.865 -                        <jvmarg line="${debug-args-line}"/>
   1.866 -                    </customize>
   1.867 -                </ear2:run-appclient>
   1.868 -            </sequential>
   1.869 -        </macrodef>
   1.870 -        <macrodef name="debug-appclient-pregfv3" uri="http://www.netbeans.org/ns/j2ee-earproject/2">
   1.871 -            <sequential>
   1.872 -                <ear2:run-appclient-pregfv3>
   1.873 -                    <customize>
   1.874 -                        <jvmarg value="-Xrunjdwp:transport=${debug-transport-appclient},address=${jpda.address.appclient}"/>
   1.875 -                        <jvmarg line="${debug-args-line}"/>
   1.876 -                    </customize>
   1.877 -                </ear2:run-appclient-pregfv3>
   1.878 -            </sequential>
   1.879 -        </macrodef>
   1.880 -    </target>
   1.881 -    <target name="-debug-appclient-deploy">
   1.882 -        <nbstartserver debugmode="true"/>
   1.883 -        <nbdeploy clientModuleUri="${client.module.uri}" clientUrlPart="${client.urlPart}" debugmode="true"/>
   1.884 -    </target>
   1.885 -    <target name="-debug-appclient-start-nbjpda">
   1.886 -        <ear2:nbjpdastart classpath="" name="${app.client}"/>
   1.887 -    </target>
   1.888 -    <target if="j2ee.appclient.tool.args" name="-debug-appclient-pregfv3">
   1.889 -        <ear2:debug-appclient-pregfv3/>
   1.890 -    </target>
   1.891 -    <target name="-debug-appclient" unless="j2ee.appclient.tool.args">
   1.892 -        <mkdir dir="${dist.dir}/nekurak.net-earClient"/>
   1.893 -        <copy flatten="true" todir="${dist.dir}/nekurak.net-earClient">
   1.894 -            <fileset dir="${wa.copy.client.jar.from}/nekurak.net-ear" includes="**/*.*ar"/>
   1.895 -        </copy>
   1.896 -        <ear2:debug-appclient subprojectname="${app.client}"/>
   1.897 -    </target>
   1.898 +	<target depends="run-debug,run-debug-appclient" description="Deploy to server." name="debug"/>
   1.899 +	<target depends="dist" description="Debug project in IDE." if="netbeans.home" name="run-debug" unless="app.client">
   1.900 +		<nbdeploy clientModuleUri="${client.module.uri}" clientUrlPart="${client.urlPart}" debugmode="true"/>
   1.901 +		<antcall target="connect-debugger"/>
   1.902 +		<antcall target="debug-display-browser"/>
   1.903 +	</target>
   1.904 +	<target name="connect-debugger" unless="is.debugged">
   1.905 +		<nbjpdaconnect address="${jpda.address}" host="${jpda.host}" name="${jpda.host}:${jpda.address}" transport="${jpda.transport}">
   1.906 +			<classpath>
   1.907 +				<path path="${debug.classpath}"/>
   1.908 +				<fileset dir="${build.dir}" includes="lib/*.jar"/>
   1.909 +			</classpath>
   1.910 +			<sourcepath>
   1.911 +				<path path="${ear.docbase.dirs}"/>
   1.912 +			</sourcepath>
   1.913 +		</nbjpdaconnect>
   1.914 +	</target>
   1.915 +	<target if="do.display.browser" name="debug-display-browser">
   1.916 +		<nbbrowse url="${client.url}"/>
   1.917 +	</target>
   1.918 +	<target if="can.debug.appclient" name="run-debug-appclient">
   1.919 +		<antcall target="-run-debug-appclient"/>
   1.920 +	</target>
   1.921 +	<target depends="init,-init-debug-args,-debug-appclient-deploy,-as-retrieve-option-workaround,-init-debug-macros,-debug-appclient-start-nbjpda,-debug-appclient-pregfv3,-debug-appclient,connect-debugger" name="-run-debug-appclient"/>
   1.922 +	<target name="-init-debug-args">
   1.923 +		<property name="version-output" value="java version &quot;${ant.java.version}"/>
   1.924 +		<condition property="have-jdk-older-than-1.4">
   1.925 +			<or>
   1.926 +				<contains string="${version-output}" substring="java version &quot;1.0"/>
   1.927 +				<contains string="${version-output}" substring="java version &quot;1.1"/>
   1.928 +				<contains string="${version-output}" substring="java version &quot;1.2"/>
   1.929 +				<contains string="${version-output}" substring="java version &quot;1.3"/>
   1.930 +			</or>
   1.931 +		</condition>
   1.932 +		<condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
   1.933 +			<istrue value="${have-jdk-older-than-1.4}"/>
   1.934 +		</condition>
   1.935 +	</target>
   1.936 +	<target depends="init,-init-debug-args,-as-retrieve-option-workaround,-init-run-macros" name="-init-debug-macros">
   1.937 +		<condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
   1.938 +			<os family="windows"/>
   1.939 +		</condition>
   1.940 +		<condition else="${debug-transport-by-os}" property="debug-transport-appclient" value="${debug.transport}">
   1.941 +			<isset property="debug.transport"/>
   1.942 +		</condition>
   1.943 +		<macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2ee-earproject/2">
   1.944 +			<attribute default="${main.class}" name="name"/>
   1.945 +			<attribute default="${debug.classpath}" name="classpath"/>
   1.946 +			<attribute default="" name="stopclassname"/>
   1.947 +			<sequential>
   1.948 +				<nbjpdastart addressproperty="jpda.address.appclient" name="@{name}" stopclassname="@{stopclassname}" transport="${debug-transport-appclient}">
   1.949 +					<classpath>
   1.950 +						<path path="@{classpath}"/>
   1.951 +					</classpath>
   1.952 +				</nbjpdastart>
   1.953 +			</sequential>
   1.954 +		</macrodef>
   1.955 +		<macrodef name="debug-appclient" uri="http://www.netbeans.org/ns/j2ee-earproject/2">
   1.956 +			<attribute name="subprojectname"/>
   1.957 +			<sequential>
   1.958 +				<ear2:run-appclient subprojectname="@{subprojectname}">
   1.959 +					<customize>
   1.960 +						<jvmarg value="-Xrunjdwp:transport=${debug-transport-appclient},address=${jpda.address.appclient}"/>
   1.961 +						<jvmarg line="${debug-args-line}"/>
   1.962 +					</customize>
   1.963 +				</ear2:run-appclient>
   1.964 +			</sequential>
   1.965 +		</macrodef>
   1.966 +		<macrodef name="debug-appclient-pregfv3" uri="http://www.netbeans.org/ns/j2ee-earproject/2">
   1.967 +			<sequential>
   1.968 +				<ear2:run-appclient-pregfv3>
   1.969 +					<customize>
   1.970 +						<jvmarg value="-Xrunjdwp:transport=${debug-transport-appclient},address=${jpda.address.appclient}"/>
   1.971 +						<jvmarg line="${debug-args-line}"/>
   1.972 +					</customize>
   1.973 +				</ear2:run-appclient-pregfv3>
   1.974 +			</sequential>
   1.975 +		</macrodef>
   1.976 +	</target>
   1.977 +	<target name="-debug-appclient-deploy">
   1.978 +		<nbstartserver debugmode="true"/>
   1.979 +		<nbdeploy clientModuleUri="${client.module.uri}" clientUrlPart="${client.urlPart}" debugmode="true"/>
   1.980 +	</target>
   1.981 +	<target name="-debug-appclient-start-nbjpda">
   1.982 +		<ear2:nbjpdastart classpath="" name="${app.client}"/>
   1.983 +	</target>
   1.984 +	<target if="j2ee.appclient.tool.args" name="-debug-appclient-pregfv3">
   1.985 +		<ear2:debug-appclient-pregfv3/>
   1.986 +	</target>
   1.987 +	<target name="-debug-appclient" unless="j2ee.appclient.tool.args">
   1.988 +		<ear2:debug-appclient subprojectname="${app.client}"/>
   1.989 +	</target>
   1.990 +    <!--
   1.991 +    =================
   1.992 +    PROFILING SECTION
   1.993 +    =================
   1.994 +    -->
   1.995 +	<target description="Profile a J2EE project in the IDE." name="profile">
   1.996 +		<condition else="start-profiled-server" property="profiler.startserver.target" value="start-profiled-server-extraargs">
   1.997 +			<isset property="profiler.info.jvmargs.extra"/>
   1.998 +		</condition>
   1.999 +		<antcall target="${profiler.startserver.target}"/>
  1.1000 +		<antcall target="run"/>
  1.1001 +		<antcall target="start-loadgen"/>
  1.1002 +	</target>
  1.1003 +	<target name="start-profiled-server">
  1.1004 +		<nbstartprofiledserver forceRestart="${profiler.j2ee.serverForceRestart}" javaPlatform="${profiler.info.javaPlatform}" startupTimeout="${profiler.j2ee.serverStartupTimeout}">
  1.1005 +			<jvmarg value="${profiler.info.jvmargs.agent}"/>
  1.1006 +			<jvmarg value="${profiler.j2ee.agentID}"/>
  1.1007 +		</nbstartprofiledserver>
  1.1008 +	</target>
  1.1009 +	<target name="start-profiled-server-extraargs">
  1.1010 +		<nbstartprofiledserver forceRestart="${profiler.j2ee.serverForceRestart}" javaPlatform="${profiler.info.javaPlatform}" startupTimeout="${profiler.j2ee.serverStartupTimeout}">
  1.1011 +			<jvmarg value="${profiler.info.jvmargs.extra}"/>
  1.1012 +			<jvmarg value="${profiler.info.jvmargs.agent}"/>
  1.1013 +			<jvmarg value="${profiler.j2ee.agentID}"/>
  1.1014 +		</nbstartprofiledserver>
  1.1015 +	</target>
  1.1016 +	<target if="profiler.loadgen.path" name="start-loadgen">
  1.1017 +		<loadgenstart path="${profiler.loadgen.path}"/>
  1.1018 +	</target>
  1.1019      <!--
  1.1020      CLEANUP SECTION
  1.1021      -->
  1.1022 -    <target depends="init" name="deps-clean" unless="no.deps">
  1.1023 -        <condition property="build.deploy.on.save" value="false">
  1.1024 -            <not>
  1.1025 -                <isset property="build.deploy.on.save"/>
  1.1026 -            </not>
  1.1027 -        </condition>
  1.1028 -        <ant antfile="${project.nekurak_net-ejb}/build.xml" inheritall="false" target="clean-ear">
  1.1029 -            <property location="${build.dir}" name="dist.ear.dir"/>
  1.1030 -            <property name="deploy.on.save" value="${build.deploy.on.save}"/>
  1.1031 -        </ant>
  1.1032 -        <condition property="build.deploy.on.save" value="false">
  1.1033 -            <not>
  1.1034 -                <isset property="build.deploy.on.save"/>
  1.1035 -            </not>
  1.1036 -        </condition>
  1.1037 -        <ant antfile="${project.nekurak_net-rest}/build.xml" inheritall="false" target="clean-ear">
  1.1038 -            <property location="${build.dir}" name="dist.ear.dir"/>
  1.1039 -            <property name="deploy.on.save" value="${build.deploy.on.save}"/>
  1.1040 -        </ant>
  1.1041 -        <condition property="build.deploy.on.save" value="false">
  1.1042 -            <not>
  1.1043 -                <isset property="build.deploy.on.save"/>
  1.1044 -            </not>
  1.1045 -        </condition>
  1.1046 -        <ant antfile="${project.nekurak_net-web}/build.xml" inheritall="false" target="clean-ear">
  1.1047 -            <property location="${build.dir}" name="dist.ear.dir"/>
  1.1048 -            <property name="deploy.on.save" value="${build.deploy.on.save}"/>
  1.1049 -        </ant>
  1.1050 -        <condition property="build.deploy.on.save" value="false">
  1.1051 -            <not>
  1.1052 -                <isset property="build.deploy.on.save"/>
  1.1053 -            </not>
  1.1054 -        </condition>
  1.1055 -        <ant antfile="${project.nekurak_net-ws}/build.xml" inheritall="false" target="clean-ear">
  1.1056 -            <property location="${build.dir}" name="dist.ear.dir"/>
  1.1057 -            <property name="deploy.on.save" value="${build.deploy.on.save}"/>
  1.1058 -        </ant>
  1.1059 -    </target>
  1.1060 -    <target depends="init" name="do-clean">
  1.1061 -        <delete dir="${build.dir}"/>
  1.1062 -        <delete dir="${dist.dir}"/>
  1.1063 -        <delete dir="${build.dir}"/>
  1.1064 -    </target>
  1.1065 -    <target depends="init" if="netbeans.home" name="undeploy-clean">
  1.1066 -        <nbundeploy failOnError="false" startServer="false"/>
  1.1067 -    </target>
  1.1068 -    <target name="post-clean">
  1.1069 +	<target depends="init" name="deps-clean" unless="no.deps">
  1.1070 +		<condition property="build.deploy.on.save" value="false">
  1.1071 +			<not>
  1.1072 +				<isset property="build.deploy.on.save"/>
  1.1073 +			</not>
  1.1074 +		</condition>
  1.1075 +		<ant antfile="${project.nekurak_net-ejb}/build.xml" inheritall="false" target="clean-ear">
  1.1076 +			<property location="${build.dir}" name="dist.ear.dir"/>
  1.1077 +			<property name="deploy.on.save" value="${build.deploy.on.save}"/>
  1.1078 +		</ant>
  1.1079 +		<condition property="build.deploy.on.save" value="false">
  1.1080 +			<not>
  1.1081 +				<isset property="build.deploy.on.save"/>
  1.1082 +			</not>
  1.1083 +		</condition>
  1.1084 +		<ant antfile="${project.nekurak_net-rest}/build.xml" inheritall="false" target="clean-ear">
  1.1085 +			<property location="${build.dir}" name="dist.ear.dir"/>
  1.1086 +			<property name="deploy.on.save" value="${build.deploy.on.save}"/>
  1.1087 +		</ant>
  1.1088 +		<condition property="build.deploy.on.save" value="false">
  1.1089 +			<not>
  1.1090 +				<isset property="build.deploy.on.save"/>
  1.1091 +			</not>
  1.1092 +		</condition>
  1.1093 +		<ant antfile="${project.nekurak_net-web}/build.xml" inheritall="false" target="clean-ear">
  1.1094 +			<property location="${build.dir}" name="dist.ear.dir"/>
  1.1095 +			<property name="deploy.on.save" value="${build.deploy.on.save}"/>
  1.1096 +		</ant>
  1.1097 +		<condition property="build.deploy.on.save" value="false">
  1.1098 +			<not>
  1.1099 +				<isset property="build.deploy.on.save"/>
  1.1100 +			</not>
  1.1101 +		</condition>
  1.1102 +		<ant antfile="${project.nekurak_net-ws}/build.xml" inheritall="false" target="clean-ear">
  1.1103 +			<property location="${build.dir}" name="dist.ear.dir"/>
  1.1104 +			<property name="deploy.on.save" value="${build.deploy.on.save}"/>
  1.1105 +		</ant>
  1.1106 +	</target>
  1.1107 +	<target depends="init" name="do-clean">
  1.1108 +		<delete dir="${build.dir}"/>
  1.1109 +		<delete dir="${dist.dir}"/>
  1.1110 +		<delete dir="${build.dir}"/>
  1.1111 +	</target>
  1.1112 +	<target depends="init" if="netbeans.home" name="undeploy-clean">
  1.1113 +		<nbundeploy failOnError="false" startServer="false"/>
  1.1114 +	</target>
  1.1115 +	<target name="post-clean">
  1.1116          <!-- Empty placeholder for easier customization. -->
  1.1117          <!-- You can override this target in the ../build.xml file. -->
  1.1118 -    </target>
  1.1119 -    <target depends="init,undeploy-clean,deps-clean,do-clean,post-clean" description="Clean build products." name="clean"/>
  1.1120 +	</target>
  1.1121 +	<target depends="init,undeploy-clean,deps-clean,do-clean,post-clean" description="Clean build products." name="clean"/>
  1.1122  </project>