java/nekurak.net-ear/nbproject/build-impl.xml
author František Kučera <franta-hg@frantovo.cz>
Sat Jan 08 20:18:27 2011 +0100 (2011-01-08)
changeset 154 bf21a4abea9b
parent 98 75dec396f0e3
child 186 b0f7d9ab4a07
permissions -rw-r--r--
Kategorie podniků (hospoda, bar, kavárna atd.)
- datový model (tabulky kategorie a podnik_kategorie)
- entity a mapování
- zobrazování formou štítků ve výpisu podniků
     1 <?xml version="1.0" encoding="UTF-8"?>
     2 <!--
     3 *** GENERATED FROM project.xml - DO NOT EDIT  ***
     4 ***         EDIT ../build.xml INSTEAD         ***
     5 
     6 For the purpose of easier reading the script
     7 is divided into following sections:
     8 
     9   - initialization
    10   - compilation
    11   - dist
    12   - execution
    13   - debugging
    14   - cleanup
    15 
    16 -->
    17 <project xmlns:ear2="http://www.netbeans.org/ns/j2ee-earproject/2" basedir=".." default="default" name="nekurak.net-ear-impl">
    18     <import file="ant-deploy.xml"/>
    19     <fail message="Please build using Ant 1.7.1 or higher.">
    20         <condition>
    21             <not>
    22                 <antversion atleast="1.7.1"/>
    23             </not>
    24         </condition>
    25     </fail>
    26     <target depends="dist" description="Build whole project." name="default"/>
    27     <!-- 
    28     INITIALIZATION SECTION 
    29     -->
    30     <target name="pre-init">
    31         <!-- Empty placeholder for easier customization. -->
    32         <!-- You can override this target in the ../build.xml file. -->
    33     </target>
    34     <target depends="pre-init" name="init-private">
    35         <property file="nbproject/private/private.properties"/>
    36     </target>
    37     <target depends="pre-init,init-private" name="init-userdir">
    38         <property location="${netbeans.user}/build.properties" name="user.properties.file"/>
    39     </target>
    40     <target depends="pre-init,init-private,init-userdir" name="init-user">
    41         <property file="${user.properties.file}"/>
    42     </target>
    43     <target depends="pre-init,init-private,init-userdir,init-user" name="init-project">
    44         <property file="nbproject/project.properties"/>
    45     </target>
    46     <target depends="pre-init,init-private,init-userdir,init-user,init-project" name="do-init">
    47         <!-- The two properties below are usually overridden -->
    48         <!-- by the active platform. Just a fallback. -->
    49         <property name="default.javac.source" value="1.4"/>
    50         <property name="default.javac.target" value="1.4"/>
    51         <condition property="do.compile.jsps">
    52             <istrue value="${compile.jsps}"/>
    53         </condition>
    54         <condition property="do.display.browser">
    55             <and>
    56                 <istrue value="${display.browser}"/>
    57                 <isset property="client.module.uri"/>
    58                 <not>
    59                     <isset property="app.client"/>
    60                 </not>
    61             </and>
    62         </condition>
    63         <available file="${meta.inf}/MANIFEST.MF" property="has.custom.manifest"/>
    64         <!--
    65                     Variables needed to support directory deployment.
    66                 -->
    67         <condition property="do.package.with.custom.manifest.not.directory.deploy">
    68             <and>
    69                 <isset property="has.custom.manifest"/>
    70                 <isfalse value="${directory.deployment.supported}"/>
    71             </and>
    72         </condition>
    73         <condition property="do.package.without.custom.manifest.not.directory.deploy">
    74             <and>
    75                 <not>
    76                     <isset property="has.custom.manifest"/>
    77                 </not>
    78                 <isfalse value="${directory.deployment.supported}"/>
    79             </and>
    80         </condition>
    81         <condition property="do.package.not.directory.deploy">
    82             <isfalse value="${directory.deployment.supported}"/>
    83         </condition>
    84         <!--End Variables needed to support directory deployment.-->
    85         <condition else="" property="j2ee.appclient.mainclass.tool.param" value="-mainclass ${main.class}">
    86             <and>
    87                 <isset property="main.class"/>
    88                 <not>
    89                     <equals arg1="${main.class}" arg2="" trim="true"/>
    90                 </not>
    91             </and>
    92         </condition>
    93         <condition else="" property="j2ee.appclient.jvmoptions.param" value="${j2ee.appclient.jvmoptions}">
    94             <and>
    95                 <isset property="j2ee.appclient.jvmoptions"/>
    96                 <not>
    97                     <equals arg1="${j2ee.appclient.jvmoptions}" arg2="" trim="true"/>
    98                 </not>
    99             </and>
   100         </condition>
   101         <condition else="" property="application.args.param" value="${application.args}">
   102             <and>
   103                 <isset property="application.args"/>
   104                 <not>
   105                     <equals arg1="${application.args}" arg2="" trim="true"/>
   106                 </not>
   107             </and>
   108         </condition>
   109         <condition property="can.debug.appclient">
   110             <and>
   111                 <isset property="netbeans.home"/>
   112                 <isset property="app.client"/>
   113             </and>
   114         </condition>
   115         <path id="endorsed.classpath.path" path="${endorsed.classpath}"/>
   116         <condition else="" property="endorsed.classpath.cmd.line.arg" value="-Xbootclasspath/p:'${toString:endorsed.classpath.path}'">
   117             <length length="0" string="${endorsed.classpath}" when="greater"/>
   118         </condition>
   119     </target>
   120     <target depends="init" name="-init-cos">
   121         <condition else="false" property="build.deploy.on.save">
   122             <istrue value="${j2ee.deploy.on.save}"/>
   123         </condition>
   124     </target>
   125     <target name="post-init">
   126         <!-- Empty placeholder for easier customization. -->
   127         <!-- You can override this target in the ../build.xml file. -->
   128     </target>
   129     <target depends="pre-init,init-private,init-userdir,init-user,init-project,do-init" name="init-check">
   130         <fail unless="build.dir">Must set build.dir</fail>
   131         <fail unless="build.generated.dir">Must set build.generated.dir</fail>
   132         <fail unless="dist.dir">Must set dist.dir</fail>
   133         <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
   134         <fail unless="dist.jar">Must set dist.jar</fail>
   135     </target>
   136     <target name="-init-taskdefs">
   137         <fail unless="libs.CopyLibs.classpath">
   138 The libs.CopyLibs.classpath property is not set up.
   139 This property must point to 
   140 org-netbeans-modules-java-j2seproject-copylibstask.jar file which is part
   141 of NetBeans IDE installation and is usually located at 
   142 &lt;netbeans_installation&gt;/java&lt;version&gt;/ant/extra folder.
   143 Either open the project in the IDE and make sure CopyLibs library
   144 exists or setup the property manually. For example like this:
   145  ant -Dlibs.CopyLibs.classpath=a/path/to/org-netbeans-modules-java-j2seproject-copylibstask.jar
   146                 </fail>
   147         <taskdef classpath="${libs.CopyLibs.classpath}" resource="org/netbeans/modules/java/j2seproject/copylibstask/antlib.xml"/>
   148     </target>
   149     <target depends="pre-init,init-private,init-userdir,init-user,init-project,do-init,post-init,init-check,-init-taskdefs" name="init"/>
   150     <!--
   151     COMPILATION SECTION
   152     -->
   153     <target depends="init" name="deps-jar" unless="no.deps"/>
   154     <target depends="init" name="deps-j2ee-archive" unless="no.deps">
   155         <condition property="build.deploy.on.save" value="false">
   156             <not>
   157                 <isset property="build.deploy.on.save"/>
   158             </not>
   159         </condition>
   160         <ant antfile="${project.nekurak_net-ejb}/build.xml" inheritall="false" target="dist-ear">
   161             <property location="${build.dir}" name="dist.ear.dir"/>
   162             <property name="deploy.on.save" value="${build.deploy.on.save}"/>
   163         </ant>
   164         <condition property="build.deploy.on.save" value="false">
   165             <not>
   166                 <isset property="build.deploy.on.save"/>
   167             </not>
   168         </condition>
   169         <ant antfile="${project.nekurak_net-rest}/build.xml" inheritall="false" target="dist-ear">
   170             <property location="${build.dir}" name="dist.ear.dir"/>
   171             <property name="deploy.on.save" value="${build.deploy.on.save}"/>
   172         </ant>
   173         <condition property="build.deploy.on.save" value="false">
   174             <not>
   175                 <isset property="build.deploy.on.save"/>
   176             </not>
   177         </condition>
   178         <ant antfile="${project.nekurak_net-web}/build.xml" inheritall="false" target="dist-ear">
   179             <property location="${build.dir}" name="dist.ear.dir"/>
   180             <property name="deploy.on.save" value="${build.deploy.on.save}"/>
   181         </ant>
   182         <condition property="build.deploy.on.save" value="false">
   183             <not>
   184                 <isset property="build.deploy.on.save"/>
   185             </not>
   186         </condition>
   187         <ant antfile="${project.nekurak_net-ws}/build.xml" inheritall="false" target="dist-ear">
   188             <property location="${build.dir}" name="dist.ear.dir"/>
   189             <property name="deploy.on.save" value="${build.deploy.on.save}"/>
   190         </ant>
   191     </target>
   192     <target depends="init,deps-jar,deps-j2ee-archive" name="pre-pre-compile"/>
   193     <target name="pre-compile">
   194         <!-- Empty placeholder for easier customization. -->
   195         <!-- You can override this target in the ../build.xml file. -->
   196     </target>
   197     <target depends="init,deps-jar,pre-pre-compile,pre-compile,-do-compile-deps" name="do-compile">
   198         <copy todir="${build.dir}/META-INF">
   199             <fileset dir="${meta.inf}"/>
   200         </copy>
   201     </target>
   202     <target depends="init,deps-jar,pre-pre-compile,pre-compile" name="-do-compile-deps">
   203         <copyfiles files="${reference.nekurak_net-web.dist-ear}" todir="${build.dir}//"/>
   204         <copyfiles files="${reference.nekurak_net-ejb.dist-ear}" todir="${build.dir}//"/>
   205         <copyfiles files="${reference.nekurak_net-rest.dist-ear}" todir="${build.dir}//"/>
   206         <copyfiles files="${reference.nekurak_net-ws.dist-ear}" todir="${build.dir}//"/>
   207     </target>
   208     <target name="post-compile">
   209         <!-- Empty placeholder for easier customization. -->
   210         <!-- You can override this target in the ../build.xml file. -->
   211     </target>
   212     <target depends="init,deps-jar,pre-pre-compile,pre-compile,do-compile,post-compile" description="Compile project." name="compile"/>
   213     <!--
   214                 DIST BUILDING SECTION
   215             -->
   216     <target name="pre-dist">
   217         <!-- Empty placeholder for easier customization. -->
   218         <!-- You can override this target in the ../build.xml file. -->
   219     </target>
   220     <target depends="init,compile,pre-dist" name="do-dist-without-manifest" unless="has.custom.manifest">
   221         <dirname file="${dist.jar}" property="dist.jar.dir"/>
   222         <mkdir dir="${dist.jar.dir}"/>
   223         <jar compress="${jar.compress}" jarfile="${dist.jar}">
   224             <fileset dir="${build.dir}"/>
   225         </jar>
   226     </target>
   227     <target depends="init,compile,pre-dist" if="has.custom.manifest" name="do-dist-with-manifest">
   228         <dirname file="${dist.jar}" property="dist.jar.dir"/>
   229         <mkdir dir="${dist.jar.dir}"/>
   230         <jar compress="${jar.compress}" jarfile="${dist.jar}" manifest="${meta.inf}/MANIFEST.MF">
   231             <fileset dir="${build.dir}"/>
   232         </jar>
   233     </target>
   234     <!--
   235                 TARGETS NEEDED TO SUPPORT DIRECTORY DEPLOYMENT
   236             -->
   237     <target depends="init,compile,pre-dist" if="do.package.without.custom.manifest.not.directory.deploy" name="-do-tmp-dist-without-manifest">
   238         <dirname file="${dist.jar}" property="dist.jar.dir"/>
   239         <mkdir dir="${dist.jar.dir}"/>
   240         <jar compress="${jar.compress}" jarfile="${dist.jar}">
   241             <fileset dir="${build.dir}"/>
   242         </jar>
   243     </target>
   244     <target depends="init,compile,pre-dist" if="do.package.with.custom.manifest.not.directory.deploy" name="-do-tmp-dist-with-manifest">
   245         <dirname file="${dist.jar}" property="dist.jar.dir"/>
   246         <mkdir dir="${dist.jar.dir}"/>
   247         <jar compress="${jar.compress}" jarfile="${dist.jar}" manifest="${meta.inf}/MANIFEST.MF">
   248             <fileset dir="${build.dir}"/>
   249         </jar>
   250     </target>
   251     <target depends="init,compile,pre-dist,-do-tmp-dist-without-manifest,-do-tmp-dist-with-manifest" name="-do-dist-directory-deploy"/>
   252     <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"/>
   253     <!--
   254                 END TARGETS NEEDED TO SUPPORT DIRECTORY DEPLOYMENT
   255             -->
   256     <target name="post-dist">
   257         <!-- Empty placeholder for easier customization. -->
   258         <!-- You can override this target in the ../build.xml file. -->
   259     </target>
   260     <target depends="init,compile,pre-dist,do-dist-without-manifest,do-dist-with-manifest,post-dist" description="Build distribution (JAR)." name="dist"/>
   261     <!--
   262     EXECUTION SECTION
   263     -->
   264     <target depends="run-deploy,run-display-browser,run-ac" description="Deploy to server." name="run"/>
   265     <target name="pre-run-deploy">
   266         <!-- Empty placeholder for easier customization. -->
   267         <!-- You can override this target in the ../build.xml file. -->
   268     </target>
   269     <target name="post-run-deploy">
   270         <!-- Empty placeholder for easier customization. -->
   271         <!-- You can override this target in the ../build.xml file. -->
   272     </target>
   273     <target name="-pre-nbmodule-run-deploy">
   274         <!-- Empty placeholder for easier customization. -->
   275         <!-- This target can be overriden by NetBeans modules. Don't override it directly, use -pre-run-deploy task instead. -->
   276     </target>
   277     <target name="-post-nbmodule-run-deploy">
   278         <!-- Empty placeholder for easier customization. -->
   279         <!-- This target can be overriden by NetBeans modules. Don't override it directly, use -post-run-deploy task instead. -->
   280     </target>
   281     <target name="-run-deploy-am" unless="no.deps">
   282         <!-- Task to deploy to the Access Manager runtime. -->
   283         <ant antfile="${project.nekurak_net-ejb}/build.xml" inheritall="false" target="-run-deploy-am"/>
   284         <ant antfile="${project.nekurak_net-rest}/build.xml" inheritall="false" target="-run-deploy-am"/>
   285         <ant antfile="${project.nekurak_net-web}/build.xml" inheritall="false" target="-run-deploy-am"/>
   286         <ant antfile="${project.nekurak_net-ws}/build.xml" inheritall="false" target="-run-deploy-am"/>
   287     </target>
   288     <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"/>
   289     <target if="netbeans.home" name="-run-deploy-nb">
   290         <nbdeploy clientModuleUri="${client.module.uri}" clientUrlPart="${client.urlPart}" debugmode="false" forceRedeploy="${forceRedeploy}"/>
   291     </target>
   292     <target name="-init-deploy-ant" unless="netbeans.home">
   293         <property name="deploy.ant.archive" value="${dist.jar}"/>
   294         <property name="deploy.ant.resource.dir" value="${resource.dir}"/>
   295         <property name="deploy.ant.enabled" value="true"/>
   296     </target>
   297     <target depends="dist,-run-undeploy-nb,-init-deploy-ant,-undeploy-ant" name="run-undeploy"/>
   298     <target if="netbeans.home" name="-run-undeploy-nb">
   299         <fail message="Undeploy is not supported from within the IDE"/>
   300     </target>
   301     <target depends="dist" name="verify">
   302         <nbverify file="${dist.jar}"/>
   303     </target>
   304     <target depends="run-deploy,-init-display-browser,-display-browser-nb,-display-browser-cl" name="run-display-browser"/>
   305     <target if="do.display.browser" name="-init-display-browser">
   306         <condition property="do.display.browser.nb">
   307             <isset property="netbeans.home"/>
   308         </condition>
   309         <condition property="do.display.browser.cl">
   310             <and>
   311                 <isset property="deploy.ant.enabled"/>
   312                 <isset property="deploy.ant.client.url"/>
   313             </and>
   314         </condition>
   315     </target>
   316     <target if="do.display.browser.nb" name="-display-browser-nb">
   317         <nbbrowse url="${client.url}"/>
   318     </target>
   319     <target if="do.display.browser.cl" name="-get-browser" unless="browser">
   320         <condition property="browser" value="rundll32">
   321             <os family="windows"/>
   322         </condition>
   323         <condition else="" property="browser.args" value="url.dll,FileProtocolHandler">
   324             <os family="windows"/>
   325         </condition>
   326         <condition property="browser" value="/usr/bin/open">
   327             <os family="mac"/>
   328         </condition>
   329         <property environment="env"/>
   330         <condition property="browser" value="${env.BROWSER}">
   331             <isset property="env.BROWSER"/>
   332         </condition>
   333         <condition property="browser" value="/usr/bin/firefox">
   334             <available file="/usr/bin/firefox"/>
   335         </condition>
   336         <condition property="browser" value="/usr/local/firefox/firefox">
   337             <available file="/usr/local/firefox/firefox"/>
   338         </condition>
   339         <condition property="browser" value="/usr/bin/mozilla">
   340             <available file="/usr/bin/mozilla"/>
   341         </condition>
   342         <condition property="browser" value="/usr/local/mozilla/mozilla">
   343             <available file="/usr/local/mozilla/mozilla"/>
   344         </condition>
   345         <condition property="browser" value="/usr/sfw/lib/firefox/firefox">
   346             <available file="/usr/sfw/lib/firefox/firefox"/>
   347         </condition>
   348         <condition property="browser" value="/opt/csw/bin/firefox">
   349             <available file="/opt/csw/bin/firefox"/>
   350         </condition>
   351         <condition property="browser" value="/usr/sfw/lib/mozilla/mozilla">
   352             <available file="/usr/sfw/lib/mozilla/mozilla"/>
   353         </condition>
   354         <condition property="browser" value="/opt/csw/bin/mozilla">
   355             <available file="/opt/csw/bin/mozilla"/>
   356         </condition>
   357     </target>
   358     <target depends="-get-browser" if="do.display.browser.cl" name="-display-browser-cl">
   359         <fail unless="browser">
   360             Browser not found, cannot launch the deployed application. Try to set the BROWSER environment variable.
   361         </fail>
   362         <property name="browse.url" value="${deploy.ant.client.url}${client.urlPart}"/>
   363         <echo>Launching ${browse.url}</echo>
   364         <exec executable="${browser}" spawn="true">
   365             <arg line="${browser.args} ${browse.url}"/>
   366         </exec>
   367     </target>
   368     <target if="app.client" name="run-ac">
   369         <antcall target="-run-ac"/>
   370     </target>
   371     <target depends="init,-as-retrieve-option-workaround,-init-run-macros,-run-appclient-pregfv3,-run-appclient" name="-run-ac"/>
   372     <target if="j2ee.appclient.tool.args" name="-run-appclient-pregfv3">
   373         <ear2:run-appclient-pregfv3/>
   374     </target>
   375     <target name="-run-appclient" unless="j2ee.appclient.tool.args">
   376         <ear2:run-appclient subprojectname="${app.client}"/>
   377     </target>
   378     <target if="j2ee.appclient.mainclass.args" name="-as-retrieve-option-workaround" unless="j2ee.clientName">
   379         <property name="client.jar" value="${dist.dir}/nekurak.net-earClient.jar"/>
   380         <sleep seconds="3"/>
   381         <copy failonerror="false" file="${wa.copy.client.jar.from}/nekurak.net-ear/nekurak.net-earClient.jar" todir="${dist.dir}"/>
   382         <copy failonerror="false" flatten="true" todir="${dist.dir}/">
   383             <fileset dir="${wa.copy.client.jar.from}/nekurak.net-ear" includes="**/nekurak.net-earClient.jar"/>
   384         </copy>
   385         <copy flatten="true" todir="${dist.dir}/nekurak.net-earClient">
   386             <fileset dir="${wa.copy.client.jar.from}/nekurak.net-ear" includes="**/*.*ar"/>
   387         </copy>
   388         <copy failonerror="false" flatten="false" todir="${dist.dir}/nekurak.net-earClient">
   389             <fileset dir="${dist.dir}/gfdeploy/nekurak.net-ear" includes="**/*.jar"/>
   390         </copy>
   391     </target>
   392     <target depends="init" name="-init-run-macros">
   393         <macrodef name="run-appclient" uri="http://www.netbeans.org/ns/j2ee-earproject/2">
   394             <attribute name="subprojectname"/>
   395             <attribute default="${application.args.param}" name="args"/>
   396             <element name="customize" optional="true"/>
   397             <sequential>
   398                 <java dir="${basedir}" fork="true" jar="${client.jar}">
   399                     <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
   400                     <jvmarg line="${j2ee.appclient.tool.jvmoptions}${client.jar},arg=-name,arg=@{subprojectname}"/>
   401                     <arg line="@{args}"/>
   402                     <syspropertyset>
   403                         <propertyref prefix="run-sys-prop."/>
   404                         <mapper from="run-sys-prop.*" to="*" type="glob"/>
   405                     </syspropertyset>
   406                     <customize/>
   407                 </java>
   408             </sequential>
   409         </macrodef>
   410         <macrodef name="run-appclient-pregfv3" uri="http://www.netbeans.org/ns/j2ee-earproject/2">
   411             <element name="customize" optional="true"/>
   412             <sequential>
   413                 <java classname="${j2ee.appclient.tool.mainclass}" fork="true">
   414                     <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
   415                     <jvmarg line="${j2ee.appclient.tool.jvmoptions}"/>
   416                     <jvmarg line="${j2ee.appclient.jvmoptions.param}"/>
   417                     <arg line="${j2ee.appclient.tool.args}"/>
   418                     <arg line="-client ${client.jar}"/>
   419                     <arg line="${j2ee.appclient.mainclass.tool.param}"/>
   420                     <arg line="${application.args.param}"/>
   421                     <classpath>
   422                         <path path="${j2ee.platform.classpath}:${j2ee.appclient.tool.runtime}"/>
   423                     </classpath>
   424                     <syspropertyset>
   425                         <propertyref prefix="run-sys-prop."/>
   426                         <mapper from="run-sys-prop.*" to="*" type="glob"/>
   427                     </syspropertyset>
   428                     <customize/>
   429                 </java>
   430             </sequential>
   431         </macrodef>
   432     </target>
   433     <!--
   434     DEBUGGING SECTION
   435     -->
   436     <target depends="run-debug,run-debug-appclient" description="Deploy to server." name="debug"/>
   437     <target depends="dist" description="Debug project in IDE." if="netbeans.home" name="run-debug" unless="app.client">
   438         <nbdeploy clientModuleUri="${client.module.uri}" clientUrlPart="${client.urlPart}" debugmode="true"/>
   439         <antcall target="connect-debugger"/>
   440         <antcall target="debug-display-browser"/>
   441     </target>
   442     <target name="connect-debugger" unless="is.debugged">
   443         <nbjpdaconnect address="${jpda.address}" host="${jpda.host}" name="${jpda.host}:${jpda.address}" transport="${jpda.transport}">
   444             <classpath>
   445                 <path path="${debug.classpath}"/>
   446                 <fileset dir="${build.dir}" includes="lib/*.jar"/>
   447             </classpath>
   448             <sourcepath>
   449                 <path path="${ear.docbase.dirs}"/>
   450             </sourcepath>
   451         </nbjpdaconnect>
   452     </target>
   453     <target if="do.display.browser" name="debug-display-browser">
   454         <nbbrowse url="${client.url}"/>
   455     </target>
   456     <target if="can.debug.appclient" name="run-debug-appclient">
   457         <antcall target="-run-debug-appclient"/>
   458     </target>
   459     <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"/>
   460     <target name="-init-debug-args">
   461         <property name="version-output" value="java version &quot;${ant.java.version}"/>
   462         <condition property="have-jdk-older-than-1.4">
   463             <or>
   464                 <contains string="${version-output}" substring="java version &quot;1.0"/>
   465                 <contains string="${version-output}" substring="java version &quot;1.1"/>
   466                 <contains string="${version-output}" substring="java version &quot;1.2"/>
   467                 <contains string="${version-output}" substring="java version &quot;1.3"/>
   468             </or>
   469         </condition>
   470         <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
   471             <istrue value="${have-jdk-older-than-1.4}"/>
   472         </condition>
   473     </target>
   474     <target depends="init,-init-debug-args,-as-retrieve-option-workaround,-init-run-macros" name="-init-debug-macros">
   475         <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
   476             <os family="windows"/>
   477         </condition>
   478         <condition else="${debug-transport-by-os}" property="debug-transport-appclient" value="${debug.transport}">
   479             <isset property="debug.transport"/>
   480         </condition>
   481         <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2ee-earproject/2">
   482             <attribute default="${main.class}" name="name"/>
   483             <attribute default="${debug.classpath}" name="classpath"/>
   484             <attribute default="" name="stopclassname"/>
   485             <sequential>
   486                 <nbjpdastart addressproperty="jpda.address.appclient" name="@{name}" stopclassname="@{stopclassname}" transport="${debug-transport-appclient}">
   487                     <classpath>
   488                         <path path="@{classpath}"/>
   489                     </classpath>
   490                 </nbjpdastart>
   491             </sequential>
   492         </macrodef>
   493         <macrodef name="debug-appclient" uri="http://www.netbeans.org/ns/j2ee-earproject/2">
   494             <attribute name="subprojectname"/>
   495             <sequential>
   496                 <ear2:run-appclient subprojectname="@{subprojectname}">
   497                     <customize>
   498                         <jvmarg value="-Xrunjdwp:transport=${debug-transport-appclient},address=${jpda.address.appclient}"/>
   499                         <jvmarg line="${debug-args-line}"/>
   500                     </customize>
   501                 </ear2:run-appclient>
   502             </sequential>
   503         </macrodef>
   504         <macrodef name="debug-appclient-pregfv3" uri="http://www.netbeans.org/ns/j2ee-earproject/2">
   505             <sequential>
   506                 <ear2:run-appclient-pregfv3>
   507                     <customize>
   508                         <jvmarg value="-Xrunjdwp:transport=${debug-transport-appclient},address=${jpda.address.appclient}"/>
   509                         <jvmarg line="${debug-args-line}"/>
   510                     </customize>
   511                 </ear2:run-appclient-pregfv3>
   512             </sequential>
   513         </macrodef>
   514     </target>
   515     <target name="-debug-appclient-deploy">
   516         <nbstartserver debugmode="true"/>
   517         <nbdeploy clientModuleUri="${client.module.uri}" clientUrlPart="${client.urlPart}" debugmode="true"/>
   518     </target>
   519     <target name="-debug-appclient-start-nbjpda">
   520         <ear2:nbjpdastart classpath="" name="${app.client}"/>
   521     </target>
   522     <target if="j2ee.appclient.tool.args" name="-debug-appclient-pregfv3">
   523         <ear2:debug-appclient-pregfv3/>
   524     </target>
   525     <target name="-debug-appclient" unless="j2ee.appclient.tool.args">
   526         <mkdir dir="${dist.dir}/nekurak.net-earClient"/>
   527         <copy flatten="true" todir="${dist.dir}/nekurak.net-earClient">
   528             <fileset dir="${wa.copy.client.jar.from}/nekurak.net-ear" includes="**/*.*ar"/>
   529         </copy>
   530         <ear2:debug-appclient subprojectname="${app.client}"/>
   531     </target>
   532     <!--
   533     CLEANUP SECTION
   534     -->
   535     <target depends="init" name="deps-clean" unless="no.deps">
   536         <condition property="build.deploy.on.save" value="false">
   537             <not>
   538                 <isset property="build.deploy.on.save"/>
   539             </not>
   540         </condition>
   541         <ant antfile="${project.nekurak_net-ejb}/build.xml" inheritall="false" target="clean-ear">
   542             <property location="${build.dir}" name="dist.ear.dir"/>
   543             <property name="deploy.on.save" value="${build.deploy.on.save}"/>
   544         </ant>
   545         <condition property="build.deploy.on.save" value="false">
   546             <not>
   547                 <isset property="build.deploy.on.save"/>
   548             </not>
   549         </condition>
   550         <ant antfile="${project.nekurak_net-rest}/build.xml" inheritall="false" target="clean-ear">
   551             <property location="${build.dir}" name="dist.ear.dir"/>
   552             <property name="deploy.on.save" value="${build.deploy.on.save}"/>
   553         </ant>
   554         <condition property="build.deploy.on.save" value="false">
   555             <not>
   556                 <isset property="build.deploy.on.save"/>
   557             </not>
   558         </condition>
   559         <ant antfile="${project.nekurak_net-web}/build.xml" inheritall="false" target="clean-ear">
   560             <property location="${build.dir}" name="dist.ear.dir"/>
   561             <property name="deploy.on.save" value="${build.deploy.on.save}"/>
   562         </ant>
   563         <condition property="build.deploy.on.save" value="false">
   564             <not>
   565                 <isset property="build.deploy.on.save"/>
   566             </not>
   567         </condition>
   568         <ant antfile="${project.nekurak_net-ws}/build.xml" inheritall="false" target="clean-ear">
   569             <property location="${build.dir}" name="dist.ear.dir"/>
   570             <property name="deploy.on.save" value="${build.deploy.on.save}"/>
   571         </ant>
   572     </target>
   573     <target depends="init" name="do-clean">
   574         <delete dir="${build.dir}"/>
   575         <delete dir="${dist.dir}"/>
   576         <delete dir="${build.dir}"/>
   577     </target>
   578     <target depends="init" if="netbeans.home" name="undeploy-clean">
   579         <nbundeploy failOnError="false" startServer="false"/>
   580     </target>
   581     <target name="post-clean">
   582         <!-- Empty placeholder for easier customization. -->
   583         <!-- You can override this target in the ../build.xml file. -->
   584     </target>
   585     <target depends="init,undeploy-clean,deps-clean,do-clean,post-clean" description="Clean build products." name="clean"/>
   586 </project>