Přidání projektů: ear, ejb a lib.
1.1 --- a/.hgignore Thu Feb 11 03:13:57 2010 +0100
1.2 +++ b/.hgignore Thu Feb 11 08:52:50 2010 +0100
1.3 @@ -4,3 +4,16 @@
1.4 java/nekurak.net-web/web/nekurak.net-web-src.zip
1.5 java/nekurak.net-web/src/conf/MANIFEST.MF
1.6 java/nekurak.net-mvn/target/*
1.7 +
1.8 +java/nekurak.net-ear/dist/*
1.9 +java/nekurak.net-ear/build/*
1.10 +java/nekurak.net-ear/nbproject/private
1.11 +
1.12 +java/nekurak.net-ejb/dist/*
1.13 +java/nekurak.net-ejb/build/*
1.14 +java/nekurak.net-ejb/nbproject/private
1.15 +
1.16 +java/nekurak.net-lib/dist/*
1.17 +java/nekurak.net-lib/build/*
1.18 +java/nekurak.net-lib/nbproject/private
1.19 +
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2.2 +++ b/java/nekurak.net-ear/nbproject/ant-deploy.xml Thu Feb 11 08:52:50 2010 +0100
2.3 @@ -0,0 +1,60 @@
2.4 +<?xml version="1.0" encoding="UTF-8"?>
2.5 +<project default="-deploy-ant" basedir=".">
2.6 + <target name="-init-cl-deployment-env" if="deploy.ant.enabled">
2.7 + <property file="${deploy.ant.properties.file}" />
2.8 + <available file="${deploy.ant.docbase.dir}/WEB-INF/sun-web.xml" property="sun.web.present"/>
2.9 + <available file="${deploy.ant.resource.dir}" property="has.setup"/>
2.10 + <tempfile prefix="gfv3" property="gfv3.password.file" destdir="${java.io.tmpdir}"/> <!-- do not forget to delete this! -->
2.11 + <echo message="AS_ADMIN_PASSWORD=${gfv3.password}" file="${gfv3.password.file}"/>
2.12 + </target>
2.13 +
2.14 + <target name="-parse-sun-web" depends="-init-cl-deployment-env" if="sun.web.present">
2.15 + <tempfile prefix="gfv3" property="temp.sun.web" destdir="${java.io.tmpdir}"/>
2.16 + <copy file="${deploy.ant.docbase.dir}/WEB-INF/sun-web.xml" tofile="${temp.sun.web}"/>
2.17 + <!-- The doctype triggers resolution which can fail -->
2.18 + <replace file="${temp.sun.web}">
2.19 + <replacetoken><![CDATA[<!DOCTYPE]]></replacetoken>
2.20 + <replacevalue><![CDATA[<!-- <!DOCTYPE]]></replacevalue>
2.21 + </replace>
2.22 + <replace file="${temp.sun.web}">
2.23 + <replacetoken><![CDATA[<sun-web-app]]></replacetoken>
2.24 + <replacevalue><![CDATA[--> <sun-web-app]]></replacevalue>
2.25 + </replace>
2.26 + <xmlproperty file="${temp.sun.web}" validate="false">
2.27 + </xmlproperty>
2.28 + <delete file="${temp.sun.web}"/>
2.29 + <property name="deploy.ant.client.url" value="${gfv3.url}${sun-web-app.context-root}"/>
2.30 + <property name="deploy.context.root.argument" value="?contextroot=${sun-web-app.context-root}"/>
2.31 + </target>
2.32 + <target name="-no-parse-sun-web" depends="-init-cl-deployment-env" unless="sun.web.present">
2.33 + <property name="deploy.context.root.argument" value=""/>
2.34 + </target>
2.35 + <target name="-add-resources" depends="-init-cl-deployment-env" if="has.setup">
2.36 + <tempfile prefix="gfv3" property="gfv3.resources.dir" destdir="${java.io.tmpdir}"/>
2.37 + <mkdir dir="${gfv3.resources.dir}"/>
2.38 + <mkdir dir="${gfv3.resources.dir}/META-INF"/>
2.39 + <property name="gfv3.resources.file" value="${gfv3.resources.dir}/META-INF/sun-resources.xml"/>
2.40 + <copy todir="${gfv3.resources.dir}/META-INF">
2.41 + <fileset dir="${deploy.ant.resource.dir}"/>
2.42 + </copy>
2.43 + <jar destfile="${deploy.ant.archive}" update="true">
2.44 + <fileset dir="${gfv3.resources.dir}"/>
2.45 + </jar>
2.46 + <delete dir="${gfv3.resources.dir}"/>
2.47 + </target>
2.48 + <target name="-deploy-ant" depends="-parse-sun-web,-no-parse-sun-web,-add-resources" if="deploy.ant.enabled">
2.49 + <echo message="Deploying ${deploy.ant.archive}"/>
2.50 + <tempfile prefix="gfv3" property="gfv3.results.file" destdir="${java.io.tmpdir}"/> <!-- do not forget to delete this! -->
2.51 + <property name="full.deploy.ant.archive" location="${deploy.ant.archive}"/>
2.52 + <get src="${gfv3.url}/__asadmin/deploy?path=${full.deploy.ant.archive}${deploy.context.root.argument}?force=true?name=${ant.project.name}"
2.53 + dest="${gfv3.results.file}"/>
2.54 + <delete file="${gfv3.results.file}"/>
2.55 + </target>
2.56 + <target name="-undeploy-ant" depends="-init-cl-deployment-env" if="deploy.ant.enabled">
2.57 + <echo message="Undeploying ${deploy.ant.archive}"/>
2.58 + <tempfile prefix="gfv3" property="gfv3.results.file" destdir="${java.io.tmpdir}"/> <!-- do not forget to delete this! -->
2.59 + <get src="${gfv3.url}/__asadmin/undeploy?name=${ant.project.name}"
2.60 + dest="${gfv3.results.file}"/>
2.61 + <delete file="${gfv3.results.file}"/>
2.62 + </target>
2.63 +</project>
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
3.2 +++ b/java/nekurak.net-ear/nbproject/build-impl.xml Thu Feb 11 08:52:50 2010 +0100
3.3 @@ -0,0 +1,476 @@
3.4 +<?xml version="1.0" encoding="UTF-8"?>
3.5 +<!--
3.6 +*** GENERATED FROM project.xml - DO NOT EDIT ***
3.7 +*** EDIT ../build.xml INSTEAD ***
3.8 +
3.9 +For the purpose of easier reading the script
3.10 +is divided into following sections:
3.11 +
3.12 + - initialization
3.13 + - compilation
3.14 + - dist
3.15 + - execution
3.16 + - debugging
3.17 + - cleanup
3.18 +
3.19 +-->
3.20 +<project xmlns:ear2="http://www.netbeans.org/ns/j2ee-earproject/2" basedir=".." default="default" name="nekurak.net-ear-impl">
3.21 + <import file="ant-deploy.xml"/>
3.22 + <fail message="Please build using Ant 1.7.1 or higher.">
3.23 + <condition>
3.24 + <not>
3.25 + <antversion atleast="1.7.1"/>
3.26 + </not>
3.27 + </condition>
3.28 + </fail>
3.29 + <target depends="dist" description="Build whole project." name="default"/>
3.30 + <!--
3.31 + INITIALIZATION SECTION
3.32 + -->
3.33 + <target name="pre-init">
3.34 + <!-- Empty placeholder for easier customization. -->
3.35 + <!-- You can override this target in the ../build.xml file. -->
3.36 + </target>
3.37 + <target depends="pre-init" name="init-private">
3.38 + <property file="nbproject/private/private.properties"/>
3.39 + </target>
3.40 + <target depends="pre-init,init-private" name="init-userdir">
3.41 + <property location="${netbeans.user}/build.properties" name="user.properties.file"/>
3.42 + </target>
3.43 + <target depends="pre-init,init-private,init-userdir" name="init-user">
3.44 + <property file="${user.properties.file}"/>
3.45 + </target>
3.46 + <target depends="pre-init,init-private,init-userdir,init-user" name="init-project">
3.47 + <property file="nbproject/project.properties"/>
3.48 + </target>
3.49 + <target depends="pre-init,init-private,init-userdir,init-user,init-project" name="do-init">
3.50 + <!-- The two properties below are usually overridden -->
3.51 + <!-- by the active platform. Just a fallback. -->
3.52 + <property name="default.javac.source" value="1.4"/>
3.53 + <property name="default.javac.target" value="1.4"/>
3.54 + <condition property="do.compile.jsps">
3.55 + <istrue value="${compile.jsps}"/>
3.56 + </condition>
3.57 + <condition property="do.display.browser">
3.58 + <and>
3.59 + <istrue value="${display.browser}"/>
3.60 + <isset property="client.module.uri"/>
3.61 + <not>
3.62 + <isset property="app.client"/>
3.63 + </not>
3.64 + </and>
3.65 + </condition>
3.66 + <available file="${meta.inf}/MANIFEST.MF" property="has.custom.manifest"/>
3.67 + <!--
3.68 + Variables needed to support directory deployment.
3.69 + -->
3.70 + <condition property="do.package.with.custom.manifest.not.directory.deploy">
3.71 + <and>
3.72 + <isset property="has.custom.manifest"/>
3.73 + <isfalse value="${directory.deployment.supported}"/>
3.74 + </and>
3.75 + </condition>
3.76 + <condition property="do.package.without.custom.manifest.not.directory.deploy">
3.77 + <and>
3.78 + <not>
3.79 + <isset property="has.custom.manifest"/>
3.80 + </not>
3.81 + <isfalse value="${directory.deployment.supported}"/>
3.82 + </and>
3.83 + </condition>
3.84 + <condition property="do.package.not.directory.deploy">
3.85 + <isfalse value="${directory.deployment.supported}"/>
3.86 + </condition>
3.87 + <!--End Variables needed to support directory deployment.-->
3.88 + <condition else="" property="j2ee.appclient.mainclass.tool.param" value="-mainclass ${main.class}">
3.89 + <and>
3.90 + <isset property="main.class"/>
3.91 + <not>
3.92 + <equals arg1="${main.class}" arg2="" trim="true"/>
3.93 + </not>
3.94 + </and>
3.95 + </condition>
3.96 + <condition else="" property="j2ee.appclient.jvmoptions.param" value="${j2ee.appclient.jvmoptions}">
3.97 + <and>
3.98 + <isset property="j2ee.appclient.jvmoptions"/>
3.99 + <not>
3.100 + <equals arg1="${j2ee.appclient.jvmoptions}" arg2="" trim="true"/>
3.101 + </not>
3.102 + </and>
3.103 + </condition>
3.104 + <condition else="" property="application.args.param" value="${application.args}">
3.105 + <and>
3.106 + <isset property="application.args"/>
3.107 + <not>
3.108 + <equals arg1="${application.args}" arg2="" trim="true"/>
3.109 + </not>
3.110 + </and>
3.111 + </condition>
3.112 + <condition property="can.debug.appclient">
3.113 + <and>
3.114 + <isset property="netbeans.home"/>
3.115 + <isset property="app.client"/>
3.116 + </and>
3.117 + </condition>
3.118 + <path id="endorsed.classpath.path" path="${endorsed.classpath}"/>
3.119 + <condition else="" property="endorsed.classpath.cmd.line.arg" value="-Xbootclasspath/p:'${toString:endorsed.classpath.path}'">
3.120 + <length length="0" string="${endorsed.classpath}" when="greater"/>
3.121 + </condition>
3.122 + </target>
3.123 + <target depends="init" name="-init-cos">
3.124 + <condition else="false" property="build.deploy.on.save">
3.125 + <istrue value="${j2ee.deploy.on.save}"/>
3.126 + </condition>
3.127 + </target>
3.128 + <target name="post-init">
3.129 + <!-- Empty placeholder for easier customization. -->
3.130 + <!-- You can override this target in the ../build.xml file. -->
3.131 + </target>
3.132 + <target depends="pre-init,init-private,init-userdir,init-user,init-project,do-init" name="init-check">
3.133 + <fail unless="build.dir">Must set build.dir</fail>
3.134 + <fail unless="build.generated.dir">Must set build.generated.dir</fail>
3.135 + <fail unless="dist.dir">Must set dist.dir</fail>
3.136 + <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
3.137 + <fail unless="dist.jar">Must set dist.jar</fail>
3.138 + </target>
3.139 + <target name="-init-taskdefs">
3.140 + <fail unless="libs.CopyLibs.classpath">
3.141 +The libs.CopyLibs.classpath property is not set up.
3.142 +This property must point to
3.143 +org-netbeans-modules-java-j2seproject-copylibstask.jar file which is part
3.144 +of NetBeans IDE installation and is usually located at
3.145 +<netbeans_installation>/java<version>/ant/extra folder.
3.146 +Either open the project in the IDE and make sure CopyLibs library
3.147 +exists or setup the property manually. For example like this:
3.148 + ant -Dlibs.CopyLibs.classpath=a/path/to/org-netbeans-modules-java-j2seproject-copylibstask.jar
3.149 + </fail>
3.150 + <taskdef classpath="${libs.CopyLibs.classpath}" resource="org/netbeans/modules/java/j2seproject/copylibstask/antlib.xml"/>
3.151 + </target>
3.152 + <target depends="pre-init,init-private,init-userdir,init-user,init-project,do-init,post-init,init-check,-init-taskdefs" name="init"/>
3.153 + <!--
3.154 + COMPILATION SECTION
3.155 + -->
3.156 + <target depends="init" name="deps-jar" unless="no.deps"/>
3.157 + <target depends="init" name="deps-j2ee-archive" unless="no.deps">
3.158 + <condition property="build.deploy.on.save" value="false">
3.159 + <not>
3.160 + <isset property="build.deploy.on.save"/>
3.161 + </not>
3.162 + </condition>
3.163 + <ant antfile="${project.nekurak_net-ejb}/build.xml" inheritall="false" target="dist-ear">
3.164 + <property location="${build.dir}" name="dist.ear.dir"/>
3.165 + <property name="deploy.on.save" value="${build.deploy.on.save}"/>
3.166 + </ant>
3.167 + <condition property="build.deploy.on.save" value="false">
3.168 + <not>
3.169 + <isset property="build.deploy.on.save"/>
3.170 + </not>
3.171 + </condition>
3.172 + <ant antfile="${project.nekurak_net-web}/build.xml" inheritall="false" target="dist-ear">
3.173 + <property location="${build.dir}" name="dist.ear.dir"/>
3.174 + <property name="deploy.on.save" value="${build.deploy.on.save}"/>
3.175 + </ant>
3.176 + </target>
3.177 + <target depends="init,deps-jar,deps-j2ee-archive" name="pre-pre-compile"/>
3.178 + <target name="pre-compile">
3.179 + <!-- Empty placeholder for easier customization. -->
3.180 + <!-- You can override this target in the ../build.xml file. -->
3.181 + </target>
3.182 + <target depends="init,deps-jar,pre-pre-compile,pre-compile,-do-compile-deps" name="do-compile">
3.183 + <copy todir="${build.dir}/META-INF">
3.184 + <fileset dir="${meta.inf}"/>
3.185 + </copy>
3.186 + </target>
3.187 + <target depends="init,deps-jar,pre-pre-compile,pre-compile" name="-do-compile-deps">
3.188 + <copyfiles files="${reference.nekurak_net-web.dist-ear}" todir="${build.dir}//"/>
3.189 + <copyfiles files="${reference.nekurak_net-ejb.dist-ear}" todir="${build.dir}//"/>
3.190 + </target>
3.191 + <target name="post-compile">
3.192 + <!-- Empty placeholder for easier customization. -->
3.193 + <!-- You can override this target in the ../build.xml file. -->
3.194 + </target>
3.195 + <target depends="init,deps-jar,pre-pre-compile,pre-compile,do-compile,post-compile" description="Compile project." name="compile"/>
3.196 + <!--
3.197 + DIST BUILDING SECTION
3.198 + -->
3.199 + <target name="pre-dist">
3.200 + <!-- Empty placeholder for easier customization. -->
3.201 + <!-- You can override this target in the ../build.xml file. -->
3.202 + </target>
3.203 + <target depends="init,compile,pre-dist" name="do-dist-without-manifest" unless="has.custom.manifest">
3.204 + <dirname file="${dist.jar}" property="dist.jar.dir"/>
3.205 + <mkdir dir="${dist.jar.dir}"/>
3.206 + <jar compress="${jar.compress}" jarfile="${dist.jar}">
3.207 + <fileset dir="${build.dir}"/>
3.208 + </jar>
3.209 + </target>
3.210 + <target depends="init,compile,pre-dist" if="has.custom.manifest" name="do-dist-with-manifest">
3.211 + <dirname file="${dist.jar}" property="dist.jar.dir"/>
3.212 + <mkdir dir="${dist.jar.dir}"/>
3.213 + <jar compress="${jar.compress}" jarfile="${dist.jar}" manifest="${meta.inf}/MANIFEST.MF">
3.214 + <fileset dir="${build.dir}"/>
3.215 + </jar>
3.216 + </target>
3.217 + <!--
3.218 + TARGETS NEEDED TO SUPPORT DIRECTORY DEPLOYMENT
3.219 + -->
3.220 + <target depends="init,compile,pre-dist" if="do.package.without.custom.manifest.not.directory.deploy" name="-do-tmp-dist-without-manifest">
3.221 + <dirname file="${dist.jar}" property="dist.jar.dir"/>
3.222 + <mkdir dir="${dist.jar.dir}"/>
3.223 + <jar compress="${jar.compress}" jarfile="${dist.jar}">
3.224 + <fileset dir="${build.dir}"/>
3.225 + </jar>
3.226 + </target>
3.227 + <target depends="init,compile,pre-dist" if="do.package.with.custom.manifest.not.directory.deploy" name="-do-tmp-dist-with-manifest">
3.228 + <dirname file="${dist.jar}" property="dist.jar.dir"/>
3.229 + <mkdir dir="${dist.jar.dir}"/>
3.230 + <jar compress="${jar.compress}" jarfile="${dist.jar}" manifest="${meta.inf}/MANIFEST.MF">
3.231 + <fileset dir="${build.dir}"/>
3.232 + </jar>
3.233 + </target>
3.234 + <target depends="init,compile,pre-dist,-do-tmp-dist-without-manifest,-do-tmp-dist-with-manifest" name="-do-dist-directory-deploy"/>
3.235 + <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"/>
3.236 + <!--
3.237 + END TARGETS NEEDED TO SUPPORT DIRECTORY DEPLOYMENT
3.238 + -->
3.239 + <target name="post-dist">
3.240 + <!-- Empty placeholder for easier customization. -->
3.241 + <!-- You can override this target in the ../build.xml file. -->
3.242 + </target>
3.243 + <target depends="init,compile,pre-dist,do-dist-without-manifest,do-dist-with-manifest,post-dist" description="Build distribution (JAR)." name="dist"/>
3.244 + <!--
3.245 + EXECUTION SECTION
3.246 + -->
3.247 + <target depends="run-deploy,run-display-browser,run-ac" description="Deploy to server." name="run"/>
3.248 + <target name="pre-run-deploy">
3.249 + <!-- Empty placeholder for easier customization. -->
3.250 + <!-- You can override this target in the ../build.xml file. -->
3.251 + </target>
3.252 + <target name="post-run-deploy">
3.253 + <!-- Empty placeholder for easier customization. -->
3.254 + <!-- You can override this target in the ../build.xml file. -->
3.255 + </target>
3.256 + <target name="-pre-nbmodule-run-deploy">
3.257 + <!-- Empty placeholder for easier customization. -->
3.258 + <!-- This target can be overriden by NetBeans modules. Don't override it directly, use -pre-run-deploy task instead. -->
3.259 + </target>
3.260 + <target name="-post-nbmodule-run-deploy">
3.261 + <!-- Empty placeholder for easier customization. -->
3.262 + <!-- This target can be overriden by NetBeans modules. Don't override it directly, use -post-run-deploy task instead. -->
3.263 + </target>
3.264 + <target name="-run-deploy-am" unless="no.deps">
3.265 + <!-- Task to deploy to the Access Manager runtime. -->
3.266 + <ant antfile="${project.nekurak_net-ejb}/build.xml" inheritall="false" target="-run-deploy-am"/>
3.267 + <ant antfile="${project.nekurak_net-web}/build.xml" inheritall="false" target="-run-deploy-am"/>
3.268 + </target>
3.269 + <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"/>
3.270 + <target if="netbeans.home" name="-run-deploy-nb">
3.271 + <nbdeploy clientModuleUri="${client.module.uri}" clientUrlPart="${client.urlPart}" debugmode="false" forceRedeploy="${forceRedeploy}"/>
3.272 + </target>
3.273 + <target name="-init-deploy-ant" unless="netbeans.home">
3.274 + <property name="deploy.ant.archive" value="${dist.jar}"/>
3.275 + <property name="deploy.ant.resource.dir" value="${resource.dir}"/>
3.276 + <property name="deploy.ant.enabled" value="true"/>
3.277 + </target>
3.278 + <target depends="dist,-run-undeploy-nb,-init-deploy-ant,-undeploy-ant" name="run-undeploy"/>
3.279 + <target if="netbeans.home" name="-run-undeploy-nb">
3.280 + <fail message="Undeploy is not supported from within the IDE"/>
3.281 + </target>
3.282 + <target depends="dist" name="verify">
3.283 + <nbverify file="${dist.jar}"/>
3.284 + </target>
3.285 + <target depends="run-deploy,-init-display-browser,-display-browser-nb,-display-browser-cl" name="run-display-browser"/>
3.286 + <target if="do.display.browser" name="-init-display-browser">
3.287 + <condition property="do.display.browser.nb">
3.288 + <isset property="netbeans.home"/>
3.289 + </condition>
3.290 + <condition property="do.display.browser.cl">
3.291 + <and>
3.292 + <isset property="deploy.ant.enabled"/>
3.293 + <isset property="deploy.ant.client.url"/>
3.294 + </and>
3.295 + </condition>
3.296 + </target>
3.297 + <target if="do.display.browser.nb" name="-display-browser-nb">
3.298 + <nbbrowse url="${client.url}"/>
3.299 + </target>
3.300 + <target if="do.display.browser.cl" name="-get-browser" unless="browser">
3.301 + <condition property="browser" value="rundll32">
3.302 + <os family="windows"/>
3.303 + </condition>
3.304 + <condition else="" property="browser.args" value="url.dll,FileProtocolHandler">
3.305 + <os family="windows"/>
3.306 + </condition>
3.307 + <condition property="browser" value="/usr/bin/open">
3.308 + <os family="mac"/>
3.309 + </condition>
3.310 + <property environment="env"/>
3.311 + <condition property="browser" value="${env.BROWSER}">
3.312 + <isset property="env.BROWSER"/>
3.313 + </condition>
3.314 + <condition property="browser" value="/usr/bin/firefox">
3.315 + <available file="/usr/bin/firefox"/>
3.316 + </condition>
3.317 + <condition property="browser" value="/usr/local/firefox/firefox">
3.318 + <available file="/usr/local/firefox/firefox"/>
3.319 + </condition>
3.320 + <condition property="browser" value="/usr/bin/mozilla">
3.321 + <available file="/usr/bin/mozilla"/>
3.322 + </condition>
3.323 + <condition property="browser" value="/usr/local/mozilla/mozilla">
3.324 + <available file="/usr/local/mozilla/mozilla"/>
3.325 + </condition>
3.326 + <condition property="browser" value="/usr/sfw/lib/firefox/firefox">
3.327 + <available file="/usr/sfw/lib/firefox/firefox"/>
3.328 + </condition>
3.329 + <condition property="browser" value="/opt/csw/bin/firefox">
3.330 + <available file="/opt/csw/bin/firefox"/>
3.331 + </condition>
3.332 + <condition property="browser" value="/usr/sfw/lib/mozilla/mozilla">
3.333 + <available file="/usr/sfw/lib/mozilla/mozilla"/>
3.334 + </condition>
3.335 + <condition property="browser" value="/opt/csw/bin/mozilla">
3.336 + <available file="/opt/csw/bin/mozilla"/>
3.337 + </condition>
3.338 + </target>
3.339 + <target depends="-get-browser" if="do.display.browser.cl" name="-display-browser-cl">
3.340 + <fail unless="browser">
3.341 + Browser not found, cannot launch the deployed application. Try to set the BROWSER environment variable.
3.342 + </fail>
3.343 + <property name="browse.url" value="${deploy.ant.client.url}${client.urlPart}"/>
3.344 + <echo>Launching ${browse.url}</echo>
3.345 + <exec executable="${browser}" spawn="true">
3.346 + <arg line="${browser.args} ${browse.url}"/>
3.347 + </exec>
3.348 + </target>
3.349 + <target depends="init" if="app.client" name="run-ac">
3.350 + <antcall target="run-${app.client}"/>
3.351 + </target>
3.352 + <target if="j2ee.appclient.mainclass.args" name="-as-retrieve-option-workaround" unless="j2ee.clientName">
3.353 + <property name="client.jar" value="${dist.dir}/nekurak.net-earClient.jar"/>
3.354 + <sleep seconds="3"/>
3.355 + <copy failonerror="false" file="${wa.copy.client.jar.from}/nekurak.net-ear/nekurak.net-earClient.jar" todir="${dist.dir}"/>
3.356 + <copy failonerror="false" flatten="true" todir="${dist.dir}/">
3.357 + <fileset dir="${wa.copy.client.jar.from}/nekurak.net-ear" includes="**/nekurak.net-earClient.jar"/>
3.358 + </copy>
3.359 + <copy flatten="true" todir="${dist.dir}/nekurak.net-earClient">
3.360 + <fileset dir="${wa.copy.client.jar.from}/nekurak.net-ear" includes="**/*.*ar"/>
3.361 + </copy>
3.362 + <copy failonerror="false" flatten="false" todir="${dist.dir}/nekurak.net-earClient">
3.363 + <fileset dir="${dist.dir}/gfdeploy/nekurak.net-ear" includes="**/*.jar"/>
3.364 + </copy>
3.365 + </target>
3.366 + <!--
3.367 + DEBUGGING SECTION
3.368 + -->
3.369 + <target depends="run-debug,run-debug-appclient" description="Deploy to server." name="debug"/>
3.370 + <target depends="dist" description="Debug project in IDE." if="netbeans.home" name="run-debug" unless="app.client">
3.371 + <nbdeploy clientModuleUri="${client.module.uri}" clientUrlPart="${client.urlPart}" debugmode="true"/>
3.372 + <antcall target="connect-debugger"/>
3.373 + <antcall target="debug-display-browser"/>
3.374 + </target>
3.375 + <target name="connect-debugger" unless="is.debugged">
3.376 + <nbjpdaconnect address="${jpda.address}" host="${jpda.host}" name="${name}" transport="${jpda.transport}">
3.377 + <classpath>
3.378 + <path path="${debug.classpath}"/>
3.379 + <fileset dir="${build.dir}/lib" includes="*.jar"/>
3.380 + </classpath>
3.381 + <sourcepath>
3.382 + <path path="${ear.docbase.dirs}"/>
3.383 + </sourcepath>
3.384 + </nbjpdaconnect>
3.385 + </target>
3.386 + <target if="do.display.browser" name="debug-display-browser">
3.387 + <nbbrowse url="${client.url}"/>
3.388 + </target>
3.389 + <target name="-init-debug-args">
3.390 + <property name="version-output" value="java version "${ant.java.version}"/>
3.391 + <condition property="have-jdk-older-than-1.4">
3.392 + <or>
3.393 + <contains string="${version-output}" substring="java version "1.0"/>
3.394 + <contains string="${version-output}" substring="java version "1.1"/>
3.395 + <contains string="${version-output}" substring="java version "1.2"/>
3.396 + <contains string="${version-output}" substring="java version "1.3"/>
3.397 + </or>
3.398 + </condition>
3.399 + <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
3.400 + <istrue value="${have-jdk-older-than-1.4}"/>
3.401 + </condition>
3.402 + </target>
3.403 + <target depends="init,-init-debug-args" if="can.debug.appclient" name="run-debug-appclient">
3.404 + <macrodef name="debug-appclient" uri="http://www.netbeans.org/ns/j2ee-earproject/2">
3.405 + <attribute name="mainclass"/>
3.406 + <attribute default="${debug.classpath}" name="classpath"/>
3.407 + <element name="customize" optional="true"/>
3.408 + <attribute default="${application.args.param}" name="args"/>
3.409 + <sequential>
3.410 + <parallel>
3.411 + <java classname="@{mainclass}" fork="true">
3.412 + <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
3.413 + <jvmarg line="${j2ee.appclient.tool.jvmoptions}"/>
3.414 + <jvmarg line="${debug-args-line}"/>
3.415 + <jvmarg value="-Xrunjdwp:transport=${jpda.transport},server=y,address=${jpda.address},suspend=y"/>
3.416 + <jvmarg line="${j2ee.appclient.jvmoptions.param}"/>
3.417 + <arg line="@{args}"/>
3.418 + <classpath>
3.419 + <path path="${j2ee.platform.classpath}:${j2ee.appclient.tool.runtime}"/>
3.420 + <path path="@{classpath}"/>
3.421 + </classpath>
3.422 + <syspropertyset>
3.423 + <propertyref prefix="run-sys-prop."/>
3.424 + <mapper from="run-sys-prop.*" to="*" type="glob"/>
3.425 + </syspropertyset>
3.426 + <customize/>
3.427 + </java>
3.428 + <nbjpdaconnect address="${jpda.address}" host="${jpda.host}" name="${name}" transport="${jpda.transport}">
3.429 + <classpath>
3.430 + <path path="${j2ee.platform.classpath}:${j2ee.appclient.tool.runtime}"/>
3.431 + <path path="@{classpath}"/>
3.432 + </classpath>
3.433 + <sourcepath>
3.434 + <path path="${src.dir}"/>
3.435 + </sourcepath>
3.436 + </nbjpdaconnect>
3.437 + </parallel>
3.438 + </sequential>
3.439 + </macrodef>
3.440 + <nbdeploy clientModuleUri="${client.module.uri}" clientUrlPart="${client.urlPart}" debugmode="false"/>
3.441 + <antcall target="debug-${app.client}"/>
3.442 + </target>
3.443 + <!--
3.444 + CLEANUP SECTION
3.445 + -->
3.446 + <target depends="init" name="deps-clean" unless="no.deps">
3.447 + <condition property="build.deploy.on.save" value="false">
3.448 + <not>
3.449 + <isset property="build.deploy.on.save"/>
3.450 + </not>
3.451 + </condition>
3.452 + <ant antfile="${project.nekurak_net-ejb}/build.xml" inheritall="false" target="clean-ear">
3.453 + <property location="${build.dir}" name="dist.ear.dir"/>
3.454 + <property name="deploy.on.save" value="${build.deploy.on.save}"/>
3.455 + </ant>
3.456 + <condition property="build.deploy.on.save" value="false">
3.457 + <not>
3.458 + <isset property="build.deploy.on.save"/>
3.459 + </not>
3.460 + </condition>
3.461 + <ant antfile="${project.nekurak_net-web}/build.xml" inheritall="false" target="clean-ear">
3.462 + <property location="${build.dir}" name="dist.ear.dir"/>
3.463 + <property name="deploy.on.save" value="${build.deploy.on.save}"/>
3.464 + </ant>
3.465 + </target>
3.466 + <target depends="init" name="do-clean">
3.467 + <delete dir="${build.dir}"/>
3.468 + <delete dir="${dist.dir}"/>
3.469 + <delete dir="${build.dir}"/>
3.470 + </target>
3.471 + <target depends="init" if="netbeans.home" name="undeploy-clean">
3.472 + <nbundeploy failOnError="false" startServer="false"/>
3.473 + </target>
3.474 + <target name="post-clean">
3.475 + <!-- Empty placeholder for easier customization. -->
3.476 + <!-- You can override this target in the ../build.xml file. -->
3.477 + </target>
3.478 + <target depends="init,undeploy-clean,deps-clean,do-clean,post-clean" description="Clean build products." name="clean"/>
3.479 +</project>
4.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
4.2 +++ b/java/nekurak.net-ear/nbproject/genfiles.properties Thu Feb 11 08:52:50 2010 +0100
4.3 @@ -0,0 +1,8 @@
4.4 +build.xml.data.CRC32=dd0510f0
4.5 +build.xml.script.CRC32=85b7b58d
4.6 +build.xml.stylesheet.CRC32=475c2a62@1.17.2
4.7 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
4.8 +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
4.9 +nbproject/build-impl.xml.data.CRC32=dd0510f0
4.10 +nbproject/build-impl.xml.script.CRC32=b94a2023
4.11 +nbproject/build-impl.xml.stylesheet.CRC32=624b8ca2@1.17.2
5.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
5.2 +++ b/java/nekurak.net-ear/nbproject/project.properties Thu Feb 11 08:52:50 2010 +0100
5.3 @@ -0,0 +1,33 @@
5.4 +build.classes.excludes=**/*.java,**/*.form,**/.nbattrs
5.5 +build.dir=build
5.6 +build.generated.dir=${build.dir}/generated
5.7 +client.module.uri=nekurak.net-web
5.8 +client.urlPart=
5.9 +debug.classpath=${javac.classpath}::${jar.content.additional}:${run.classpath}
5.10 +display.browser=true
5.11 +dist.dir=dist
5.12 +dist.jar=${dist.dir}/${jar.name}
5.13 +endorsed.classpath=\
5.14 + ${libs.javaee-endorsed-api-6.0.classpath}
5.15 +j2ee.appclient.mainclass.args=${j2ee.appclient.tool.args}
5.16 +j2ee.deploy.on.save=false
5.17 +j2ee.platform=1.6
5.18 +j2ee.server.type=gfv3ee6
5.19 +jar.compress=false
5.20 +jar.content.additional=\
5.21 + ${reference.nekurak_net-web.dist-ear}:\
5.22 + ${reference.nekurak_net-ejb.dist-ear}
5.23 +jar.name=nekurak.net-ear.ear
5.24 +javac.debug=true
5.25 +javac.deprecation=false
5.26 +javac.source=1.5
5.27 +javac.target=1.5
5.28 +meta.inf=src/conf
5.29 +no.dependencies=false
5.30 +platform.active=default_platform
5.31 +project.nekurak_net-ejb=../nekurak.net-ejb
5.32 +project.nekurak_net-web=../nekurak.net-web
5.33 +reference.nekurak_net-ejb.dist-ear=${project.nekurak_net-ejb}/dist/nekurak.net-ejb.jar
5.34 +reference.nekurak_net-web.dist-ear=${project.nekurak_net-web}/dist/nekurak.net-web.war
5.35 +resource.dir=setup
5.36 +source.root=.
6.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
6.2 +++ b/java/nekurak.net-ear/nbproject/project.xml Thu Feb 11 08:52:50 2010 +0100
6.3 @@ -0,0 +1,39 @@
6.4 +<?xml version="1.0" encoding="UTF-8"?>
6.5 +<project xmlns="http://www.netbeans.org/ns/project/1">
6.6 + <type>org.netbeans.modules.j2ee.earproject</type>
6.7 + <configuration>
6.8 + <data xmlns="http://www.netbeans.org/ns/j2ee-earproject/2">
6.9 + <name>nekurak.net-ear</name>
6.10 + <minimum-ant-version>1.6.5</minimum-ant-version>
6.11 + <web-module-libraries/>
6.12 + <web-module-additional-libraries>
6.13 + <library>
6.14 + <file>${reference.nekurak_net-web.dist-ear}</file>
6.15 + <path-in-war>/</path-in-war>
6.16 + </library>
6.17 + <library>
6.18 + <file>${reference.nekurak_net-ejb.dist-ear}</file>
6.19 + <path-in-war>/</path-in-war>
6.20 + </library>
6.21 + </web-module-additional-libraries>
6.22 + </data>
6.23 + <references xmlns="http://www.netbeans.org/ns/ant-project-references/1">
6.24 + <reference>
6.25 + <foreign-project>nekurak_net-ejb</foreign-project>
6.26 + <artifact-type>j2ee_ear_archive</artifact-type>
6.27 + <script>build.xml</script>
6.28 + <target>dist-ear</target>
6.29 + <clean-target>clean-ear</clean-target>
6.30 + <id>dist-ear</id>
6.31 + </reference>
6.32 + <reference>
6.33 + <foreign-project>nekurak_net-web</foreign-project>
6.34 + <artifact-type>j2ee_ear_archive</artifact-type>
6.35 + <script>build.xml</script>
6.36 + <target>dist-ear</target>
6.37 + <clean-target>clean-ear</clean-target>
6.38 + <id>dist-ear</id>
6.39 + </reference>
6.40 + </references>
6.41 + </configuration>
6.42 +</project>
7.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
7.2 +++ b/java/nekurak.net-ear/src/conf/MANIFEST.MF Thu Feb 11 08:52:50 2010 +0100
7.3 @@ -0,0 +1,2 @@
7.4 +Manifest-Version: 1.0
7.5 +
8.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
8.2 +++ b/java/nekurak.net-ejb/nbproject/ant-deploy.xml Thu Feb 11 08:52:50 2010 +0100
8.3 @@ -0,0 +1,60 @@
8.4 +<?xml version="1.0" encoding="UTF-8"?>
8.5 +<project default="-deploy-ant" basedir=".">
8.6 + <target name="-init-cl-deployment-env" if="deploy.ant.enabled">
8.7 + <property file="${deploy.ant.properties.file}" />
8.8 + <available file="${deploy.ant.docbase.dir}/WEB-INF/sun-web.xml" property="sun.web.present"/>
8.9 + <available file="${deploy.ant.resource.dir}" property="has.setup"/>
8.10 + <tempfile prefix="gfv3" property="gfv3.password.file" destdir="${java.io.tmpdir}"/> <!-- do not forget to delete this! -->
8.11 + <echo message="AS_ADMIN_PASSWORD=${gfv3.password}" file="${gfv3.password.file}"/>
8.12 + </target>
8.13 +
8.14 + <target name="-parse-sun-web" depends="-init-cl-deployment-env" if="sun.web.present">
8.15 + <tempfile prefix="gfv3" property="temp.sun.web" destdir="${java.io.tmpdir}"/>
8.16 + <copy file="${deploy.ant.docbase.dir}/WEB-INF/sun-web.xml" tofile="${temp.sun.web}"/>
8.17 + <!-- The doctype triggers resolution which can fail -->
8.18 + <replace file="${temp.sun.web}">
8.19 + <replacetoken><![CDATA[<!DOCTYPE]]></replacetoken>
8.20 + <replacevalue><![CDATA[<!-- <!DOCTYPE]]></replacevalue>
8.21 + </replace>
8.22 + <replace file="${temp.sun.web}">
8.23 + <replacetoken><![CDATA[<sun-web-app]]></replacetoken>
8.24 + <replacevalue><![CDATA[--> <sun-web-app]]></replacevalue>
8.25 + </replace>
8.26 + <xmlproperty file="${temp.sun.web}" validate="false">
8.27 + </xmlproperty>
8.28 + <delete file="${temp.sun.web}"/>
8.29 + <property name="deploy.ant.client.url" value="${gfv3.url}${sun-web-app.context-root}"/>
8.30 + <property name="deploy.context.root.argument" value="?contextroot=${sun-web-app.context-root}"/>
8.31 + </target>
8.32 + <target name="-no-parse-sun-web" depends="-init-cl-deployment-env" unless="sun.web.present">
8.33 + <property name="deploy.context.root.argument" value=""/>
8.34 + </target>
8.35 + <target name="-add-resources" depends="-init-cl-deployment-env" if="has.setup">
8.36 + <tempfile prefix="gfv3" property="gfv3.resources.dir" destdir="${java.io.tmpdir}"/>
8.37 + <mkdir dir="${gfv3.resources.dir}"/>
8.38 + <mkdir dir="${gfv3.resources.dir}/META-INF"/>
8.39 + <property name="gfv3.resources.file" value="${gfv3.resources.dir}/META-INF/sun-resources.xml"/>
8.40 + <copy todir="${gfv3.resources.dir}/META-INF">
8.41 + <fileset dir="${deploy.ant.resource.dir}"/>
8.42 + </copy>
8.43 + <jar destfile="${deploy.ant.archive}" update="true">
8.44 + <fileset dir="${gfv3.resources.dir}"/>
8.45 + </jar>
8.46 + <delete dir="${gfv3.resources.dir}"/>
8.47 + </target>
8.48 + <target name="-deploy-ant" depends="-parse-sun-web,-no-parse-sun-web,-add-resources" if="deploy.ant.enabled">
8.49 + <echo message="Deploying ${deploy.ant.archive}"/>
8.50 + <tempfile prefix="gfv3" property="gfv3.results.file" destdir="${java.io.tmpdir}"/> <!-- do not forget to delete this! -->
8.51 + <property name="full.deploy.ant.archive" location="${deploy.ant.archive}"/>
8.52 + <get src="${gfv3.url}/__asadmin/deploy?path=${full.deploy.ant.archive}${deploy.context.root.argument}?force=true?name=${ant.project.name}"
8.53 + dest="${gfv3.results.file}"/>
8.54 + <delete file="${gfv3.results.file}"/>
8.55 + </target>
8.56 + <target name="-undeploy-ant" depends="-init-cl-deployment-env" if="deploy.ant.enabled">
8.57 + <echo message="Undeploying ${deploy.ant.archive}"/>
8.58 + <tempfile prefix="gfv3" property="gfv3.results.file" destdir="${java.io.tmpdir}"/> <!-- do not forget to delete this! -->
8.59 + <get src="${gfv3.url}/__asadmin/undeploy?name=${ant.project.name}"
8.60 + dest="${gfv3.results.file}"/>
8.61 + <delete file="${gfv3.results.file}"/>
8.62 + </target>
8.63 +</project>
9.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
9.2 +++ b/java/nekurak.net-ejb/nbproject/build-impl.xml Thu Feb 11 08:52:50 2010 +0100
9.3 @@ -0,0 +1,645 @@
9.4 +<?xml version="1.0" encoding="UTF-8"?>
9.5 +<!--
9.6 +*** GENERATED FROM project.xml - DO NOT EDIT ***
9.7 +*** EDIT ../build.xml INSTEAD ***
9.8 +
9.9 +For the purpose of easier reading the script
9.10 +is divided into following sections:
9.11 +
9.12 + - initialization
9.13 + - compilation
9.14 + - dist
9.15 + - execution
9.16 + - debugging
9.17 + - javadoc
9.18 + - cleanup
9.19 +
9.20 + -->
9.21 +<project xmlns:ejbjarproject1="http://www.netbeans.org/ns/j2ee-ejbjarproject/1" xmlns:ejbjarproject2="http://www.netbeans.org/ns/j2ee-ejbjarproject/2" xmlns:ejbjarproject3="http://www.netbeans.org/ns/j2ee-ejbjarproject/3" basedir=".." default="default" name="nekurak.net-ejb-impl">
9.22 + <import file="ant-deploy.xml"/>
9.23 + <fail message="Please build using Ant 1.7.1 or higher.">
9.24 + <condition>
9.25 + <not>
9.26 + <antversion atleast="1.7.1"/>
9.27 + </not>
9.28 + </condition>
9.29 + </fail>
9.30 + <target depends="dist,javadoc" description="Build whole project." name="default"/>
9.31 + <!--
9.32 + INITIALIZATION SECTION
9.33 + -->
9.34 + <target name="-pre-init">
9.35 + <!-- Empty placeholder for easier customization. -->
9.36 + <!-- You can override this target in the ../build.xml file. -->
9.37 + </target>
9.38 + <target depends="-pre-init" name="-init-private">
9.39 + <property file="nbproject/private/private.properties"/>
9.40 + </target>
9.41 + <target depends="-pre-init,-init-private" name="-init-userdir">
9.42 + <property location="${netbeans.user}/build.properties" name="user.properties.file"/>
9.43 + </target>
9.44 + <target depends="-pre-init,-init-private,-init-userdir" name="-init-user">
9.45 + <property file="${user.properties.file}"/>
9.46 + <!-- The two properties below are usually overridden -->
9.47 + <!-- by the active platform. Just a fallback. -->
9.48 + <property name="default.javac.source" value="1.4"/>
9.49 + <property name="default.javac.target" value="1.4"/>
9.50 + </target>
9.51 + <target depends="-pre-init,-init-private,-init-userdir,-init-user" name="-init-project">
9.52 + <property file="nbproject/project.properties"/>
9.53 + </target>
9.54 + <target depends="-pre-init,-init-private,-init-userdir,-init-user,-init-project,-init-macrodef-property" name="-do-init">
9.55 + <!-- Ensure configuration directory exists. -->
9.56 + <mkdir dir="${meta.inf}"/>
9.57 + <property name="runmain.jvmargs" value=""/>
9.58 + <condition property="have.tests">
9.59 + <or>
9.60 + <available file="${test.src.dir}"/>
9.61 + </or>
9.62 + </condition>
9.63 + <condition property="have.sources">
9.64 + <or>
9.65 + <available file="${src.dir}"/>
9.66 + </or>
9.67 + </condition>
9.68 + <condition property="netbeans.home+have.tests">
9.69 + <and>
9.70 + <isset property="netbeans.home"/>
9.71 + <isset property="have.tests"/>
9.72 + </and>
9.73 + </condition>
9.74 + <condition property="no.javadoc.preview">
9.75 + <isfalse value="${javadoc.preview}"/>
9.76 + </condition>
9.77 + <available file="${meta.inf}/MANIFEST.MF" property="has.custom.manifest"/>
9.78 + <!--
9.79 + Variables needed to support directory deployment.
9.80 + -->
9.81 + <condition property="do.package.with.custom.manifest.not.directory.deploy">
9.82 + <and>
9.83 + <isset property="has.custom.manifest"/>
9.84 + <isfalse value="${directory.deployment.supported}"/>
9.85 + </and>
9.86 + </condition>
9.87 + <condition property="do.package.without.custom.manifest.not.directory.deploy">
9.88 + <and>
9.89 + <not>
9.90 + <isset property="has.custom.manifest"/>
9.91 + </not>
9.92 + <isfalse value="${directory.deployment.supported}"/>
9.93 + </and>
9.94 + </condition>
9.95 + <!--End Variables needed to support directory deployment.-->
9.96 + <condition property="classes.dir" value="${build.ear.classes.dir}">
9.97 + <isset property="dist.ear.dir"/>
9.98 + </condition>
9.99 + <property name="classes.dir" value="${build.classes.dir}"/>
9.100 + <condition property="no.deps">
9.101 + <and>
9.102 + <istrue value="${no.dependencies}"/>
9.103 + </and>
9.104 + </condition>
9.105 + <condition property="no.dist.ear.dir">
9.106 + <not>
9.107 + <isset property="dist.ear.dir"/>
9.108 + </not>
9.109 + </condition>
9.110 + <property name="source.encoding" value="${file.encoding}"/>
9.111 + <condition property="javadoc.encoding.used" value="${javadoc.encoding}">
9.112 + <and>
9.113 + <isset property="javadoc.encoding"/>
9.114 + <not>
9.115 + <equals arg1="${javadoc.encoding}" arg2=""/>
9.116 + </not>
9.117 + </and>
9.118 + </condition>
9.119 + <property name="javadoc.encoding.used" value="${source.encoding}"/>
9.120 + <property name="includes" value="**"/>
9.121 + <property name="excludes" value=""/>
9.122 + <path id="endorsed.classpath.path" path="${endorsed.classpath}"/>
9.123 + <condition else="" property="endorsed.classpath.cmd.line.arg" value="-Xbootclasspath/p:'${toString:endorsed.classpath.path}'">
9.124 + <length length="0" string="${endorsed.classpath}" when="greater"/>
9.125 + </condition>
9.126 + </target>
9.127 + <target depends="init" name="-init-cos" unless="deploy.on.save">
9.128 + <condition property="deploy.on.save" value="true">
9.129 + <istrue value="${j2ee.deploy.on.save}"/>
9.130 + </condition>
9.131 + </target>
9.132 + <target name="-post-init">
9.133 + <!-- Empty placeholder for easier customization. -->
9.134 + <!-- You can override this target in the ../build.xml file. -->
9.135 + </target>
9.136 + <target depends="-pre-init,-init-private,-init-userdir,-init-user,-init-project,-do-init" name="-init-check">
9.137 + <fail unless="src.dir">Must set src.dir</fail>
9.138 + <fail unless="test.src.dir">Must set test.src.dir</fail>
9.139 + <fail unless="build.dir">Must set build.dir</fail>
9.140 + <fail unless="build.generated.dir">Must set build.generated.dir</fail>
9.141 + <fail unless="dist.dir">Must set dist.dir</fail>
9.142 + <fail unless="build.classes.dir">Must set build.classes.dir</fail>
9.143 + <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
9.144 + <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
9.145 + <fail unless="dist.jar">Must set dist.jar</fail>
9.146 + <fail unless="j2ee.platform.classpath">
9.147 +The Java EE server classpath is not correctly set up. Your active server type is ${j2ee.server.type}.
9.148 +Either open the project in the IDE and assign the server or setup the server classpath manually.
9.149 +For example like this:
9.150 + ant -Duser.properties.file=<path_to_property_file> (where you put the property "j2ee.platform.classpath" in a .properties file)
9.151 +or ant -Dj2ee.platform.classpath=<server_classpath> (where no properties file is used)
9.152 + </fail>
9.153 + </target>
9.154 + <target name="-init-macrodef-property">
9.155 + <macrodef name="property" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/1">
9.156 + <attribute name="name"/>
9.157 + <attribute name="value"/>
9.158 + <sequential>
9.159 + <property name="@{name}" value="${@{value}}"/>
9.160 + </sequential>
9.161 + </macrodef>
9.162 + </target>
9.163 + <target name="-init-macrodef-javac">
9.164 + <macrodef name="javac" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
9.165 + <attribute default="${src.dir}" name="srcdir"/>
9.166 + <attribute default="${build.classes.dir}" name="destdir"/>
9.167 + <attribute default="${javac.classpath}:${j2ee.platform.classpath}" name="classpath"/>
9.168 + <attribute default="${includes}" name="includes"/>
9.169 + <attribute default="${excludes}" name="excludes"/>
9.170 + <attribute default="${javac.debug}" name="debug"/>
9.171 + <attribute default="${empty.dir}" name="gensrcdir"/>
9.172 + <element name="customize" optional="true"/>
9.173 + <sequential>
9.174 + <property name="javac.compilerargs" value=""/>
9.175 + <property location="${build.dir}/empty" name="empty.dir"/>
9.176 + <mkdir dir="${empty.dir}"/>
9.177 + <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" includeantruntime="false" includes="@{includes}" source="${javac.source}" srcdir="@{srcdir}" target="${javac.target}">
9.178 + <src>
9.179 + <dirset dir="@{gensrcdir}" erroronmissingdir="false">
9.180 + <include name="*"/>
9.181 + </dirset>
9.182 + </src>
9.183 + <classpath>
9.184 + <path path="@{classpath}"/>
9.185 + </classpath>
9.186 + <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
9.187 + <compilerarg line="${javac.compilerargs}"/>
9.188 + <customize/>
9.189 + </javac>
9.190 + </sequential>
9.191 + </macrodef>
9.192 + </target>
9.193 + <target name="-init-macrodef-junit">
9.194 + <macrodef name="junit" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
9.195 + <attribute default="${includes}" name="includes"/>
9.196 + <attribute default="${excludes}" name="excludes"/>
9.197 + <attribute default="**" name="testincludes"/>
9.198 + <sequential>
9.199 + <junit dir="${basedir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true" tempdir="${java.io.tmpdir}">
9.200 + <batchtest todir="${build.test.results.dir}">
9.201 + <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
9.202 + <filename name="@{testincludes}"/>
9.203 + </fileset>
9.204 + </batchtest>
9.205 + <classpath>
9.206 + <path path="${run.test.classpath}"/>
9.207 + <path path="${j2ee.platform.classpath}"/>
9.208 + <path path="${j2ee.platform.embeddableejb.classpath}"/>
9.209 + </classpath>
9.210 + <syspropertyset>
9.211 + <propertyref prefix="test-sys-prop."/>
9.212 + <mapper from="test-sys-prop.*" to="*" type="glob"/>
9.213 + </syspropertyset>
9.214 + <formatter type="brief" usefile="false"/>
9.215 + <formatter type="xml"/>
9.216 + <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
9.217 + <jvmarg line="${runmain.jvmargs}"/>
9.218 + </junit>
9.219 + </sequential>
9.220 + </macrodef>
9.221 + </target>
9.222 + <target name="-init-macrodef-java">
9.223 + <macrodef name="java" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/3">
9.224 + <attribute default="${main.class}" name="classname"/>
9.225 + <element name="customize" optional="true"/>
9.226 + <sequential>
9.227 + <java classname="@{classname}" fork="true">
9.228 + <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
9.229 + <jvmarg line="${runmain.jvmargs}"/>
9.230 + <classpath>
9.231 + <path path="${build.classes.dir}:${javac.classpath}:${j2ee.platform.classpath}"/>
9.232 + </classpath>
9.233 + <syspropertyset>
9.234 + <propertyref prefix="run-sys-prop."/>
9.235 + <mapper from="run-sys-prop.*" to="*" type="glob"/>
9.236 + </syspropertyset>
9.237 + <customize/>
9.238 + </java>
9.239 + </sequential>
9.240 + </macrodef>
9.241 + </target>
9.242 + <target depends="-init-debug-args" name="-init-macrodef-nbjpda">
9.243 + <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/1">
9.244 + <attribute default="${main.class}" name="name"/>
9.245 + <attribute default="${debug.classpath}" name="classpath"/>
9.246 + <sequential>
9.247 + <nbjpdastart addressproperty="jpda.address" name="@{name}" transport="${debug-transport}">
9.248 + <classpath>
9.249 + <path path="@{classpath}"/>
9.250 + </classpath>
9.251 + </nbjpdastart>
9.252 + </sequential>
9.253 + </macrodef>
9.254 + <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/1">
9.255 + <attribute default="${build.classes.dir}" name="dir"/>
9.256 + <sequential>
9.257 + <nbjpdareload>
9.258 + <fileset dir="@{dir}" includes="${fix.classes}">
9.259 + <include name="${fix.includes}*.class"/>
9.260 + </fileset>
9.261 + </nbjpdareload>
9.262 + </sequential>
9.263 + </macrodef>
9.264 + <macrodef name="nbjpdaappreloaded" uri="http://www.netbeans.org/ns/web-project/1">
9.265 + <sequential>
9.266 + <nbjpdaappreloaded/>
9.267 + </sequential>
9.268 + </macrodef>
9.269 + </target>
9.270 + <target name="-init-debug-args">
9.271 + <property name="version-output" value="java version "${ant.java.version}"/>
9.272 + <condition property="have-jdk-older-than-1.4">
9.273 + <or>
9.274 + <contains string="${version-output}" substring="java version "1.0"/>
9.275 + <contains string="${version-output}" substring="java version "1.1"/>
9.276 + <contains string="${version-output}" substring="java version "1.2"/>
9.277 + <contains string="${version-output}" substring="java version "1.3"/>
9.278 + </or>
9.279 + </condition>
9.280 + <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
9.281 + <istrue value="${have-jdk-older-than-1.4}"/>
9.282 + </condition>
9.283 + <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
9.284 + <os family="windows"/>
9.285 + </condition>
9.286 + <condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}">
9.287 + <isset property="debug.transport"/>
9.288 + </condition>
9.289 + </target>
9.290 + <target depends="-init-debug-args" name="-init-macrodef-debug">
9.291 + <macrodef name="debug" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/1">
9.292 + <attribute default="${main.class}" name="classname"/>
9.293 + <attribute default="${debug.classpath}" name="classpath"/>
9.294 + <attribute default="${application.args}" name="args"/>
9.295 + <element name="customize" optional="true"/>
9.296 + <sequential>
9.297 + <java classname="@{classname}" fork="true">
9.298 + <jvmarg line="${debug-args-line}"/>
9.299 + <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
9.300 + <classpath>
9.301 + <path path="@{classpath}"/>
9.302 + </classpath>
9.303 + <arg line="@{args}"/>
9.304 + <customize/>
9.305 + </java>
9.306 + </sequential>
9.307 + </macrodef>
9.308 + </target>
9.309 + <target name="-init-taskdefs">
9.310 + <fail unless="libs.CopyLibs.classpath">
9.311 +The libs.CopyLibs.classpath property is not set up.
9.312 +This property must point to
9.313 +org-netbeans-modules-java-j2seproject-copylibstask.jar file which is part
9.314 +of NetBeans IDE installation and is usually located at
9.315 +<netbeans_installation>/java<version>/ant/extra folder.
9.316 +Either open the project in the IDE and make sure CopyLibs library
9.317 +exists or setup the property manually. For example like this:
9.318 + ant -Dlibs.CopyLibs.classpath=a/path/to/org-netbeans-modules-java-j2seproject-copylibstask.jar
9.319 + </fail>
9.320 + <taskdef classpath="${libs.CopyLibs.classpath}" resource="org/netbeans/modules/java/j2seproject/copylibstask/antlib.xml"/>
9.321 + </target>
9.322 + <target depends="-pre-init,-init-private,-init-userdir,-init-user,-init-project,-do-init,-post-init,-init-check,-init-macrodef-property,-init-macrodef-javac,-init-macrodef-junit,-init-macrodef-java,-init-macrodef-nbjpda,-init-macrodef-debug,-init-taskdefs" name="init"/>
9.323 + <!--
9.324 + COMPILATION SECTION
9.325 + -->
9.326 + <target depends="init" if="no.dist.ear.dir" name="-deps-module-jar" unless="no.deps">
9.327 + <ant antfile="${project.nekurak_net-lib}/build.xml" inheritall="false" target="jar">
9.328 + <property name="deploy.on.save" value="false"/>
9.329 + </ant>
9.330 + </target>
9.331 + <target depends="init" if="dist.ear.dir" name="-deps-ear-jar" unless="no.deps">
9.332 + <ant antfile="${project.nekurak_net-lib}/build.xml" inheritall="false" target="jar">
9.333 + <property name="deploy.on.save" value="false"/>
9.334 + </ant>
9.335 + </target>
9.336 + <target depends="init, -deps-module-jar, -deps-ear-jar" name="deps-jar"/>
9.337 + <target depends="init,deps-jar" name="-pre-pre-compile">
9.338 + <mkdir dir="${build.classes.dir}"/>
9.339 + <mkdir dir="${build.ear.classes.dir}"/>
9.340 + </target>
9.341 + <target name="-pre-compile">
9.342 + <!-- Empty placeholder for easier customization. -->
9.343 + <!-- You can override this target in the ../build.xml file. -->
9.344 + </target>
9.345 + <target depends="compile" name="library-inclusion-in-archive">
9.346 + <copyfiles files="${reference.nekurak_net-lib.jar}" todir="${build.classes.dir}"/>
9.347 + </target>
9.348 + <target depends="compile" name="library-inclusion-in-manifest">
9.349 + <copyfiles files="${reference.nekurak_net-lib.jar}" todir="${dist.ear.dir}/lib"/>
9.350 + <manifest file="${build.ear.classes.dir}/META-INF/MANIFEST.MF" mode="update"/>
9.351 + </target>
9.352 + <target name="-copy-meta-inf">
9.353 + <copy todir="${classes.dir}">
9.354 + <fileset dir="${meta.inf}" includes="**/*.dbschema"/>
9.355 + </copy>
9.356 + <copy todir="${classes.dir}/META-INF">
9.357 + <fileset dir="${meta.inf}" excludes="**/*.dbschema **/xml-resources/** ${meta.inf.excludes}"/>
9.358 + </copy>
9.359 + </target>
9.360 + <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-copy-meta-inf" if="have.sources" name="-do-compile">
9.361 + <ejbjarproject2:javac destdir="${classes.dir}" gensrcdir="${build.generated.sources.dir}"/>
9.362 + <copy todir="${classes.dir}">
9.363 + <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
9.364 + </copy>
9.365 + </target>
9.366 + <target name="-post-compile">
9.367 + <!-- Empty placeholder for easier customization. -->
9.368 + <!-- You can override this target in the ../build.xml file. -->
9.369 + </target>
9.370 + <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
9.371 + <target name="-pre-compile-single">
9.372 + <!-- Empty placeholder for easier customization. -->
9.373 + <!-- You can override this target in the ../build.xml file. -->
9.374 + </target>
9.375 + <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
9.376 + <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
9.377 + <ejbjarproject2:javac excludes="" gensrcdir="${build.generated.sources.dir}" includes="${javac.includes}"/>
9.378 + </target>
9.379 + <target name="-post-compile-single">
9.380 + <!-- Empty placeholder for easier customization. -->
9.381 + <!-- You can override this target in the ../build.xml file. -->
9.382 + </target>
9.383 + <target depends="init,deps-jar,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
9.384 + <!--
9.385 + DIST BUILDING SECTION
9.386 + -->
9.387 + <target name="-pre-dist">
9.388 + <!-- Empty placeholder for easier customization. -->
9.389 + <!-- You can override this target in the ../build.xml file. -->
9.390 + </target>
9.391 + <target depends="init,compile,-pre-dist,library-inclusion-in-archive" if="has.custom.manifest" name="-do-dist-with-manifest">
9.392 + <dirname file="${dist.jar}" property="dist.jar.dir"/>
9.393 + <mkdir dir="${dist.jar.dir}"/>
9.394 + <jar compress="${jar.compress}" jarfile="${dist.jar}" manifest="${build.classes.dir}/META-INF/MANIFEST.MF">
9.395 + <fileset dir="${build.classes.dir}"/>
9.396 + </jar>
9.397 + </target>
9.398 + <target depends="init,compile,-pre-dist,library-inclusion-in-archive" name="-do-dist-without-manifest" unless="has.custom.manifest">
9.399 + <dirname file="${dist.jar}" property="dist.jar.dir"/>
9.400 + <mkdir dir="${dist.jar.dir}"/>
9.401 + <jar compress="${jar.compress}" jarfile="${dist.jar}">
9.402 + <fileset dir="${build.classes.dir}"/>
9.403 + </jar>
9.404 + </target>
9.405 + <!--
9.406 + TARGETS NEEDED TO SUPPORT DIRECTORY DEPLOYMENT
9.407 + -->
9.408 + <target depends="init,compile,-pre-dist,library-inclusion-in-archive" if="do.package.with.custom.manifest.not.directory.deploy" name="-do-tmp-dist-with-manifest">
9.409 + <dirname file="${dist.jar}" property="dist.jar.dir"/>
9.410 + <mkdir dir="${dist.jar.dir}"/>
9.411 + <jar compress="${jar.compress}" jarfile="${dist.jar}" manifest="${build.classes.dir}/META-INF/MANIFEST.MF">
9.412 + <fileset dir="${build.classes.dir}"/>
9.413 + </jar>
9.414 + </target>
9.415 + <target depends="init,compile,-pre-dist,library-inclusion-in-archive" if="do.package.without.custom.manifest.not.directory.deploy" name="-do-tmp-dist-without-manifest">
9.416 + <dirname file="${dist.jar}" property="dist.jar.dir"/>
9.417 + <mkdir dir="${dist.jar.dir}"/>
9.418 + <jar compress="${jar.compress}" jarfile="${dist.jar}">
9.419 + <fileset dir="${build.classes.dir}"/>
9.420 + </jar>
9.421 + </target>
9.422 + <target depends="init,compile,-pre-dist,library-inclusion-in-archive, -do-tmp-dist-without-manifest, -do-tmp-dist-with-manifest" name="-do-dist-directory-deploy"/>
9.423 + <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"/>
9.424 + <!--
9.425 + END TARGETS NEEDED TO SUPPORT DIRECTORY DEPLOYMENT
9.426 + -->
9.427 + <target depends="init,compile,-pre-dist,library-inclusion-in-archive, -do-dist-without-manifest, -do-dist-with-manifest" name="-do-dist"/>
9.428 + <target depends="init,compile,-pre-dist,library-inclusion-in-manifest" name="-do-ear-dist">
9.429 + <dirname file="${dist.ear.jar}" property="dist.jar.dir"/>
9.430 + <mkdir dir="${dist.jar.dir}"/>
9.431 + <jar compress="${jar.compress}" jarfile="${dist.ear.jar}" manifest="${build.ear.classes.dir}/META-INF/MANIFEST.MF">
9.432 + <fileset dir="${build.ear.classes.dir}"/>
9.433 + </jar>
9.434 + </target>
9.435 + <target name="-post-dist">
9.436 + <!-- Empty placeholder for easier customization. -->
9.437 + <!-- You can override this target in the ../build.xml file. -->
9.438 + </target>
9.439 + <target depends="init,compile,-pre-dist,-do-dist,-post-dist" description="Build distribution (JAR)." name="dist"/>
9.440 + <target depends="init,-init-cos,compile,-pre-dist,-do-ear-dist,-post-dist" description="Build distribution (JAR) to be packaged into an EAR." name="dist-ear"/>
9.441 + <!--
9.442 + EXECUTION SECTION
9.443 + -->
9.444 + <target depends="run-deploy" description="Deploy to server." name="run"/>
9.445 + <target name="-init-deploy">
9.446 + <property name="include.jar.manifest" value=""/>
9.447 + </target>
9.448 + <target name="pre-run-deploy">
9.449 + <!-- Empty placeholder for easier customization. -->
9.450 + <!-- You can override this target in the ../build.xml file. -->
9.451 + </target>
9.452 + <target name="post-run-deploy">
9.453 + <!-- Empty placeholder for easier customization. -->
9.454 + <!-- You can override this target in the ../build.xml file. -->
9.455 + </target>
9.456 + <target name="-pre-nbmodule-run-deploy">
9.457 + <!-- Empty placeholder for easier customization. -->
9.458 + <!-- This target can be overriden by NetBeans modules. Don't override it directly, use -pre-run-deploy task instead. -->
9.459 + </target>
9.460 + <target name="-post-nbmodule-run-deploy">
9.461 + <!-- Empty placeholder for easier customization. -->
9.462 + <!-- This target can be overriden by NetBeans modules. Don't override it directly, use -post-run-deploy task instead. -->
9.463 + </target>
9.464 + <target name="-run-deploy-am">
9.465 + <!-- Task to deploy to the Access Manager runtime. -->
9.466 + </target>
9.467 + <target depends="init,-init-cos,-init-deploy,compile,library-inclusion-in-archive,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">
9.468 + <nbjpdaappreloaded/>
9.469 + </target>
9.470 + <target if="netbeans.home" name="-run-deploy-nb">
9.471 + <nbdeploy debugmode="false" forceRedeploy="${forceRedeploy}"/>
9.472 + </target>
9.473 + <target name="-init-deploy-ant" unless="netbeans.home">
9.474 + <property name="deploy.ant.archive" value="${dist.jar}"/>
9.475 + <property name="deploy.ant.resource.dir" value="${resource.dir}"/>
9.476 + <property name="deploy.ant.enabled" value="true"/>
9.477 + </target>
9.478 + <target depends="dist,-run-undeploy-nb,-init-deploy-ant,-undeploy-ant" name="run-undeploy"/>
9.479 + <target if="netbeans.home" name="-run-undeploy-nb">
9.480 + <fail message="Undeploy is not supported from within the IDE"/>
9.481 + </target>
9.482 + <target depends="dist" name="verify">
9.483 + <nbverify file="${dist.jar}"/>
9.484 + </target>
9.485 + <target depends="init,compile-single" name="run-main">
9.486 + <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
9.487 + <ejbjarproject3:java classname="${run.class}"/>
9.488 + </target>
9.489 + <!--
9.490 + DEBUGGING SECTION
9.491 + -->
9.492 + <target depends="init,compile,dist-directory-deploy" description="Debug project in IDE." if="netbeans.home" name="debug">
9.493 + <nbdeploy debugmode="true"/>
9.494 + <antcall target="connect-debugger"/>
9.495 + </target>
9.496 + <target name="connect-debugger" unless="is.debugged">
9.497 + <nbjpdaconnect address="${jpda.address}" host="${jpda.host}" name="${name}" transport="${jpda.transport}">
9.498 + <classpath>
9.499 + <path path="${debug.classpath}"/>
9.500 + </classpath>
9.501 + <sourcepath>
9.502 + <path path="${web.docbase.dir}"/>
9.503 + </sourcepath>
9.504 + </nbjpdaconnect>
9.505 + </target>
9.506 + <target depends="init" if="netbeans.home" name="-debug-start-debugger">
9.507 + <ejbjarproject1:nbjpdastart/>
9.508 + </target>
9.509 + <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
9.510 + <fail unless="main.class">Must select one file in the IDE or set main.class</fail>
9.511 + <ejbjarproject1:debug/>
9.512 + </target>
9.513 + <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single-main"/>
9.514 + <target depends="init" name="-pre-debug-fix">
9.515 + <fail unless="fix.includes">Must set fix.includes</fail>
9.516 + <property name="javac.includes" value="${fix.includes}.java"/>
9.517 + </target>
9.518 + <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
9.519 + <ejbjarproject1:nbjpdareload/>
9.520 + </target>
9.521 + <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
9.522 + <!--
9.523 + JAVADOC SECTION
9.524 + -->
9.525 + <target depends="init" name="javadoc-build">
9.526 + <mkdir dir="${dist.javadoc.dir}"/>
9.527 + <javadoc additionalparam="${javadoc.additionalparam}" author="${javadoc.author}" charset="UTF-8" destdir="${dist.javadoc.dir}" docencoding="UTF-8" encoding="${javadoc.encoding.used}" failonerror="true" noindex="${javadoc.noindex}" nonavbar="${javadoc.nonavbar}" notree="${javadoc.notree}" private="${javadoc.private}" source="${javac.source}" splitindex="${javadoc.splitindex}" use="${javadoc.use}" useexternalfile="true" version="${javadoc.version}" windowtitle="${javadoc.windowtitle}">
9.528 + <classpath>
9.529 + <path path="${javac.classpath}:${j2ee.platform.classpath}"/>
9.530 + </classpath>
9.531 + <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
9.532 + <filename name="**/*.java"/>
9.533 + </fileset>
9.534 + <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
9.535 + <include name="**/*.java"/>
9.536 + </fileset>
9.537 + </javadoc>
9.538 + </target>
9.539 + <target depends="init,javadoc-build" if="netbeans.home" name="javadoc-browse" unless="no.javadoc.preview">
9.540 + <nbbrowse file="${dist.javadoc.dir}/index.html"/>
9.541 + </target>
9.542 + <target depends="init,javadoc-build,javadoc-browse" description="Build Javadoc." name="javadoc"/>
9.543 + <!--
9.544 + JUNIT COMPILATION SECTION
9.545 + -->
9.546 + <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
9.547 + <mkdir dir="${build.test.classes.dir}"/>
9.548 + <property name="j2ee.platform.embeddableejb.classpath" value=""/>
9.549 + </target>
9.550 + <target name="-pre-compile-test">
9.551 + <!-- Empty placeholder for easier customization. -->
9.552 + <!-- You can override this target in the ../build.xml file. -->
9.553 + </target>
9.554 + <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test" if="have.tests" name="-do-compile-test">
9.555 + <ejbjarproject2:javac classpath="${javac.test.classpath}:${j2ee.platform.classpath}:${j2ee.platform.embeddableejb.classpath}" debug="true" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
9.556 + <copy todir="${build.test.classes.dir}">
9.557 + <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
9.558 + </copy>
9.559 + </target>
9.560 + <target name="-post-compile-test">
9.561 + <!-- Empty placeholder for easier customization. -->
9.562 + <!-- You can override this target in the ../build.xml file. -->
9.563 + </target>
9.564 + <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
9.565 + <target name="-pre-compile-test-single">
9.566 + <!-- Empty placeholder for easier customization. -->
9.567 + <!-- You can override this target in the ../build.xml file. -->
9.568 + </target>
9.569 + <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
9.570 + <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
9.571 + <ejbjarproject2:javac classpath="${javac.test.classpath}:${j2ee.platform.classpath}:${j2ee.platform.embeddableejb.classpath}" debug="true" destdir="${build.test.classes.dir}" excludes="" includes="${javac.includes}" srcdir="${test.src.dir}"/>
9.572 + </target>
9.573 + <target name="-post-compile-test-single">
9.574 + <!-- Empty placeholder for easier customization. -->
9.575 + <!-- You can override this target in the ../build.xml file. -->
9.576 + </target>
9.577 + <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/>
9.578 + <!--
9.579 + JUNIT EXECUTION SECTION
9.580 + -->
9.581 + <target depends="init" if="have.tests" name="-pre-test-run">
9.582 + <mkdir dir="${build.test.results.dir}"/>
9.583 + </target>
9.584 + <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
9.585 + <ejbjarproject2:junit testincludes="**/*Test.java"/>
9.586 + </target>
9.587 + <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
9.588 + <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
9.589 + </target>
9.590 + <target depends="init" if="have.tests" name="test-report"/>
9.591 + <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
9.592 + <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/>
9.593 + <target depends="init" if="have.tests" name="-pre-test-run-single">
9.594 + <mkdir dir="${build.test.results.dir}"/>
9.595 + </target>
9.596 + <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
9.597 + <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
9.598 + <ejbjarproject2:junit excludes="" includes="${test.includes}"/>
9.599 + </target>
9.600 + <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
9.601 + <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
9.602 + </target>
9.603 + <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single,-post-test-run-single" description="Run single unit test." name="test-single"/>
9.604 + <!--
9.605 + JUNIT DEBUGGING SECTION
9.606 + -->
9.607 + <target depends="init,compile-test" if="have.tests" name="-debug-start-debuggee-test">
9.608 + <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
9.609 + <property location="${build.test.results.dir}/TEST-${test.class}.xml" name="test.report.file"/>
9.610 + <delete file="${test.report.file}"/>
9.611 + <!-- the directory must exist, otherwise the XML formatter would fail -->
9.612 + <mkdir dir="${build.test.results.dir}"/>
9.613 + <ejbjarproject1:debug args="${test.class}" classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner" classpath="${ant.home}/lib/ant.jar:${ant.home}/lib/ant-junit.jar:${debug.test.classpath}:${j2ee.platform.embeddableejb.classpath}">
9.614 + <customize>
9.615 + <arg value="showoutput=true"/>
9.616 + <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter"/>
9.617 + <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,${test.report.file}"/>
9.618 + </customize>
9.619 + </ejbjarproject1:debug>
9.620 + </target>
9.621 + <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
9.622 + <ejbjarproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
9.623 + </target>
9.624 + <target depends="init,compile-test,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
9.625 + <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
9.626 + <ejbjarproject1:nbjpdareload dir="${build.test.classes.dir}"/>
9.627 + </target>
9.628 + <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
9.629 + <!--
9.630 + CLEANUP SECTION
9.631 + -->
9.632 + <target depends="init" if="no.dist.ear.dir" name="deps-clean" unless="no.deps">
9.633 + <ant antfile="${project.nekurak_net-lib}/build.xml" inheritall="false" target="clean"/>
9.634 + </target>
9.635 + <target depends="init" name="-do-clean">
9.636 + <delete dir="${build.dir}"/>
9.637 + <delete dir="${dist.dir}"/>
9.638 + </target>
9.639 + <target name="-post-clean">
9.640 + <!-- Empty placeholder for easier customization. -->
9.641 + <!-- You can override this target in the ../build.xml file. -->
9.642 + </target>
9.643 + <target depends="init" if="netbeans.home" name="undeploy-clean">
9.644 + <nbundeploy failOnError="false" startServer="false"/>
9.645 + </target>
9.646 + <target depends="init,undeploy-clean,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/>
9.647 + <target depends="clean" name="clean-ear"/>
9.648 +</project>
10.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
10.2 +++ b/java/nekurak.net-ejb/nbproject/genfiles.properties Thu Feb 11 08:52:50 2010 +0100
10.3 @@ -0,0 +1,8 @@
10.4 +build.xml.data.CRC32=c812c3c4
10.5 +build.xml.script.CRC32=d7a2a0ed
10.6 +build.xml.stylesheet.CRC32=e5f4c432@1.19.2
10.7 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
10.8 +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
10.9 +nbproject/build-impl.xml.data.CRC32=c812c3c4
10.10 +nbproject/build-impl.xml.script.CRC32=9437cdd7
10.11 +nbproject/build-impl.xml.stylesheet.CRC32=b9c9cfe1@1.19.2
11.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
11.2 +++ b/java/nekurak.net-ejb/nbproject/project.properties Thu Feb 11 08:52:50 2010 +0100
11.3 @@ -0,0 +1,63 @@
11.4 +build.classes.dir=${build.dir}/classes
11.5 +build.classes.excludes=**/*.java,**/*.form,**/.nbattrs
11.6 +build.dir=build
11.7 +build.ear.classes.dir=${build.dir}/classes
11.8 +build.generated.dir=${build.dir}/generated
11.9 +build.generated.sources.dir=${build.dir}/generated-sources
11.10 +build.test.classes.dir=${build.dir}/test/classes
11.11 +build.test.results.dir=${build.dir}/test/results
11.12 +debug.classpath=${javac.classpath}:${build.classes.dir}
11.13 +debug.test.classpath=\
11.14 + ${run.test.classpath}
11.15 +dist.dir=dist
11.16 +dist.ear.jar=${dist.dir}/${jar.name}
11.17 +dist.jar=${dist.dir}/${jar.name}
11.18 +dist.javadoc.dir=${dist.dir}/javadoc
11.19 +endorsed.classpath=\
11.20 + ${libs.javaee-endorsed-api-6.0.classpath}
11.21 +excludes=
11.22 +includes=**
11.23 +j2ee.deploy.on.save=false
11.24 +j2ee.platform=1.6
11.25 +j2ee.server.type=gfv3ee6
11.26 +jar.compress=false
11.27 +jar.name=nekurak.net-ejb.jar
11.28 +javac.classpath=\
11.29 + ${reference.nekurak_net-lib.jar}
11.30 +javac.debug=true
11.31 +javac.deprecation=false
11.32 +javac.source=1.5
11.33 +javac.target=1.5
11.34 +javac.test.classpath=\
11.35 + ${javac.classpath}:\
11.36 + ${build.classes.dir}:\
11.37 + ${libs.junit.classpath}:\
11.38 + ${libs.junit_4.classpath}
11.39 +javadoc.additionalparam=
11.40 +javadoc.author=false
11.41 +javadoc.encoding=${source.encoding}
11.42 +javadoc.noindex=false
11.43 +javadoc.nonavbar=false
11.44 +javadoc.notree=false
11.45 +javadoc.preview=true
11.46 +javadoc.private=false
11.47 +javadoc.splitindex=true
11.48 +javadoc.use=true
11.49 +javadoc.version=false
11.50 +javadoc.windowtitle=
11.51 +meta.inf=${source.root}/conf
11.52 +meta.inf.excludes=sun-cmp-mappings.xml
11.53 +platform.active=default_platform
11.54 +project.nekurak_net-lib=../nekurak.net-lib
11.55 +reference.nekurak_net-lib.jar=${project.nekurak_net-lib}/dist/nekurak.net-lib.jar
11.56 +resource.dir=setup
11.57 +run.test.classpath=\
11.58 + ${javac.test.classpath}:\
11.59 + ${build.test.classes.dir}
11.60 +# Space-separated list of JVM arguments used when running a class with a main method or a unit test
11.61 +# (you may also define separate properties like run-sys-prop.name=value instead of -Dname=value):
11.62 +runmain.jvmargs=
11.63 +source.encoding=UTF-8
11.64 +source.root=src
11.65 +src.dir=${source.root}/java
11.66 +test.src.dir=test
12.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
12.2 +++ b/java/nekurak.net-ejb/nbproject/project.xml Thu Feb 11 08:52:50 2010 +0100
12.3 @@ -0,0 +1,27 @@
12.4 +<?xml version="1.0" encoding="UTF-8"?>
12.5 +<project xmlns="http://www.netbeans.org/ns/project/1">
12.6 + <type>org.netbeans.modules.j2ee.ejbjarproject</type>
12.7 + <configuration>
12.8 + <data xmlns="http://www.netbeans.org/ns/j2ee-ejbjarproject/3">
12.9 + <name>nekurak.net-ejb</name>
12.10 + <minimum-ant-version>1.6.5</minimum-ant-version>
12.11 + <included-library dirs="200">reference.nekurak_net-lib.jar</included-library>
12.12 + <source-roots>
12.13 + <root id="src.dir" name="Source Packages"/>
12.14 + </source-roots>
12.15 + <test-roots>
12.16 + <root id="test.src.dir" name="Test Packages"/>
12.17 + </test-roots>
12.18 + </data>
12.19 + <references xmlns="http://www.netbeans.org/ns/ant-project-references/1">
12.20 + <reference>
12.21 + <foreign-project>nekurak_net-lib</foreign-project>
12.22 + <artifact-type>jar</artifact-type>
12.23 + <script>build.xml</script>
12.24 + <target>jar</target>
12.25 + <clean-target>clean</clean-target>
12.26 + <id>jar</id>
12.27 + </reference>
12.28 + </references>
12.29 + </configuration>
12.30 +</project>
13.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
13.2 +++ b/java/nekurak.net-ejb/src/conf/MANIFEST.MF Thu Feb 11 08:52:50 2010 +0100
13.3 @@ -0,0 +1,2 @@
13.4 +Manifest-Version: 1.0
13.5 +
14.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
14.2 +++ b/java/nekurak.net-ejb/src/conf/beans.xml Thu Feb 11 08:52:50 2010 +0100
14.3 @@ -0,0 +1,5 @@
14.4 +<?xml version="1.0" encoding="UTF-8"?>
14.5 +<beans xmlns="http://java.sun.com/xml/ns/javaee"
14.6 + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
14.7 + xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/beans_1_0.xsd">
14.8 +</beans>
15.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
15.2 +++ b/java/nekurak.net-lib/nbproject/build-impl.xml Thu Feb 11 08:52:50 2010 +0100
15.3 @@ -0,0 +1,805 @@
15.4 +<?xml version="1.0" encoding="UTF-8"?>
15.5 +<!--
15.6 +*** GENERATED FROM project.xml - DO NOT EDIT ***
15.7 +*** EDIT ../build.xml INSTEAD ***
15.8 +
15.9 +For the purpose of easier reading the script
15.10 +is divided into following sections:
15.11 +
15.12 + - initialization
15.13 + - compilation
15.14 + - jar
15.15 + - execution
15.16 + - debugging
15.17 + - javadoc
15.18 + - junit compilation
15.19 + - junit execution
15.20 + - junit debugging
15.21 + - applet
15.22 + - cleanup
15.23 +
15.24 + -->
15.25 +<project xmlns:j2seproject1="http://www.netbeans.org/ns/j2se-project/1" xmlns:j2seproject3="http://www.netbeans.org/ns/j2se-project/3" xmlns:jaxrpc="http://www.netbeans.org/ns/j2se-project/jax-rpc" basedir=".." default="default" name="nekurak.net-lib-impl">
15.26 + <fail message="Please build using Ant 1.7.1 or higher.">
15.27 + <condition>
15.28 + <not>
15.29 + <antversion atleast="1.7.1"/>
15.30 + </not>
15.31 + </condition>
15.32 + </fail>
15.33 + <target depends="test,jar,javadoc" description="Build and test whole project." name="default"/>
15.34 + <!--
15.35 + ======================
15.36 + INITIALIZATION SECTION
15.37 + ======================
15.38 + -->
15.39 + <target name="-pre-init">
15.40 + <!-- Empty placeholder for easier customization. -->
15.41 + <!-- You can override this target in the ../build.xml file. -->
15.42 + </target>
15.43 + <target depends="-pre-init" name="-init-private">
15.44 + <property file="nbproject/private/config.properties"/>
15.45 + <property file="nbproject/private/configs/${config}.properties"/>
15.46 + <property file="nbproject/private/private.properties"/>
15.47 + </target>
15.48 + <target depends="-pre-init,-init-private" name="-init-user">
15.49 + <property file="${user.properties.file}"/>
15.50 + <!-- The two properties below are usually overridden -->
15.51 + <!-- by the active platform. Just a fallback. -->
15.52 + <property name="default.javac.source" value="1.4"/>
15.53 + <property name="default.javac.target" value="1.4"/>
15.54 + </target>
15.55 + <target depends="-pre-init,-init-private,-init-user" name="-init-project">
15.56 + <property file="nbproject/configs/${config}.properties"/>
15.57 + <property file="nbproject/project.properties"/>
15.58 + </target>
15.59 + <target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" name="-do-init">
15.60 + <available file="${manifest.file}" property="manifest.available"/>
15.61 + <condition property="main.class.available">
15.62 + <and>
15.63 + <isset property="main.class"/>
15.64 + <not>
15.65 + <equals arg1="${main.class}" arg2="" trim="true"/>
15.66 + </not>
15.67 + </and>
15.68 + </condition>
15.69 + <condition property="manifest.available+main.class">
15.70 + <and>
15.71 + <isset property="manifest.available"/>
15.72 + <isset property="main.class.available"/>
15.73 + </and>
15.74 + </condition>
15.75 + <condition property="do.mkdist">
15.76 + <and>
15.77 + <isset property="libs.CopyLibs.classpath"/>
15.78 + <not>
15.79 + <istrue value="${mkdist.disabled}"/>
15.80 + </not>
15.81 + </and>
15.82 + </condition>
15.83 + <condition property="manifest.available+main.class+mkdist.available">
15.84 + <and>
15.85 + <istrue value="${manifest.available+main.class}"/>
15.86 + <isset property="do.mkdist"/>
15.87 + </and>
15.88 + </condition>
15.89 + <condition property="manifest.available+mkdist.available">
15.90 + <and>
15.91 + <istrue value="${manifest.available}"/>
15.92 + <isset property="do.mkdist"/>
15.93 + </and>
15.94 + </condition>
15.95 + <condition property="manifest.available-mkdist.available">
15.96 + <or>
15.97 + <istrue value="${manifest.available}"/>
15.98 + <isset property="do.mkdist"/>
15.99 + </or>
15.100 + </condition>
15.101 + <condition property="manifest.available+main.class-mkdist.available">
15.102 + <or>
15.103 + <istrue value="${manifest.available+main.class}"/>
15.104 + <isset property="do.mkdist"/>
15.105 + </or>
15.106 + </condition>
15.107 + <condition property="have.tests">
15.108 + <or>
15.109 + <available file="${test.src.dir}"/>
15.110 + </or>
15.111 + </condition>
15.112 + <condition property="have.sources">
15.113 + <or>
15.114 + <available file="${src.dir}"/>
15.115 + </or>
15.116 + </condition>
15.117 + <condition property="netbeans.home+have.tests">
15.118 + <and>
15.119 + <isset property="netbeans.home"/>
15.120 + <isset property="have.tests"/>
15.121 + </and>
15.122 + </condition>
15.123 + <condition property="no.javadoc.preview">
15.124 + <and>
15.125 + <isset property="javadoc.preview"/>
15.126 + <isfalse value="${javadoc.preview}"/>
15.127 + </and>
15.128 + </condition>
15.129 + <property name="run.jvmargs" value=""/>
15.130 + <property name="javac.compilerargs" value=""/>
15.131 + <property name="work.dir" value="${basedir}"/>
15.132 + <condition property="no.deps">
15.133 + <and>
15.134 + <istrue value="${no.dependencies}"/>
15.135 + </and>
15.136 + </condition>
15.137 + <property name="javac.debug" value="true"/>
15.138 + <property name="javadoc.preview" value="true"/>
15.139 + <property name="application.args" value=""/>
15.140 + <property name="source.encoding" value="${file.encoding}"/>
15.141 + <property name="runtime.encoding" value="${source.encoding}"/>
15.142 + <condition property="javadoc.encoding.used" value="${javadoc.encoding}">
15.143 + <and>
15.144 + <isset property="javadoc.encoding"/>
15.145 + <not>
15.146 + <equals arg1="${javadoc.encoding}" arg2=""/>
15.147 + </not>
15.148 + </and>
15.149 + </condition>
15.150 + <property name="javadoc.encoding.used" value="${source.encoding}"/>
15.151 + <property name="includes" value="**"/>
15.152 + <property name="excludes" value=""/>
15.153 + <property name="do.depend" value="false"/>
15.154 + <condition property="do.depend.true">
15.155 + <istrue value="${do.depend}"/>
15.156 + </condition>
15.157 + <path id="endorsed.classpath.path" path="${endorsed.classpath}"/>
15.158 + <condition else="" property="endorsed.classpath.cmd.line.arg" value="-Xbootclasspath/p:'${toString:endorsed.classpath.path}'">
15.159 + <length length="0" string="${endorsed.classpath}" when="greater"/>
15.160 + </condition>
15.161 + <property name="javac.fork" value="false"/>
15.162 + </target>
15.163 + <target name="-post-init">
15.164 + <!-- Empty placeholder for easier customization. -->
15.165 + <!-- You can override this target in the ../build.xml file. -->
15.166 + </target>
15.167 + <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init" name="-init-check">
15.168 + <fail unless="src.dir">Must set src.dir</fail>
15.169 + <fail unless="test.src.dir">Must set test.src.dir</fail>
15.170 + <fail unless="build.dir">Must set build.dir</fail>
15.171 + <fail unless="dist.dir">Must set dist.dir</fail>
15.172 + <fail unless="build.classes.dir">Must set build.classes.dir</fail>
15.173 + <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
15.174 + <fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail>
15.175 + <fail unless="build.test.results.dir">Must set build.test.results.dir</fail>
15.176 + <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
15.177 + <fail unless="dist.jar">Must set dist.jar</fail>
15.178 + </target>
15.179 + <target name="-init-macrodef-property">
15.180 + <macrodef name="property" uri="http://www.netbeans.org/ns/j2se-project/1">
15.181 + <attribute name="name"/>
15.182 + <attribute name="value"/>
15.183 + <sequential>
15.184 + <property name="@{name}" value="${@{value}}"/>
15.185 + </sequential>
15.186 + </macrodef>
15.187 + </target>
15.188 + <target name="-init-macrodef-javac">
15.189 + <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
15.190 + <attribute default="${src.dir}" name="srcdir"/>
15.191 + <attribute default="${build.classes.dir}" name="destdir"/>
15.192 + <attribute default="${javac.classpath}" name="classpath"/>
15.193 + <attribute default="${includes}" name="includes"/>
15.194 + <attribute default="${excludes}" name="excludes"/>
15.195 + <attribute default="${javac.debug}" name="debug"/>
15.196 + <attribute default="${empty.dir}" name="sourcepath"/>
15.197 + <attribute default="${empty.dir}" name="gensrcdir"/>
15.198 + <element name="customize" optional="true"/>
15.199 + <sequential>
15.200 + <property location="${build.dir}/empty" name="empty.dir"/>
15.201 + <mkdir dir="${empty.dir}"/>
15.202 + <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" fork="${javac.fork}" includeantruntime="false" includes="@{includes}" source="${javac.source}" sourcepath="@{sourcepath}" srcdir="@{srcdir}" target="${javac.target}" tempdir="${java.io.tmpdir}">
15.203 + <src>
15.204 + <dirset dir="@{gensrcdir}" erroronmissingdir="false">
15.205 + <include name="*"/>
15.206 + </dirset>
15.207 + </src>
15.208 + <classpath>
15.209 + <path path="@{classpath}"/>
15.210 + </classpath>
15.211 + <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
15.212 + <compilerarg line="${javac.compilerargs}"/>
15.213 + <customize/>
15.214 + </javac>
15.215 + </sequential>
15.216 + </macrodef>
15.217 + <macrodef name="depend" uri="http://www.netbeans.org/ns/j2se-project/3">
15.218 + <attribute default="${src.dir}" name="srcdir"/>
15.219 + <attribute default="${build.classes.dir}" name="destdir"/>
15.220 + <attribute default="${javac.classpath}" name="classpath"/>
15.221 + <sequential>
15.222 + <depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}">
15.223 + <classpath>
15.224 + <path path="@{classpath}"/>
15.225 + </classpath>
15.226 + </depend>
15.227 + </sequential>
15.228 + </macrodef>
15.229 + <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/j2se-project/3">
15.230 + <attribute default="${build.classes.dir}" name="destdir"/>
15.231 + <sequential>
15.232 + <fail unless="javac.includes">Must set javac.includes</fail>
15.233 + <pathconvert pathsep="," property="javac.includes.binary">
15.234 + <path>
15.235 + <filelist dir="@{destdir}" files="${javac.includes}"/>
15.236 + </path>
15.237 + <globmapper from="*.java" to="*.class"/>
15.238 + </pathconvert>
15.239 + <delete>
15.240 + <files includes="${javac.includes.binary}"/>
15.241 + </delete>
15.242 + </sequential>
15.243 + </macrodef>
15.244 + </target>
15.245 + <target name="-init-macrodef-junit">
15.246 + <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">
15.247 + <attribute default="${includes}" name="includes"/>
15.248 + <attribute default="${excludes}" name="excludes"/>
15.249 + <attribute default="**" name="testincludes"/>
15.250 + <sequential>
15.251 + <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true" tempdir="${build.dir}">
15.252 + <batchtest todir="${build.test.results.dir}">
15.253 + <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
15.254 + <filename name="@{testincludes}"/>
15.255 + </fileset>
15.256 + </batchtest>
15.257 + <classpath>
15.258 + <path path="${run.test.classpath}"/>
15.259 + </classpath>
15.260 + <syspropertyset>
15.261 + <propertyref prefix="test-sys-prop."/>
15.262 + <mapper from="test-sys-prop.*" to="*" type="glob"/>
15.263 + </syspropertyset>
15.264 + <formatter type="brief" usefile="false"/>
15.265 + <formatter type="xml"/>
15.266 + <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
15.267 + <jvmarg line="${run.jvmargs}"/>
15.268 + </junit>
15.269 + </sequential>
15.270 + </macrodef>
15.271 + </target>
15.272 + <target depends="-init-debug-args" name="-init-macrodef-nbjpda">
15.273 + <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2se-project/1">
15.274 + <attribute default="${main.class}" name="name"/>
15.275 + <attribute default="${debug.classpath}" name="classpath"/>
15.276 + <attribute default="" name="stopclassname"/>
15.277 + <sequential>
15.278 + <nbjpdastart addressproperty="jpda.address" name="@{name}" stopclassname="@{stopclassname}" transport="${debug-transport}">
15.279 + <classpath>
15.280 + <path path="@{classpath}"/>
15.281 + </classpath>
15.282 + </nbjpdastart>
15.283 + </sequential>
15.284 + </macrodef>
15.285 + <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2se-project/1">
15.286 + <attribute default="${build.classes.dir}" name="dir"/>
15.287 + <sequential>
15.288 + <nbjpdareload>
15.289 + <fileset dir="@{dir}" includes="${fix.classes}">
15.290 + <include name="${fix.includes}*.class"/>
15.291 + </fileset>
15.292 + </nbjpdareload>
15.293 + </sequential>
15.294 + </macrodef>
15.295 + </target>
15.296 + <target name="-init-debug-args">
15.297 + <property name="version-output" value="java version "${ant.java.version}"/>
15.298 + <condition property="have-jdk-older-than-1.4">
15.299 + <or>
15.300 + <contains string="${version-output}" substring="java version "1.0"/>
15.301 + <contains string="${version-output}" substring="java version "1.1"/>
15.302 + <contains string="${version-output}" substring="java version "1.2"/>
15.303 + <contains string="${version-output}" substring="java version "1.3"/>
15.304 + </or>
15.305 + </condition>
15.306 + <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
15.307 + <istrue value="${have-jdk-older-than-1.4}"/>
15.308 + </condition>
15.309 + <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
15.310 + <os family="windows"/>
15.311 + </condition>
15.312 + <condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}">
15.313 + <isset property="debug.transport"/>
15.314 + </condition>
15.315 + </target>
15.316 + <target depends="-init-debug-args" name="-init-macrodef-debug">
15.317 + <macrodef name="debug" uri="http://www.netbeans.org/ns/j2se-project/3">
15.318 + <attribute default="${main.class}" name="classname"/>
15.319 + <attribute default="${debug.classpath}" name="classpath"/>
15.320 + <element name="customize" optional="true"/>
15.321 + <sequential>
15.322 + <java classname="@{classname}" dir="${work.dir}" fork="true">
15.323 + <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
15.324 + <jvmarg line="${debug-args-line}"/>
15.325 + <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
15.326 + <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
15.327 + <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
15.328 + <jvmarg line="${run.jvmargs}"/>
15.329 + <classpath>
15.330 + <path path="@{classpath}"/>
15.331 + </classpath>
15.332 + <syspropertyset>
15.333 + <propertyref prefix="run-sys-prop."/>
15.334 + <mapper from="run-sys-prop.*" to="*" type="glob"/>
15.335 + </syspropertyset>
15.336 + <customize/>
15.337 + </java>
15.338 + </sequential>
15.339 + </macrodef>
15.340 + </target>
15.341 + <target name="-init-macrodef-java">
15.342 + <macrodef name="java" uri="http://www.netbeans.org/ns/j2se-project/1">
15.343 + <attribute default="${main.class}" name="classname"/>
15.344 + <attribute default="${run.classpath}" name="classpath"/>
15.345 + <element name="customize" optional="true"/>
15.346 + <sequential>
15.347 + <java classname="@{classname}" dir="${work.dir}" fork="true">
15.348 + <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
15.349 + <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
15.350 + <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
15.351 + <jvmarg line="${run.jvmargs}"/>
15.352 + <classpath>
15.353 + <path path="@{classpath}"/>
15.354 + </classpath>
15.355 + <syspropertyset>
15.356 + <propertyref prefix="run-sys-prop."/>
15.357 + <mapper from="run-sys-prop.*" to="*" type="glob"/>
15.358 + </syspropertyset>
15.359 + <customize/>
15.360 + </java>
15.361 + </sequential>
15.362 + </macrodef>
15.363 + </target>
15.364 + <target name="-init-presetdef-jar">
15.365 + <presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1">
15.366 + <jar compress="${jar.compress}" jarfile="${dist.jar}">
15.367 + <j2seproject1:fileset dir="${build.classes.dir}"/>
15.368 + </jar>
15.369 + </presetdef>
15.370 + </target>
15.371 + <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init,-post-init,-init-check,-init-macrodef-property,-init-macrodef-javac,-init-macrodef-junit,-init-macrodef-nbjpda,-init-macrodef-debug,-init-macrodef-java,-init-presetdef-jar" name="init"/>
15.372 + <!--
15.373 + ===================
15.374 + COMPILATION SECTION
15.375 + ===================
15.376 + -->
15.377 + <target name="-deps-jar-init" unless="built-jar.properties">
15.378 + <property location="${build.dir}/built-jar.properties" name="built-jar.properties"/>
15.379 + <delete file="${built-jar.properties}" quiet="true"/>
15.380 + </target>
15.381 + <target if="already.built.jar.${basedir}" name="-warn-already-built-jar">
15.382 + <echo level="warn" message="Cycle detected: nekurak.net-lib was already built"/>
15.383 + </target>
15.384 + <target depends="init,-deps-jar-init" name="deps-jar" unless="no.deps">
15.385 + <mkdir dir="${build.dir}"/>
15.386 + <touch file="${built-jar.properties}" verbose="false"/>
15.387 + <property file="${built-jar.properties}" prefix="already.built.jar."/>
15.388 + <antcall target="-warn-already-built-jar"/>
15.389 + <propertyfile file="${built-jar.properties}">
15.390 + <entry key="${basedir}" value=""/>
15.391 + </propertyfile>
15.392 + </target>
15.393 + <target depends="init,-check-automatic-build,-clean-after-automatic-build" name="-verify-automatic-build"/>
15.394 + <target depends="init" name="-check-automatic-build">
15.395 + <available file="${build.classes.dir}/.netbeans_automatic_build" property="netbeans.automatic.build"/>
15.396 + </target>
15.397 + <target depends="init" if="netbeans.automatic.build" name="-clean-after-automatic-build">
15.398 + <antcall target="clean"/>
15.399 + </target>
15.400 + <target depends="init,deps-jar" name="-pre-pre-compile">
15.401 + <mkdir dir="${build.classes.dir}"/>
15.402 + </target>
15.403 + <target name="-pre-compile">
15.404 + <!-- Empty placeholder for easier customization. -->
15.405 + <!-- You can override this target in the ../build.xml file. -->
15.406 + </target>
15.407 + <target if="do.depend.true" name="-compile-depend">
15.408 + <pathconvert property="build.generated.subdirs">
15.409 + <dirset dir="${build.generated.sources.dir}" erroronmissingdir="false">
15.410 + <include name="*"/>
15.411 + </dirset>
15.412 + </pathconvert>
15.413 + <j2seproject3:depend srcdir="${src.dir}:${build.generated.subdirs}"/>
15.414 + </target>
15.415 + <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-compile-depend" if="have.sources" name="-do-compile">
15.416 + <j2seproject3:javac gensrcdir="${build.generated.sources.dir}"/>
15.417 + <copy todir="${build.classes.dir}">
15.418 + <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
15.419 + </copy>
15.420 + </target>
15.421 + <target name="-post-compile">
15.422 + <!-- Empty placeholder for easier customization. -->
15.423 + <!-- You can override this target in the ../build.xml file. -->
15.424 + </target>
15.425 + <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
15.426 + <target name="-pre-compile-single">
15.427 + <!-- Empty placeholder for easier customization. -->
15.428 + <!-- You can override this target in the ../build.xml file. -->
15.429 + </target>
15.430 + <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
15.431 + <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
15.432 + <j2seproject3:force-recompile/>
15.433 + <j2seproject3:javac excludes="" gensrcdir="${build.generated.sources.dir}" includes="${javac.includes}" sourcepath="${src.dir}"/>
15.434 + </target>
15.435 + <target name="-post-compile-single">
15.436 + <!-- Empty placeholder for easier customization. -->
15.437 + <!-- You can override this target in the ../build.xml file. -->
15.438 + </target>
15.439 + <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
15.440 + <!--
15.441 + ====================
15.442 + JAR BUILDING SECTION
15.443 + ====================
15.444 + -->
15.445 + <target depends="init" name="-pre-pre-jar">
15.446 + <dirname file="${dist.jar}" property="dist.jar.dir"/>
15.447 + <mkdir dir="${dist.jar.dir}"/>
15.448 + </target>
15.449 + <target name="-pre-jar">
15.450 + <!-- Empty placeholder for easier customization. -->
15.451 + <!-- You can override this target in the ../build.xml file. -->
15.452 + </target>
15.453 + <target depends="init,compile,-pre-pre-jar,-pre-jar" name="-do-jar-without-manifest" unless="manifest.available-mkdist.available">
15.454 + <j2seproject1:jar/>
15.455 + </target>
15.456 + <target depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available" name="-do-jar-with-manifest" unless="manifest.available+main.class-mkdist.available">
15.457 + <j2seproject1:jar manifest="${manifest.file}"/>
15.458 + </target>
15.459 + <target depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available+main.class" name="-do-jar-with-mainclass" unless="manifest.available+main.class+mkdist.available">
15.460 + <j2seproject1:jar manifest="${manifest.file}">
15.461 + <j2seproject1:manifest>
15.462 + <j2seproject1:attribute name="Main-Class" value="${main.class}"/>
15.463 + </j2seproject1:manifest>
15.464 + </j2seproject1:jar>
15.465 + <echo>To run this application from the command line without Ant, try:</echo>
15.466 + <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
15.467 + <property location="${dist.jar}" name="dist.jar.resolved"/>
15.468 + <pathconvert property="run.classpath.with.dist.jar">
15.469 + <path path="${run.classpath}"/>
15.470 + <map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/>
15.471 + </pathconvert>
15.472 + <echo>java -cp "${run.classpath.with.dist.jar}" ${main.class}</echo>
15.473 + </target>
15.474 + <target depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available+main.class+mkdist.available" name="-do-jar-with-libraries">
15.475 + <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
15.476 + <pathconvert property="run.classpath.without.build.classes.dir">
15.477 + <path path="${run.classpath}"/>
15.478 + <map from="${build.classes.dir.resolved}" to=""/>
15.479 + </pathconvert>
15.480 + <pathconvert pathsep=" " property="jar.classpath">
15.481 + <path path="${run.classpath.without.build.classes.dir}"/>
15.482 + <chainedmapper>
15.483 + <flattenmapper/>
15.484 + <globmapper from="*" to="lib/*"/>
15.485 + </chainedmapper>
15.486 + </pathconvert>
15.487 + <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>
15.488 + <copylibs compress="${jar.compress}" jarfile="${dist.jar}" manifest="${manifest.file}" runtimeclasspath="${run.classpath.without.build.classes.dir}">
15.489 + <fileset dir="${build.classes.dir}"/>
15.490 + <manifest>
15.491 + <attribute name="Main-Class" value="${main.class}"/>
15.492 + <attribute name="Class-Path" value="${jar.classpath}"/>
15.493 + </manifest>
15.494 + </copylibs>
15.495 + <echo>To run this application from the command line without Ant, try:</echo>
15.496 + <property location="${dist.jar}" name="dist.jar.resolved"/>
15.497 + <echo>java -jar "${dist.jar.resolved}"</echo>
15.498 + </target>
15.499 + <target depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available+mkdist.available" name="-do-jar-with-libraries-without-mainclass" unless="main.class.available">
15.500 + <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
15.501 + <pathconvert property="run.classpath.without.build.classes.dir">
15.502 + <path path="${run.classpath}"/>
15.503 + <map from="${build.classes.dir.resolved}" to=""/>
15.504 + </pathconvert>
15.505 + <pathconvert pathsep=" " property="jar.classpath">
15.506 + <path path="${run.classpath.without.build.classes.dir}"/>
15.507 + <chainedmapper>
15.508 + <flattenmapper/>
15.509 + <globmapper from="*" to="lib/*"/>
15.510 + </chainedmapper>
15.511 + </pathconvert>
15.512 + <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>
15.513 + <copylibs compress="${jar.compress}" jarfile="${dist.jar}" manifest="${manifest.file}" runtimeclasspath="${run.classpath.without.build.classes.dir}">
15.514 + <fileset dir="${build.classes.dir}"/>
15.515 + <manifest>
15.516 + <attribute name="Class-Path" value="${jar.classpath}"/>
15.517 + </manifest>
15.518 + </copylibs>
15.519 + </target>
15.520 + <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.mkdist" name="-do-jar-with-libraries-without-manifest" unless="manifest.available">
15.521 + <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
15.522 + <pathconvert property="run.classpath.without.build.classes.dir">
15.523 + <path path="${run.classpath}"/>
15.524 + <map from="${build.classes.dir.resolved}" to=""/>
15.525 + </pathconvert>
15.526 + <pathconvert pathsep=" " property="jar.classpath">
15.527 + <path path="${run.classpath.without.build.classes.dir}"/>
15.528 + <chainedmapper>
15.529 + <flattenmapper/>
15.530 + <globmapper from="*" to="lib/*"/>
15.531 + </chainedmapper>
15.532 + </pathconvert>
15.533 + <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>
15.534 + <copylibs compress="${jar.compress}" jarfile="${dist.jar}" runtimeclasspath="${run.classpath.without.build.classes.dir}">
15.535 + <fileset dir="${build.classes.dir}"/>
15.536 + <manifest>
15.537 + <attribute name="Class-Path" value="${jar.classpath}"/>
15.538 + </manifest>
15.539 + </copylibs>
15.540 + </target>
15.541 + <target name="-post-jar">
15.542 + <!-- Empty placeholder for easier customization. -->
15.543 + <!-- You can override this target in the ../build.xml file. -->
15.544 + </target>
15.545 + <target depends="init,compile,-pre-jar,-do-jar-with-manifest,-do-jar-without-manifest,-do-jar-with-mainclass,-do-jar-with-libraries,-do-jar-with-libraries-without-mainclass,-do-jar-with-libraries-without-manifest,-post-jar" description="Build JAR." name="jar"/>
15.546 + <!--
15.547 + =================
15.548 + EXECUTION SECTION
15.549 + =================
15.550 + -->
15.551 + <target depends="init,compile" description="Run a main class." name="run">
15.552 + <j2seproject1:java>
15.553 + <customize>
15.554 + <arg line="${application.args}"/>
15.555 + </customize>
15.556 + </j2seproject1:java>
15.557 + </target>
15.558 + <target name="-do-not-recompile">
15.559 + <property name="javac.includes.binary" value=""/>
15.560 + </target>
15.561 + <target depends="init,compile-single" name="run-single">
15.562 + <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
15.563 + <j2seproject1:java classname="${run.class}"/>
15.564 + </target>
15.565 + <target depends="init,compile-test-single" name="run-test-with-main">
15.566 + <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
15.567 + <j2seproject1:java classname="${run.class}" classpath="${run.test.classpath}"/>
15.568 + </target>
15.569 + <!--
15.570 + =================
15.571 + DEBUGGING SECTION
15.572 + =================
15.573 + -->
15.574 + <target depends="init" if="netbeans.home" name="-debug-start-debugger">
15.575 + <j2seproject1:nbjpdastart name="${debug.class}"/>
15.576 + </target>
15.577 + <target depends="init" if="netbeans.home" name="-debug-start-debugger-main-test">
15.578 + <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${debug.class}"/>
15.579 + </target>
15.580 + <target depends="init,compile" name="-debug-start-debuggee">
15.581 + <j2seproject3:debug>
15.582 + <customize>
15.583 + <arg line="${application.args}"/>
15.584 + </customize>
15.585 + </j2seproject3:debug>
15.586 + </target>
15.587 + <target depends="init,compile,-debug-start-debugger,-debug-start-debuggee" description="Debug project in IDE." if="netbeans.home" name="debug"/>
15.588 + <target depends="init" if="netbeans.home" name="-debug-start-debugger-stepinto">
15.589 + <j2seproject1:nbjpdastart stopclassname="${main.class}"/>
15.590 + </target>
15.591 + <target depends="init,compile,-debug-start-debugger-stepinto,-debug-start-debuggee" if="netbeans.home" name="debug-stepinto"/>
15.592 + <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
15.593 + <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
15.594 + <j2seproject3:debug classname="${debug.class}"/>
15.595 + </target>
15.596 + <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single"/>
15.597 + <target depends="init,compile-test-single" if="netbeans.home" name="-debug-start-debuggee-main-test">
15.598 + <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
15.599 + <j2seproject3:debug classname="${debug.class}" classpath="${debug.test.classpath}"/>
15.600 + </target>
15.601 + <target depends="init,compile-test-single,-debug-start-debugger-main-test,-debug-start-debuggee-main-test" if="netbeans.home" name="debug-test-with-main"/>
15.602 + <target depends="init" name="-pre-debug-fix">
15.603 + <fail unless="fix.includes">Must set fix.includes</fail>
15.604 + <property name="javac.includes" value="${fix.includes}.java"/>
15.605 + </target>
15.606 + <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
15.607 + <j2seproject1:nbjpdareload/>
15.608 + </target>
15.609 + <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
15.610 + <!--
15.611 + ===============
15.612 + JAVADOC SECTION
15.613 + ===============
15.614 + -->
15.615 + <target depends="init" name="-javadoc-build">
15.616 + <mkdir dir="${dist.javadoc.dir}"/>
15.617 + <javadoc additionalparam="${javadoc.additionalparam}" author="${javadoc.author}" charset="UTF-8" destdir="${dist.javadoc.dir}" docencoding="UTF-8" encoding="${javadoc.encoding.used}" failonerror="true" noindex="${javadoc.noindex}" nonavbar="${javadoc.nonavbar}" notree="${javadoc.notree}" private="${javadoc.private}" source="${javac.source}" splitindex="${javadoc.splitindex}" use="${javadoc.use}" useexternalfile="true" version="${javadoc.version}" windowtitle="${javadoc.windowtitle}">
15.618 + <classpath>
15.619 + <path path="${javac.classpath}"/>
15.620 + </classpath>
15.621 + <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
15.622 + <filename name="**/*.java"/>
15.623 + </fileset>
15.624 + <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
15.625 + <include name="**/*.java"/>
15.626 + </fileset>
15.627 + </javadoc>
15.628 + </target>
15.629 + <target depends="init,-javadoc-build" if="netbeans.home" name="-javadoc-browse" unless="no.javadoc.preview">
15.630 + <nbbrowse file="${dist.javadoc.dir}/index.html"/>
15.631 + </target>
15.632 + <target depends="init,-javadoc-build,-javadoc-browse" description="Build Javadoc." name="javadoc"/>
15.633 + <!--
15.634 + =========================
15.635 + JUNIT COMPILATION SECTION
15.636 + =========================
15.637 + -->
15.638 + <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
15.639 + <mkdir dir="${build.test.classes.dir}"/>
15.640 + </target>
15.641 + <target name="-pre-compile-test">
15.642 + <!-- Empty placeholder for easier customization. -->
15.643 + <!-- You can override this target in the ../build.xml file. -->
15.644 + </target>
15.645 + <target if="do.depend.true" name="-compile-test-depend">
15.646 + <j2seproject3:depend classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
15.647 + </target>
15.648 + <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-compile-test-depend" if="have.tests" name="-do-compile-test">
15.649 + <j2seproject3:javac classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
15.650 + <copy todir="${build.test.classes.dir}">
15.651 + <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
15.652 + </copy>
15.653 + </target>
15.654 + <target name="-post-compile-test">
15.655 + <!-- Empty placeholder for easier customization. -->
15.656 + <!-- You can override this target in the ../build.xml file. -->
15.657 + </target>
15.658 + <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
15.659 + <target name="-pre-compile-test-single">
15.660 + <!-- Empty placeholder for easier customization. -->
15.661 + <!-- You can override this target in the ../build.xml file. -->
15.662 + </target>
15.663 + <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
15.664 + <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
15.665 + <j2seproject3:force-recompile destdir="${build.test.classes.dir}"/>
15.666 + <j2seproject3:javac classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" excludes="" includes="${javac.includes}" sourcepath="${test.src.dir}" srcdir="${test.src.dir}"/>
15.667 + <copy todir="${build.test.classes.dir}">
15.668 + <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
15.669 + </copy>
15.670 + </target>
15.671 + <target name="-post-compile-test-single">
15.672 + <!-- Empty placeholder for easier customization. -->
15.673 + <!-- You can override this target in the ../build.xml file. -->
15.674 + </target>
15.675 + <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/>
15.676 + <!--
15.677 + =======================
15.678 + JUNIT EXECUTION SECTION
15.679 + =======================
15.680 + -->
15.681 + <target depends="init" if="have.tests" name="-pre-test-run">
15.682 + <mkdir dir="${build.test.results.dir}"/>
15.683 + </target>
15.684 + <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
15.685 + <j2seproject3:junit testincludes="**/*Test.java"/>
15.686 + </target>
15.687 + <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
15.688 + <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
15.689 + </target>
15.690 + <target depends="init" if="have.tests" name="test-report"/>
15.691 + <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
15.692 + <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/>
15.693 + <target depends="init" if="have.tests" name="-pre-test-run-single">
15.694 + <mkdir dir="${build.test.results.dir}"/>
15.695 + </target>
15.696 + <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
15.697 + <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
15.698 + <j2seproject3:junit excludes="" includes="${test.includes}"/>
15.699 + </target>
15.700 + <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
15.701 + <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
15.702 + </target>
15.703 + <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single,-post-test-run-single" description="Run single unit test." name="test-single"/>
15.704 + <!--
15.705 + =======================
15.706 + JUNIT DEBUGGING SECTION
15.707 + =======================
15.708 + -->
15.709 + <target depends="init,compile-test" if="have.tests" name="-debug-start-debuggee-test">
15.710 + <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
15.711 + <property location="${build.test.results.dir}/TEST-${test.class}.xml" name="test.report.file"/>
15.712 + <delete file="${test.report.file}"/>
15.713 + <mkdir dir="${build.test.results.dir}"/>
15.714 + <j2seproject3:debug classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner" classpath="${ant.home}/lib/ant.jar:${ant.home}/lib/ant-junit.jar:${debug.test.classpath}">
15.715 + <customize>
15.716 + <syspropertyset>
15.717 + <propertyref prefix="test-sys-prop."/>
15.718 + <mapper from="test-sys-prop.*" to="*" type="glob"/>
15.719 + </syspropertyset>
15.720 + <arg value="${test.class}"/>
15.721 + <arg value="showoutput=true"/>
15.722 + <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter"/>
15.723 + <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,${test.report.file}"/>
15.724 + </customize>
15.725 + </j2seproject3:debug>
15.726 + </target>
15.727 + <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
15.728 + <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
15.729 + </target>
15.730 + <target depends="init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
15.731 + <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
15.732 + <j2seproject1:nbjpdareload dir="${build.test.classes.dir}"/>
15.733 + </target>
15.734 + <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
15.735 + <!--
15.736 + =========================
15.737 + APPLET EXECUTION SECTION
15.738 + =========================
15.739 + -->
15.740 + <target depends="init,compile-single" name="run-applet">
15.741 + <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
15.742 + <j2seproject1:java classname="sun.applet.AppletViewer">
15.743 + <customize>
15.744 + <arg value="${applet.url}"/>
15.745 + </customize>
15.746 + </j2seproject1:java>
15.747 + </target>
15.748 + <!--
15.749 + =========================
15.750 + APPLET DEBUGGING SECTION
15.751 + =========================
15.752 + -->
15.753 + <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-applet">
15.754 + <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
15.755 + <j2seproject3:debug classname="sun.applet.AppletViewer">
15.756 + <customize>
15.757 + <arg value="${applet.url}"/>
15.758 + </customize>
15.759 + </j2seproject3:debug>
15.760 + </target>
15.761 + <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-applet" if="netbeans.home" name="debug-applet"/>
15.762 + <!--
15.763 + ===============
15.764 + CLEANUP SECTION
15.765 + ===============
15.766 + -->
15.767 + <target name="-deps-clean-init" unless="built-clean.properties">
15.768 + <property location="${build.dir}/built-clean.properties" name="built-clean.properties"/>
15.769 + <delete file="${built-clean.properties}" quiet="true"/>
15.770 + </target>
15.771 + <target if="already.built.clean.${basedir}" name="-warn-already-built-clean">
15.772 + <echo level="warn" message="Cycle detected: nekurak.net-lib was already built"/>
15.773 + </target>
15.774 + <target depends="init,-deps-clean-init" name="deps-clean" unless="no.deps">
15.775 + <mkdir dir="${build.dir}"/>
15.776 + <touch file="${built-clean.properties}" verbose="false"/>
15.777 + <property file="${built-clean.properties}" prefix="already.built.clean."/>
15.778 + <antcall target="-warn-already-built-clean"/>
15.779 + <propertyfile file="${built-clean.properties}">
15.780 + <entry key="${basedir}" value=""/>
15.781 + </propertyfile>
15.782 + </target>
15.783 + <target depends="init" name="-do-clean">
15.784 + <delete dir="${build.dir}"/>
15.785 + <delete dir="${dist.dir}" followsymlinks="false" includeemptydirs="true"/>
15.786 + </target>
15.787 + <target name="-post-clean">
15.788 + <!-- Empty placeholder for easier customization. -->
15.789 + <!-- You can override this target in the ../build.xml file. -->
15.790 + </target>
15.791 + <target depends="init,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/>
15.792 + <target name="-check-call-dep">
15.793 + <property file="${call.built.properties}" prefix="already.built."/>
15.794 + <condition property="should.call.dep">
15.795 + <not>
15.796 + <isset property="already.built.${call.subproject}"/>
15.797 + </not>
15.798 + </condition>
15.799 + </target>
15.800 + <target depends="-check-call-dep" if="should.call.dep" name="-maybe-call-dep">
15.801 + <ant antfile="${call.script}" inheritall="false" target="${call.target}">
15.802 + <propertyset>
15.803 + <propertyref prefix="transfer."/>
15.804 + <mapper from="transfer.*" to="*" type="glob"/>
15.805 + </propertyset>
15.806 + </ant>
15.807 + </target>
15.808 +</project>
16.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
16.2 +++ b/java/nekurak.net-lib/nbproject/genfiles.properties Thu Feb 11 08:52:50 2010 +0100
16.3 @@ -0,0 +1,8 @@
16.4 +build.xml.data.CRC32=11ce77af
16.5 +build.xml.script.CRC32=f10c3672
16.6 +build.xml.stylesheet.CRC32=958a1d3e@1.32.1.45
16.7 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
16.8 +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
16.9 +nbproject/build-impl.xml.data.CRC32=11ce77af
16.10 +nbproject/build-impl.xml.script.CRC32=4e6301c4
16.11 +nbproject/build-impl.xml.stylesheet.CRC32=576378a2@1.32.1.45
17.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
17.2 +++ b/java/nekurak.net-lib/nbproject/project.properties Thu Feb 11 08:52:50 2010 +0100
17.3 @@ -0,0 +1,61 @@
17.4 +build.classes.dir=${build.dir}/classes
17.5 +build.classes.excludes=**/*.java,**/*.form
17.6 +# This directory is removed when the project is cleaned:
17.7 +build.dir=build
17.8 +build.generated.dir=${build.dir}/generated
17.9 +build.generated.sources.dir=${build.dir}/generated-sources
17.10 +# Only compile against the classpath explicitly listed here:
17.11 +build.sysclasspath=ignore
17.12 +build.test.classes.dir=${build.dir}/test/classes
17.13 +build.test.results.dir=${build.dir}/test/results
17.14 +# Uncomment to specify the preferred debugger connection transport:
17.15 +#debug.transport=dt_socket
17.16 +debug.classpath=\
17.17 + ${run.classpath}
17.18 +debug.test.classpath=\
17.19 + ${run.test.classpath}
17.20 +# This directory is removed when the project is cleaned:
17.21 +dist.dir=dist
17.22 +dist.jar=${dist.dir}/nekurak.net-lib.jar
17.23 +dist.javadoc.dir=${dist.dir}/javadoc
17.24 +excludes=
17.25 +includes=**
17.26 +jar.compress=false
17.27 +javac.classpath=\
17.28 + ${libs.javaee-api-6.0.classpath}
17.29 +# Space-separated list of extra javac options
17.30 +javac.compilerargs=
17.31 +javac.deprecation=false
17.32 +javac.source=1.5
17.33 +javac.target=1.5
17.34 +javac.test.classpath=\
17.35 + ${javac.classpath}:\
17.36 + ${build.classes.dir}:\
17.37 + ${libs.junit.classpath}:\
17.38 + ${libs.junit_4.classpath}
17.39 +javadoc.additionalparam=
17.40 +javadoc.author=false
17.41 +javadoc.encoding=${source.encoding}
17.42 +javadoc.noindex=false
17.43 +javadoc.nonavbar=false
17.44 +javadoc.notree=false
17.45 +javadoc.private=false
17.46 +javadoc.splitindex=true
17.47 +javadoc.use=true
17.48 +javadoc.version=false
17.49 +javadoc.windowtitle=
17.50 +meta.inf.dir=${src.dir}/META-INF
17.51 +platform.active=default_platform
17.52 +run.classpath=\
17.53 + ${javac.classpath}:\
17.54 + ${build.classes.dir}
17.55 +# Space-separated list of JVM arguments used when running the project
17.56 +# (you may also define separate properties like run-sys-prop.name=value instead of -Dname=value
17.57 +# or test-sys-prop.name=value to set system properties for unit tests):
17.58 +run.jvmargs=
17.59 +run.test.classpath=\
17.60 + ${javac.test.classpath}:\
17.61 + ${build.test.classes.dir}
17.62 +source.encoding=UTF-8
17.63 +src.dir=src
17.64 +test.src.dir=test
18.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
18.2 +++ b/java/nekurak.net-lib/nbproject/project.xml Thu Feb 11 08:52:50 2010 +0100
18.3 @@ -0,0 +1,15 @@
18.4 +<?xml version="1.0" encoding="UTF-8"?>
18.5 +<project xmlns="http://www.netbeans.org/ns/project/1">
18.6 + <type>org.netbeans.modules.java.j2seproject</type>
18.7 + <configuration>
18.8 + <data xmlns="http://www.netbeans.org/ns/j2se-project/3">
18.9 + <name>nekurak.net-lib</name>
18.10 + <source-roots>
18.11 + <root id="src.dir"/>
18.12 + </source-roots>
18.13 + <test-roots>
18.14 + <root id="test.src.dir"/>
18.15 + </test-roots>
18.16 + </data>
18.17 + </configuration>
18.18 +</project>
19.1 --- a/java/nekurak.net-web/nbproject/build-impl.xml Thu Feb 11 03:13:57 2010 +0100
19.2 +++ b/java/nekurak.net-web/nbproject/build-impl.xml Thu Feb 11 08:52:50 2010 +0100
19.3 @@ -390,8 +390,16 @@
19.4 <!--
19.5 COMPILATION SECTION
19.6 -->
19.7 - <target depends="init" if="no.dist.ear.dir" name="deps-module-jar" unless="no.deps"/>
19.8 - <target depends="init" if="dist.ear.dir" name="deps-ear-jar" unless="no.deps"/>
19.9 + <target depends="init" if="no.dist.ear.dir" name="deps-module-jar" unless="no.deps">
19.10 + <ant antfile="${project.nekurak_net-lib}/build.xml" inheritall="false" target="jar">
19.11 + <property name="deploy.on.save" value="false"/>
19.12 + </ant>
19.13 + </target>
19.14 + <target depends="init" if="dist.ear.dir" name="deps-ear-jar" unless="no.deps">
19.15 + <ant antfile="${project.nekurak_net-lib}/build.xml" inheritall="false" target="jar">
19.16 + <property name="deploy.on.save" value="false"/>
19.17 + </ant>
19.18 + </target>
19.19 <target depends="init, deps-module-jar, deps-ear-jar" name="deps-jar" unless="no.deps"/>
19.20 <target depends="init,deps-jar" name="-pre-pre-compile">
19.21 <mkdir dir="${build.classes.dir}"/>
19.22 @@ -528,11 +536,13 @@
19.23 <target depends="init,compile,compile-jsps,-pre-dist,-do-dist-with-manifest,-do-dist-without-manifest" name="do-dist"/>
19.24 <target depends="init" if="dist.ear.dir" name="library-inclusion-in-manifest">
19.25 <copyfiles files="${libs.spring-framework.classpath}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
19.26 + <copyfiles files="${reference.nekurak_net-lib.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
19.27 <mkdir dir="${build.web.dir}/META-INF"/>
19.28 <manifest file="${build.web.dir}/META-INF/MANIFEST.MF" mode="update"/>
19.29 </target>
19.30 <target depends="init" name="library-inclusion-in-archive" unless="dist.ear.dir">
19.31 <copyfiles files="${libs.spring-framework.classpath}" todir="${build.web.dir}/WEB-INF/lib"/>
19.32 + <copyfiles files="${reference.nekurak_net-lib.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
19.33 </target>
19.34 <target depends="init" if="dist.ear.dir" name="-clean-webinf-lib">
19.35 <delete dir="${build.web.dir}/WEB-INF/lib"/>
19.36 @@ -829,7 +839,9 @@
19.37
19.38 CLEANUP SECTION
19.39 -->
19.40 - <target depends="init" if="no.dist.ear.dir" name="deps-clean" unless="no.deps"/>
19.41 + <target depends="init" if="no.dist.ear.dir" name="deps-clean" unless="no.deps">
19.42 + <ant antfile="${project.nekurak_net-lib}/build.xml" inheritall="false" target="clean"/>
19.43 + </target>
19.44 <target depends="init" name="do-clean">
19.45 <condition property="build.dir.to.clean" value="${build.web.dir}">
19.46 <isset property="dist.ear.dir"/>
20.1 --- a/java/nekurak.net-web/nbproject/genfiles.properties Thu Feb 11 03:13:57 2010 +0100
20.2 +++ b/java/nekurak.net-web/nbproject/genfiles.properties Thu Feb 11 08:52:50 2010 +0100
20.3 @@ -1,8 +1,8 @@
20.4 -build.xml.data.CRC32=e61550c0
20.5 +build.xml.data.CRC32=017e6ccf
20.6 build.xml.script.CRC32=d97fcc7d
20.7 build.xml.stylesheet.CRC32=c0ebde35@1.21.2.1
20.8 # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
20.9 # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
20.10 -nbproject/build-impl.xml.data.CRC32=e61550c0
20.11 -nbproject/build-impl.xml.script.CRC32=78de9ffb
20.12 +nbproject/build-impl.xml.data.CRC32=017e6ccf
20.13 +nbproject/build-impl.xml.script.CRC32=c30cc1f7
20.14 nbproject/build-impl.xml.stylesheet.CRC32=b139b33b@1.21.2.1
21.1 --- a/java/nekurak.net-web/nbproject/project.properties Thu Feb 11 03:13:57 2010 +0100
21.2 +++ b/java/nekurak.net-web/nbproject/project.properties Thu Feb 11 08:52:50 2010 +0100
21.3 @@ -26,7 +26,8 @@
21.4 j2ee.server.type=gfv3ee6
21.5 jar.compress=false
21.6 javac.classpath=\
21.7 - ${libs.spring-framework.classpath}
21.8 + ${libs.spring-framework.classpath}:\
21.9 + ${reference.nekurak_net-lib.jar}
21.10 # Space-separated list of extra javac options
21.11 javac.compilerargs=
21.12 javac.debug=true
21.13 @@ -55,6 +56,8 @@
21.14 lib.dir=${web.docbase.dir}/WEB-INF/lib
21.15 persistence.xml.dir=${conf.dir}
21.16 platform.active=default_platform
21.17 +project.nekurak_net-lib=../nekurak.net-lib
21.18 +reference.nekurak_net-lib.jar=${project.nekurak_net-lib}/dist/nekurak.net-lib.jar
21.19 resource.dir=setup
21.20 run.test.classpath=\
21.21 ${javac.test.classpath}:\
22.1 --- a/java/nekurak.net-web/nbproject/project.xml Thu Feb 11 03:13:57 2010 +0100
22.2 +++ b/java/nekurak.net-web/nbproject/project.xml Thu Feb 11 08:52:50 2010 +0100
22.3 @@ -10,6 +10,10 @@
22.4 <file>${libs.spring-framework.classpath}</file>
22.5 <path-in-war>WEB-INF/lib</path-in-war>
22.6 </library>
22.7 + <library dirs="200">
22.8 + <file>${reference.nekurak_net-lib.jar}</file>
22.9 + <path-in-war>WEB-INF/lib</path-in-war>
22.10 + </library>
22.11 </web-module-libraries>
22.12 <web-module-additional-libraries/>
22.13 <source-roots>
22.14 @@ -19,5 +23,15 @@
22.15 <root id="test.src.dir"/>
22.16 </test-roots>
22.17 </data>
22.18 + <references xmlns="http://www.netbeans.org/ns/ant-project-references/1">
22.19 + <reference>
22.20 + <foreign-project>nekurak_net-lib</foreign-project>
22.21 + <artifact-type>jar</artifact-type>
22.22 + <script>build.xml</script>
22.23 + <target>jar</target>
22.24 + <clean-target>clean</clean-target>
22.25 + <id>jar</id>
22.26 + </reference>
22.27 + </references>
22.28 </configuration>
22.29 </project>
23.1 --- a/java/nekurak.net-web/src/java/cz/frantovo/nekurak/dao/NekurakSuperDAO.java Thu Feb 11 03:13:57 2010 +0100
23.2 +++ b/java/nekurak.net-web/src/java/cz/frantovo/nekurak/dao/NekurakSuperDAO.java Thu Feb 11 08:52:50 2010 +0100
23.3 @@ -1,8 +1,6 @@
23.4 package cz.frantovo.nekurak.dao;
23.5
23.6 import cz.frantovo.superDAO.SuperDAO;
23.7 -import java.sql.Connection;
23.8 -import java.sql.SQLException;
23.9 import java.util.logging.Level;
23.10 import javax.naming.InitialContext;
23.11 import javax.naming.NamingException;