1.1 --- a/.hgignore Wed Jun 29 16:33:37 2011 +0200
1.2 +++ b/.hgignore Thu Jun 30 13:54:51 2011 +0200
1.3 @@ -21,3 +21,5 @@
1.4 ^server/hudson/data/compiler/.*.jar$
1.5 ^server/hudson/data/compiler/indexer/*$
1.6 ^server/hudson/data/compiler/hints$
1.7 +^remoting/server/tests/cache$
1.8 +^remoting/server/tests/results$
2.1 --- a/hudson/trunk Wed Jun 29 16:33:37 2011 +0200
2.2 +++ b/hudson/trunk Thu Jun 30 13:54:51 2011 +0200
2.3 @@ -38,6 +38,7 @@
2.4 (cd borrowedtests; call_ant clean && call_ant) || exit
2.5 call_ant copy-from-platform
2.6 (cd remoting; ./build-indexing-backend -Dnbplatform.default.harness.dir=$PLATFORM/harness -Dnbplatform.default.netbeans.dest.dir=$PLATFORM -Dnbplatform.active.dir=$PLATFORM) || exit 1
2.7 +(cd remoting/server/tests; ./run-declarative-tests -Dnbplatform.default.harness.dir=$PLATFORM/harness -Dnbplatform.default.netbeans.dest.dir=$PLATFORM -Dnbplatform.active.dir=$PLATFORM) || exit 1
2.8 call_ant clean || exit
2.9 call_ant build || exit
2.10 #call_ant coverage-report || exit
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
3.2 +++ b/remoting/server/tests/data/group1/prj1/build.xml Thu Jun 30 13:54:51 2011 +0200
3.3 @@ -0,0 +1,74 @@
3.4 +<?xml version="1.0" encoding="UTF-8"?>
3.5 +<!-- You may freely edit this file. See commented blocks below for -->
3.6 +<!-- some examples of how to customize the build. -->
3.7 +<!-- (If you delete it and reopen the project it will be recreated.) -->
3.8 +<!-- By default, only the Clean and Build commands use this build script. -->
3.9 +<!-- Commands such as Run, Debug, and Test only use this build script if -->
3.10 +<!-- the Compile on Save feature is turned off for the project. -->
3.11 +<!-- You can turn off the Compile on Save (or Deploy on Save) setting -->
3.12 +<!-- in the project's Project Properties dialog box.-->
3.13 +<project name="prj1" default="default" basedir=".">
3.14 + <description>Builds, tests, and runs the project prj1.</description>
3.15 + <import file="nbproject/build-impl.xml"/>
3.16 + <!--
3.17 +
3.18 + There exist several targets which are by default empty and which can be
3.19 + used for execution of your tasks. These targets are usually executed
3.20 + before and after some main targets. They are:
3.21 +
3.22 + -pre-init: called before initialization of project properties
3.23 + -post-init: called after initialization of project properties
3.24 + -pre-compile: called before javac compilation
3.25 + -post-compile: called after javac compilation
3.26 + -pre-compile-single: called before javac compilation of single file
3.27 + -post-compile-single: called after javac compilation of single file
3.28 + -pre-compile-test: called before javac compilation of JUnit tests
3.29 + -post-compile-test: called after javac compilation of JUnit tests
3.30 + -pre-compile-test-single: called before javac compilation of single JUnit test
3.31 + -post-compile-test-single: called after javac compilation of single JUunit test
3.32 + -pre-jar: called before JAR building
3.33 + -post-jar: called after JAR building
3.34 + -post-clean: called after cleaning build products
3.35 +
3.36 + (Targets beginning with '-' are not intended to be called on their own.)
3.37 +
3.38 + Example of inserting an obfuscator after compilation could look like this:
3.39 +
3.40 + <target name="-post-compile">
3.41 + <obfuscate>
3.42 + <fileset dir="${build.classes.dir}"/>
3.43 + </obfuscate>
3.44 + </target>
3.45 +
3.46 + For list of available properties check the imported
3.47 + nbproject/build-impl.xml file.
3.48 +
3.49 +
3.50 + Another way to customize the build is by overriding existing main targets.
3.51 + The targets of interest are:
3.52 +
3.53 + -init-macrodef-javac: defines macro for javac compilation
3.54 + -init-macrodef-junit: defines macro for junit execution
3.55 + -init-macrodef-debug: defines macro for class debugging
3.56 + -init-macrodef-java: defines macro for class execution
3.57 + -do-jar-with-manifest: JAR building (if you are using a manifest)
3.58 + -do-jar-without-manifest: JAR building (if you are not using a manifest)
3.59 + run: execution of project
3.60 + -javadoc-build: Javadoc generation
3.61 + test-report: JUnit report generation
3.62 +
3.63 + An example of overriding the target for project execution could look like this:
3.64 +
3.65 + <target name="run" depends="prj1-impl.jar">
3.66 + <exec dir="bin" executable="launcher.exe">
3.67 + <arg file="${dist.jar}"/>
3.68 + </exec>
3.69 + </target>
3.70 +
3.71 + Notice that the overridden target depends on the jar target and not only on
3.72 + the compile target as the regular run target does. Again, for a list of available
3.73 + properties which you can use, check the target you are overriding in the
3.74 + nbproject/build-impl.xml file.
3.75 +
3.76 + -->
3.77 +</project>
4.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
4.2 +++ b/remoting/server/tests/data/group1/prj1/manifest.mf Thu Jun 30 13:54:51 2011 +0200
4.3 @@ -0,0 +1,3 @@
4.4 +Manifest-Version: 1.0
4.5 +X-COMMENT: Main-Class will be added automatically by build
4.6 +
5.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
5.2 +++ b/remoting/server/tests/data/group1/prj1/nbproject/build-impl.xml Thu Jun 30 13:54:51 2011 +0200
5.3 @@ -0,0 +1,1043 @@
5.4 +<?xml version="1.0" encoding="UTF-8"?>
5.5 +<!--
5.6 +*** GENERATED FROM project.xml - DO NOT EDIT ***
5.7 +*** EDIT ../build.xml INSTEAD ***
5.8 +
5.9 +For the purpose of easier reading the script
5.10 +is divided into following sections:
5.11 +
5.12 + - initialization
5.13 + - compilation
5.14 + - jar
5.15 + - execution
5.16 + - debugging
5.17 + - javadoc
5.18 + - junit compilation
5.19 + - junit execution
5.20 + - junit debugging
5.21 + - applet
5.22 + - cleanup
5.23 +
5.24 + -->
5.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="prj1-impl">
5.26 + <fail message="Please build using Ant 1.8.0 or higher.">
5.27 + <condition>
5.28 + <not>
5.29 + <antversion atleast="1.8.0"/>
5.30 + </not>
5.31 + </condition>
5.32 + </fail>
5.33 + <target depends="test,jar,javadoc" description="Build and test whole project." name="default"/>
5.34 + <!--
5.35 + ======================
5.36 + INITIALIZATION SECTION
5.37 + ======================
5.38 + -->
5.39 + <target name="-pre-init">
5.40 + <!-- Empty placeholder for easier customization. -->
5.41 + <!-- You can override this target in the ../build.xml file. -->
5.42 + </target>
5.43 + <target depends="-pre-init" name="-init-private">
5.44 + <property file="nbproject/private/config.properties"/>
5.45 + <property file="nbproject/private/configs/${config}.properties"/>
5.46 + <property file="nbproject/private/private.properties"/>
5.47 + </target>
5.48 + <target depends="-pre-init,-init-private" name="-init-user">
5.49 + <property file="${user.properties.file}"/>
5.50 + <!-- The two properties below are usually overridden -->
5.51 + <!-- by the active platform. Just a fallback. -->
5.52 + <property name="default.javac.source" value="1.4"/>
5.53 + <property name="default.javac.target" value="1.4"/>
5.54 + </target>
5.55 + <target depends="-pre-init,-init-private,-init-user" name="-init-project">
5.56 + <property file="nbproject/configs/${config}.properties"/>
5.57 + <property file="nbproject/project.properties"/>
5.58 + </target>
5.59 + <target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" name="-do-init">
5.60 + <available file="${manifest.file}" property="manifest.available"/>
5.61 + <condition property="splashscreen.available">
5.62 + <and>
5.63 + <not>
5.64 + <equals arg1="${application.splash}" arg2="" trim="true"/>
5.65 + </not>
5.66 + <available file="${application.splash}"/>
5.67 + </and>
5.68 + </condition>
5.69 + <condition property="main.class.available">
5.70 + <and>
5.71 + <isset property="main.class"/>
5.72 + <not>
5.73 + <equals arg1="${main.class}" arg2="" trim="true"/>
5.74 + </not>
5.75 + </and>
5.76 + </condition>
5.77 + <condition property="manifest.available+main.class">
5.78 + <and>
5.79 + <isset property="manifest.available"/>
5.80 + <isset property="main.class.available"/>
5.81 + </and>
5.82 + </condition>
5.83 + <condition property="do.archive">
5.84 + <not>
5.85 + <istrue value="${jar.archive.disabled}"/>
5.86 + </not>
5.87 + </condition>
5.88 + <condition property="do.mkdist">
5.89 + <and>
5.90 + <isset property="do.archive"/>
5.91 + <isset property="libs.CopyLibs.classpath"/>
5.92 + <not>
5.93 + <istrue value="${mkdist.disabled}"/>
5.94 + </not>
5.95 + </and>
5.96 + </condition>
5.97 + <condition property="manifest.available+main.class+mkdist.available">
5.98 + <and>
5.99 + <istrue value="${manifest.available+main.class}"/>
5.100 + <isset property="do.mkdist"/>
5.101 + </and>
5.102 + </condition>
5.103 + <condition property="do.archive+manifest.available">
5.104 + <and>
5.105 + <isset property="manifest.available"/>
5.106 + <istrue value="${do.archive}"/>
5.107 + </and>
5.108 + </condition>
5.109 + <condition property="do.archive+main.class.available">
5.110 + <and>
5.111 + <isset property="main.class.available"/>
5.112 + <istrue value="${do.archive}"/>
5.113 + </and>
5.114 + </condition>
5.115 + <condition property="do.archive+splashscreen.available">
5.116 + <and>
5.117 + <isset property="splashscreen.available"/>
5.118 + <istrue value="${do.archive}"/>
5.119 + </and>
5.120 + </condition>
5.121 + <condition property="do.archive+manifest.available+main.class">
5.122 + <and>
5.123 + <istrue value="${manifest.available+main.class}"/>
5.124 + <istrue value="${do.archive}"/>
5.125 + </and>
5.126 + </condition>
5.127 + <condition property="manifest.available-mkdist.available">
5.128 + <or>
5.129 + <istrue value="${manifest.available}"/>
5.130 + <isset property="do.mkdist"/>
5.131 + </or>
5.132 + </condition>
5.133 + <condition property="manifest.available+main.class-mkdist.available">
5.134 + <or>
5.135 + <istrue value="${manifest.available+main.class}"/>
5.136 + <isset property="do.mkdist"/>
5.137 + </or>
5.138 + </condition>
5.139 + <condition property="have.tests">
5.140 + <or>
5.141 + <available file="${test.src.dir}"/>
5.142 + </or>
5.143 + </condition>
5.144 + <condition property="have.sources">
5.145 + <or>
5.146 + <available file="${src.dir}"/>
5.147 + </or>
5.148 + </condition>
5.149 + <condition property="netbeans.home+have.tests">
5.150 + <and>
5.151 + <isset property="netbeans.home"/>
5.152 + <isset property="have.tests"/>
5.153 + </and>
5.154 + </condition>
5.155 + <condition property="no.javadoc.preview">
5.156 + <and>
5.157 + <isset property="javadoc.preview"/>
5.158 + <isfalse value="${javadoc.preview}"/>
5.159 + </and>
5.160 + </condition>
5.161 + <property name="run.jvmargs" value=""/>
5.162 + <property name="javac.compilerargs" value=""/>
5.163 + <property name="work.dir" value="${basedir}"/>
5.164 + <condition property="no.deps">
5.165 + <and>
5.166 + <istrue value="${no.dependencies}"/>
5.167 + </and>
5.168 + </condition>
5.169 + <property name="javac.debug" value="true"/>
5.170 + <property name="javadoc.preview" value="true"/>
5.171 + <property name="application.args" value=""/>
5.172 + <property name="source.encoding" value="${file.encoding}"/>
5.173 + <property name="runtime.encoding" value="${source.encoding}"/>
5.174 + <condition property="javadoc.encoding.used" value="${javadoc.encoding}">
5.175 + <and>
5.176 + <isset property="javadoc.encoding"/>
5.177 + <not>
5.178 + <equals arg1="${javadoc.encoding}" arg2=""/>
5.179 + </not>
5.180 + </and>
5.181 + </condition>
5.182 + <property name="javadoc.encoding.used" value="${source.encoding}"/>
5.183 + <property name="includes" value="**"/>
5.184 + <property name="excludes" value=""/>
5.185 + <property name="do.depend" value="false"/>
5.186 + <condition property="do.depend.true">
5.187 + <istrue value="${do.depend}"/>
5.188 + </condition>
5.189 + <path id="endorsed.classpath.path" path="${endorsed.classpath}"/>
5.190 + <condition else="" property="endorsed.classpath.cmd.line.arg" value="-Xbootclasspath/p:'${toString:endorsed.classpath.path}'">
5.191 + <length length="0" string="${endorsed.classpath}" when="greater"/>
5.192 + </condition>
5.193 + <condition else="false" property="jdkBug6558476">
5.194 + <and>
5.195 + <matches pattern="1\.[56]" string="${java.specification.version}"/>
5.196 + <not>
5.197 + <os family="unix"/>
5.198 + </not>
5.199 + </and>
5.200 + </condition>
5.201 + <property name="javac.fork" value="${jdkBug6558476}"/>
5.202 + <property name="jar.index" value="false"/>
5.203 + <property name="jar.index.metainf" value="${jar.index}"/>
5.204 + <property name="copylibs.rebase" value="true"/>
5.205 + <available file="${meta.inf.dir}/persistence.xml" property="has.persistence.xml"/>
5.206 + </target>
5.207 + <target name="-post-init">
5.208 + <!-- Empty placeholder for easier customization. -->
5.209 + <!-- You can override this target in the ../build.xml file. -->
5.210 + </target>
5.211 + <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init" name="-init-check">
5.212 + <fail unless="src.dir">Must set src.dir</fail>
5.213 + <fail unless="test.src.dir">Must set test.src.dir</fail>
5.214 + <fail unless="build.dir">Must set build.dir</fail>
5.215 + <fail unless="dist.dir">Must set dist.dir</fail>
5.216 + <fail unless="build.classes.dir">Must set build.classes.dir</fail>
5.217 + <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
5.218 + <fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail>
5.219 + <fail unless="build.test.results.dir">Must set build.test.results.dir</fail>
5.220 + <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
5.221 + <fail unless="dist.jar">Must set dist.jar</fail>
5.222 + </target>
5.223 + <target name="-init-macrodef-property">
5.224 + <macrodef name="property" uri="http://www.netbeans.org/ns/j2se-project/1">
5.225 + <attribute name="name"/>
5.226 + <attribute name="value"/>
5.227 + <sequential>
5.228 + <property name="@{name}" value="${@{value}}"/>
5.229 + </sequential>
5.230 + </macrodef>
5.231 + </target>
5.232 + <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-macrodef-javac-with-processors">
5.233 + <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
5.234 + <attribute default="${src.dir}" name="srcdir"/>
5.235 + <attribute default="${build.classes.dir}" name="destdir"/>
5.236 + <attribute default="${javac.classpath}" name="classpath"/>
5.237 + <attribute default="${javac.processorpath}" name="processorpath"/>
5.238 + <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
5.239 + <attribute default="${includes}" name="includes"/>
5.240 + <attribute default="${excludes}" name="excludes"/>
5.241 + <attribute default="${javac.debug}" name="debug"/>
5.242 + <attribute default="${empty.dir}" name="sourcepath"/>
5.243 + <attribute default="${empty.dir}" name="gensrcdir"/>
5.244 + <element name="customize" optional="true"/>
5.245 + <sequential>
5.246 + <property location="${build.dir}/empty" name="empty.dir"/>
5.247 + <mkdir dir="${empty.dir}"/>
5.248 + <mkdir dir="@{apgeneratedsrcdir}"/>
5.249 + <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}">
5.250 + <src>
5.251 + <dirset dir="@{gensrcdir}" erroronmissingdir="false">
5.252 + <include name="*"/>
5.253 + </dirset>
5.254 + </src>
5.255 + <classpath>
5.256 + <path path="@{classpath}"/>
5.257 + </classpath>
5.258 + <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
5.259 + <compilerarg line="${javac.compilerargs}"/>
5.260 + <compilerarg value="-processorpath"/>
5.261 + <compilerarg path="@{processorpath}:${empty.dir}"/>
5.262 + <compilerarg line="${ap.processors.internal}"/>
5.263 + <compilerarg line="${annotation.processing.processor.options}"/>
5.264 + <compilerarg value="-s"/>
5.265 + <compilerarg path="@{apgeneratedsrcdir}"/>
5.266 + <compilerarg line="${ap.proc.none.internal}"/>
5.267 + <customize/>
5.268 + </javac>
5.269 + </sequential>
5.270 + </macrodef>
5.271 + </target>
5.272 + <target depends="-init-ap-cmdline-properties" name="-init-macrodef-javac-without-processors" unless="ap.supported.internal">
5.273 + <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
5.274 + <attribute default="${src.dir}" name="srcdir"/>
5.275 + <attribute default="${build.classes.dir}" name="destdir"/>
5.276 + <attribute default="${javac.classpath}" name="classpath"/>
5.277 + <attribute default="${javac.processorpath}" name="processorpath"/>
5.278 + <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
5.279 + <attribute default="${includes}" name="includes"/>
5.280 + <attribute default="${excludes}" name="excludes"/>
5.281 + <attribute default="${javac.debug}" name="debug"/>
5.282 + <attribute default="${empty.dir}" name="sourcepath"/>
5.283 + <attribute default="${empty.dir}" name="gensrcdir"/>
5.284 + <element name="customize" optional="true"/>
5.285 + <sequential>
5.286 + <property location="${build.dir}/empty" name="empty.dir"/>
5.287 + <mkdir dir="${empty.dir}"/>
5.288 + <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}">
5.289 + <src>
5.290 + <dirset dir="@{gensrcdir}" erroronmissingdir="false">
5.291 + <include name="*"/>
5.292 + </dirset>
5.293 + </src>
5.294 + <classpath>
5.295 + <path path="@{classpath}"/>
5.296 + </classpath>
5.297 + <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
5.298 + <compilerarg line="${javac.compilerargs}"/>
5.299 + <customize/>
5.300 + </javac>
5.301 + </sequential>
5.302 + </macrodef>
5.303 + </target>
5.304 + <target depends="-init-macrodef-javac-with-processors,-init-macrodef-javac-without-processors" name="-init-macrodef-javac">
5.305 + <macrodef name="depend" uri="http://www.netbeans.org/ns/j2se-project/3">
5.306 + <attribute default="${src.dir}" name="srcdir"/>
5.307 + <attribute default="${build.classes.dir}" name="destdir"/>
5.308 + <attribute default="${javac.classpath}" name="classpath"/>
5.309 + <sequential>
5.310 + <depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}">
5.311 + <classpath>
5.312 + <path path="@{classpath}"/>
5.313 + </classpath>
5.314 + </depend>
5.315 + </sequential>
5.316 + </macrodef>
5.317 + <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/j2se-project/3">
5.318 + <attribute default="${build.classes.dir}" name="destdir"/>
5.319 + <sequential>
5.320 + <fail unless="javac.includes">Must set javac.includes</fail>
5.321 + <pathconvert pathsep="${line.separator}" property="javac.includes.binary">
5.322 + <path>
5.323 + <filelist dir="@{destdir}" files="${javac.includes}"/>
5.324 + </path>
5.325 + <globmapper from="*.java" to="*.class"/>
5.326 + </pathconvert>
5.327 + <tempfile deleteonexit="true" property="javac.includesfile.binary"/>
5.328 + <echo file="${javac.includesfile.binary}" message="${javac.includes.binary}"/>
5.329 + <delete>
5.330 + <files includesfile="${javac.includesfile.binary}"/>
5.331 + </delete>
5.332 + <delete>
5.333 + <fileset file="${javac.includesfile.binary}"/>
5.334 + </delete>
5.335 + </sequential>
5.336 + </macrodef>
5.337 + </target>
5.338 + <target name="-init-macrodef-junit">
5.339 + <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">
5.340 + <attribute default="${includes}" name="includes"/>
5.341 + <attribute default="${excludes}" name="excludes"/>
5.342 + <attribute default="**" name="testincludes"/>
5.343 + <sequential>
5.344 + <property name="junit.forkmode" value="perTest"/>
5.345 + <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
5.346 + <batchtest todir="${build.test.results.dir}">
5.347 + <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
5.348 + <filename name="@{testincludes}"/>
5.349 + </fileset>
5.350 + </batchtest>
5.351 + <classpath>
5.352 + <path path="${run.test.classpath}"/>
5.353 + </classpath>
5.354 + <syspropertyset>
5.355 + <propertyref prefix="test-sys-prop."/>
5.356 + <mapper from="test-sys-prop.*" to="*" type="glob"/>
5.357 + </syspropertyset>
5.358 + <formatter type="brief" usefile="false"/>
5.359 + <formatter type="xml"/>
5.360 + <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
5.361 + <jvmarg value="-ea"/>
5.362 + <jvmarg line="${run.jvmargs}"/>
5.363 + </junit>
5.364 + </sequential>
5.365 + </macrodef>
5.366 + </target>
5.367 + <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile, -profile-init-check" name="profile-init"/>
5.368 + <target name="-profile-pre-init">
5.369 + <!-- Empty placeholder for easier customization. -->
5.370 + <!-- You can override this target in the ../build.xml file. -->
5.371 + </target>
5.372 + <target name="-profile-post-init">
5.373 + <!-- Empty placeholder for easier customization. -->
5.374 + <!-- You can override this target in the ../build.xml file. -->
5.375 + </target>
5.376 + <target name="-profile-init-macrodef-profile">
5.377 + <macrodef name="resolve">
5.378 + <attribute name="name"/>
5.379 + <attribute name="value"/>
5.380 + <sequential>
5.381 + <property name="@{name}" value="${env.@{value}}"/>
5.382 + </sequential>
5.383 + </macrodef>
5.384 + <macrodef name="profile">
5.385 + <attribute default="${main.class}" name="classname"/>
5.386 + <element name="customize" optional="true"/>
5.387 + <sequential>
5.388 + <property environment="env"/>
5.389 + <resolve name="profiler.current.path" value="${profiler.info.pathvar}"/>
5.390 + <java classname="@{classname}" dir="${profiler.info.dir}" fork="true" jvm="${profiler.info.jvm}">
5.391 + <jvmarg value="${profiler.info.jvmargs.agent}"/>
5.392 + <jvmarg line="${profiler.info.jvmargs}"/>
5.393 + <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>
5.394 + <arg line="${application.args}"/>
5.395 + <classpath>
5.396 + <path path="${run.classpath}"/>
5.397 + </classpath>
5.398 + <syspropertyset>
5.399 + <propertyref prefix="run-sys-prop."/>
5.400 + <mapper from="run-sys-prop.*" to="*" type="glob"/>
5.401 + </syspropertyset>
5.402 + <customize/>
5.403 + </java>
5.404 + </sequential>
5.405 + </macrodef>
5.406 + </target>
5.407 + <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile" name="-profile-init-check">
5.408 + <fail unless="profiler.info.jvm">Must set JVM to use for profiling in profiler.info.jvm</fail>
5.409 + <fail unless="profiler.info.jvmargs.agent">Must set profiler agent JVM arguments in profiler.info.jvmargs.agent</fail>
5.410 + </target>
5.411 + <target depends="-init-debug-args" name="-init-macrodef-nbjpda">
5.412 + <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2se-project/1">
5.413 + <attribute default="${main.class}" name="name"/>
5.414 + <attribute default="${debug.classpath}" name="classpath"/>
5.415 + <attribute default="" name="stopclassname"/>
5.416 + <sequential>
5.417 + <nbjpdastart addressproperty="jpda.address" name="@{name}" stopclassname="@{stopclassname}" transport="${debug-transport}">
5.418 + <classpath>
5.419 + <path path="@{classpath}"/>
5.420 + </classpath>
5.421 + </nbjpdastart>
5.422 + </sequential>
5.423 + </macrodef>
5.424 + <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2se-project/1">
5.425 + <attribute default="${build.classes.dir}" name="dir"/>
5.426 + <sequential>
5.427 + <nbjpdareload>
5.428 + <fileset dir="@{dir}" includes="${fix.classes}">
5.429 + <include name="${fix.includes}*.class"/>
5.430 + </fileset>
5.431 + </nbjpdareload>
5.432 + </sequential>
5.433 + </macrodef>
5.434 + </target>
5.435 + <target name="-init-debug-args">
5.436 + <property name="version-output" value="java version "${ant.java.version}"/>
5.437 + <condition property="have-jdk-older-than-1.4">
5.438 + <or>
5.439 + <contains string="${version-output}" substring="java version "1.0"/>
5.440 + <contains string="${version-output}" substring="java version "1.1"/>
5.441 + <contains string="${version-output}" substring="java version "1.2"/>
5.442 + <contains string="${version-output}" substring="java version "1.3"/>
5.443 + </or>
5.444 + </condition>
5.445 + <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
5.446 + <istrue value="${have-jdk-older-than-1.4}"/>
5.447 + </condition>
5.448 + <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
5.449 + <os family="windows"/>
5.450 + </condition>
5.451 + <condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}">
5.452 + <isset property="debug.transport"/>
5.453 + </condition>
5.454 + </target>
5.455 + <target depends="-init-debug-args" name="-init-macrodef-debug">
5.456 + <macrodef name="debug" uri="http://www.netbeans.org/ns/j2se-project/3">
5.457 + <attribute default="${main.class}" name="classname"/>
5.458 + <attribute default="${debug.classpath}" name="classpath"/>
5.459 + <element name="customize" optional="true"/>
5.460 + <sequential>
5.461 + <java classname="@{classname}" dir="${work.dir}" fork="true">
5.462 + <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
5.463 + <jvmarg line="${debug-args-line}"/>
5.464 + <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
5.465 + <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
5.466 + <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
5.467 + <jvmarg line="${run.jvmargs}"/>
5.468 + <classpath>
5.469 + <path path="@{classpath}"/>
5.470 + </classpath>
5.471 + <syspropertyset>
5.472 + <propertyref prefix="run-sys-prop."/>
5.473 + <mapper from="run-sys-prop.*" to="*" type="glob"/>
5.474 + </syspropertyset>
5.475 + <customize/>
5.476 + </java>
5.477 + </sequential>
5.478 + </macrodef>
5.479 + </target>
5.480 + <target name="-init-macrodef-java">
5.481 + <macrodef name="java" uri="http://www.netbeans.org/ns/j2se-project/1">
5.482 + <attribute default="${main.class}" name="classname"/>
5.483 + <attribute default="${run.classpath}" name="classpath"/>
5.484 + <element name="customize" optional="true"/>
5.485 + <sequential>
5.486 + <java classname="@{classname}" dir="${work.dir}" fork="true">
5.487 + <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
5.488 + <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
5.489 + <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
5.490 + <jvmarg line="${run.jvmargs}"/>
5.491 + <classpath>
5.492 + <path path="@{classpath}"/>
5.493 + </classpath>
5.494 + <syspropertyset>
5.495 + <propertyref prefix="run-sys-prop."/>
5.496 + <mapper from="run-sys-prop.*" to="*" type="glob"/>
5.497 + </syspropertyset>
5.498 + <customize/>
5.499 + </java>
5.500 + </sequential>
5.501 + </macrodef>
5.502 + </target>
5.503 + <target name="-init-macrodef-copylibs">
5.504 + <macrodef name="copylibs" uri="http://www.netbeans.org/ns/j2se-project/3">
5.505 + <attribute default="${manifest.file}" name="manifest"/>
5.506 + <element name="customize" optional="true"/>
5.507 + <sequential>
5.508 + <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
5.509 + <pathconvert property="run.classpath.without.build.classes.dir">
5.510 + <path path="${run.classpath}"/>
5.511 + <map from="${build.classes.dir.resolved}" to=""/>
5.512 + </pathconvert>
5.513 + <pathconvert pathsep=" " property="jar.classpath">
5.514 + <path path="${run.classpath.without.build.classes.dir}"/>
5.515 + <chainedmapper>
5.516 + <flattenmapper/>
5.517 + <globmapper from="*" to="lib/*"/>
5.518 + </chainedmapper>
5.519 + </pathconvert>
5.520 + <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>
5.521 + <copylibs compress="${jar.compress}" index="${jar.index}" indexMetaInf="${jar.index.metainf}" jarfile="${dist.jar}" manifest="@{manifest}" rebase="${copylibs.rebase}" runtimeclasspath="${run.classpath.without.build.classes.dir}">
5.522 + <fileset dir="${build.classes.dir}"/>
5.523 + <manifest>
5.524 + <attribute name="Class-Path" value="${jar.classpath}"/>
5.525 + <customize/>
5.526 + </manifest>
5.527 + </copylibs>
5.528 + </sequential>
5.529 + </macrodef>
5.530 + </target>
5.531 + <target name="-init-presetdef-jar">
5.532 + <presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1">
5.533 + <jar compress="${jar.compress}" index="${jar.index}" jarfile="${dist.jar}">
5.534 + <j2seproject1:fileset dir="${build.classes.dir}"/>
5.535 + </jar>
5.536 + </presetdef>
5.537 + </target>
5.538 + <target name="-init-ap-cmdline-properties">
5.539 + <property name="annotation.processing.enabled" value="true"/>
5.540 + <property name="annotation.processing.processors.list" value=""/>
5.541 + <property name="annotation.processing.processor.options" value=""/>
5.542 + <property name="annotation.processing.run.all.processors" value="true"/>
5.543 + <property name="javac.processorpath" value="${javac.classpath}"/>
5.544 + <property name="javac.test.processorpath" value="${javac.test.classpath}"/>
5.545 + <condition property="ap.supported.internal" value="true">
5.546 + <not>
5.547 + <matches pattern="1\.[0-5](\..*)?" string="${javac.source}"/>
5.548 + </not>
5.549 + </condition>
5.550 + </target>
5.551 + <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-ap-cmdline-supported">
5.552 + <condition else="" property="ap.processors.internal" value="-processor ${annotation.processing.processors.list}">
5.553 + <isfalse value="${annotation.processing.run.all.processors}"/>
5.554 + </condition>
5.555 + <condition else="" property="ap.proc.none.internal" value="-proc:none">
5.556 + <isfalse value="${annotation.processing.enabled}"/>
5.557 + </condition>
5.558 + </target>
5.559 + <target depends="-init-ap-cmdline-properties,-init-ap-cmdline-supported" name="-init-ap-cmdline">
5.560 + <property name="ap.cmd.line.internal" value=""/>
5.561 + </target>
5.562 + <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,-init-ap-cmdline" name="init"/>
5.563 + <!--
5.564 + ===================
5.565 + COMPILATION SECTION
5.566 + ===================
5.567 + -->
5.568 + <target name="-deps-jar-init" unless="built-jar.properties">
5.569 + <property location="${build.dir}/built-jar.properties" name="built-jar.properties"/>
5.570 + <delete file="${built-jar.properties}" quiet="true"/>
5.571 + </target>
5.572 + <target if="already.built.jar.${basedir}" name="-warn-already-built-jar">
5.573 + <echo level="warn" message="Cycle detected: prj1 was already built"/>
5.574 + </target>
5.575 + <target depends="init,-deps-jar-init" name="deps-jar" unless="no.deps">
5.576 + <mkdir dir="${build.dir}"/>
5.577 + <touch file="${built-jar.properties}" verbose="false"/>
5.578 + <property file="${built-jar.properties}" prefix="already.built.jar."/>
5.579 + <antcall target="-warn-already-built-jar"/>
5.580 + <propertyfile file="${built-jar.properties}">
5.581 + <entry key="${basedir}" value=""/>
5.582 + </propertyfile>
5.583 + </target>
5.584 + <target depends="init,-check-automatic-build,-clean-after-automatic-build" name="-verify-automatic-build"/>
5.585 + <target depends="init" name="-check-automatic-build">
5.586 + <available file="${build.classes.dir}/.netbeans_automatic_build" property="netbeans.automatic.build"/>
5.587 + </target>
5.588 + <target depends="init" if="netbeans.automatic.build" name="-clean-after-automatic-build">
5.589 + <antcall target="clean"/>
5.590 + </target>
5.591 + <target depends="init,deps-jar" name="-pre-pre-compile">
5.592 + <mkdir dir="${build.classes.dir}"/>
5.593 + </target>
5.594 + <target name="-pre-compile">
5.595 + <!-- Empty placeholder for easier customization. -->
5.596 + <!-- You can override this target in the ../build.xml file. -->
5.597 + </target>
5.598 + <target if="do.depend.true" name="-compile-depend">
5.599 + <pathconvert property="build.generated.subdirs">
5.600 + <dirset dir="${build.generated.sources.dir}" erroronmissingdir="false">
5.601 + <include name="*"/>
5.602 + </dirset>
5.603 + </pathconvert>
5.604 + <j2seproject3:depend srcdir="${src.dir}:${build.generated.subdirs}"/>
5.605 + </target>
5.606 + <target depends="init,deps-jar,-pre-pre-compile,-pre-compile, -copy-persistence-xml,-compile-depend" if="have.sources" name="-do-compile">
5.607 + <j2seproject3:javac gensrcdir="${build.generated.sources.dir}"/>
5.608 + <copy todir="${build.classes.dir}">
5.609 + <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
5.610 + </copy>
5.611 + </target>
5.612 + <target if="has.persistence.xml" name="-copy-persistence-xml">
5.613 + <mkdir dir="${build.classes.dir}/META-INF"/>
5.614 + <copy todir="${build.classes.dir}/META-INF">
5.615 + <fileset dir="${meta.inf.dir}" includes="persistence.xml"/>
5.616 + </copy>
5.617 + </target>
5.618 + <target name="-post-compile">
5.619 + <!-- Empty placeholder for easier customization. -->
5.620 + <!-- You can override this target in the ../build.xml file. -->
5.621 + </target>
5.622 + <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
5.623 + <target name="-pre-compile-single">
5.624 + <!-- Empty placeholder for easier customization. -->
5.625 + <!-- You can override this target in the ../build.xml file. -->
5.626 + </target>
5.627 + <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
5.628 + <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
5.629 + <j2seproject3:force-recompile/>
5.630 + <j2seproject3:javac excludes="" gensrcdir="${build.generated.sources.dir}" includes="${javac.includes}" sourcepath="${src.dir}"/>
5.631 + </target>
5.632 + <target name="-post-compile-single">
5.633 + <!-- Empty placeholder for easier customization. -->
5.634 + <!-- You can override this target in the ../build.xml file. -->
5.635 + </target>
5.636 + <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
5.637 + <!--
5.638 + ====================
5.639 + JAR BUILDING SECTION
5.640 + ====================
5.641 + -->
5.642 + <target depends="init" name="-pre-pre-jar">
5.643 + <dirname file="${dist.jar}" property="dist.jar.dir"/>
5.644 + <mkdir dir="${dist.jar.dir}"/>
5.645 + </target>
5.646 + <target name="-pre-jar">
5.647 + <!-- Empty placeholder for easier customization. -->
5.648 + <!-- You can override this target in the ../build.xml file. -->
5.649 + </target>
5.650 + <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive" name="-do-jar-without-manifest" unless="manifest.available-mkdist.available">
5.651 + <j2seproject1:jar/>
5.652 + </target>
5.653 + <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive+manifest.available" name="-do-jar-with-manifest" unless="manifest.available+main.class-mkdist.available">
5.654 + <j2seproject1:jar manifest="${manifest.file}"/>
5.655 + </target>
5.656 + <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive+manifest.available+main.class" name="-do-jar-with-mainclass" unless="manifest.available+main.class+mkdist.available">
5.657 + <j2seproject1:jar manifest="${manifest.file}">
5.658 + <j2seproject1:manifest>
5.659 + <j2seproject1:attribute name="Main-Class" value="${main.class}"/>
5.660 + </j2seproject1:manifest>
5.661 + </j2seproject1:jar>
5.662 + <echo level="info">To run this application from the command line without Ant, try:</echo>
5.663 + <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
5.664 + <property location="${dist.jar}" name="dist.jar.resolved"/>
5.665 + <pathconvert property="run.classpath.with.dist.jar">
5.666 + <path path="${run.classpath}"/>
5.667 + <map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/>
5.668 + </pathconvert>
5.669 + <echo level="info">java -cp "${run.classpath.with.dist.jar}" ${main.class}</echo>
5.670 + </target>
5.671 + <target depends="init" if="do.archive" name="-do-jar-with-libraries-create-manifest" unless="manifest.available">
5.672 + <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
5.673 + <touch file="${tmp.manifest.file}" verbose="false"/>
5.674 + </target>
5.675 + <target depends="init" if="do.archive+manifest.available" name="-do-jar-with-libraries-copy-manifest">
5.676 + <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
5.677 + <copy file="${manifest.file}" tofile="${tmp.manifest.file}"/>
5.678 + </target>
5.679 + <target depends="init,-do-jar-with-libraries-create-manifest,-do-jar-with-libraries-copy-manifest" if="do.archive+main.class.available" name="-do-jar-with-libraries-set-main">
5.680 + <manifest file="${tmp.manifest.file}" mode="update">
5.681 + <attribute name="Main-Class" value="${main.class}"/>
5.682 + </manifest>
5.683 + </target>
5.684 + <target depends="init,-do-jar-with-libraries-create-manifest,-do-jar-with-libraries-copy-manifest" if="do.archive+splashscreen.available" name="-do-jar-with-libraries-set-splashscreen">
5.685 + <basename file="${application.splash}" property="splashscreen.basename"/>
5.686 + <mkdir dir="${build.classes.dir}/META-INF"/>
5.687 + <copy failonerror="false" file="${application.splash}" todir="${build.classes.dir}/META-INF"/>
5.688 + <manifest file="${tmp.manifest.file}" mode="update">
5.689 + <attribute name="SplashScreen-Image" value="META-INF/${splashscreen.basename}"/>
5.690 + </manifest>
5.691 + </target>
5.692 + <target depends="init,-init-macrodef-copylibs,compile,-pre-pre-jar,-pre-jar,-do-jar-with-libraries-create-manifest,-do-jar-with-libraries-copy-manifest,-do-jar-with-libraries-set-main,-do-jar-with-libraries-set-splashscreen" if="do.mkdist" name="-do-jar-with-libraries-pack">
5.693 + <j2seproject3:copylibs manifest="${tmp.manifest.file}"/>
5.694 + <echo level="info">To run this application from the command line without Ant, try:</echo>
5.695 + <property location="${dist.jar}" name="dist.jar.resolved"/>
5.696 + <echo level="info">java -jar "${dist.jar.resolved}"</echo>
5.697 + </target>
5.698 + <target depends="-do-jar-with-libraries-pack" if="do.archive" name="-do-jar-with-libraries-delete-manifest">
5.699 + <delete>
5.700 + <fileset file="${tmp.manifest.file}"/>
5.701 + </delete>
5.702 + </target>
5.703 + <target depends="init,compile,-pre-pre-jar,-pre-jar,-do-jar-with-libraries-create-manifest,-do-jar-with-libraries-copy-manifest,-do-jar-with-libraries-set-main,-do-jar-with-libraries-set-splashscreen,-do-jar-with-libraries-pack,-do-jar-with-libraries-delete-manifest" name="-do-jar-with-libraries"/>
5.704 + <target name="-post-jar">
5.705 + <!-- Empty placeholder for easier customization. -->
5.706 + <!-- You can override this target in the ../build.xml file. -->
5.707 + </target>
5.708 + <target depends="init,compile,-pre-jar,-do-jar-with-manifest,-do-jar-without-manifest,-do-jar-with-mainclass,-do-jar-with-libraries,-post-jar" description="Build JAR." name="jar"/>
5.709 + <!--
5.710 + =================
5.711 + EXECUTION SECTION
5.712 + =================
5.713 + -->
5.714 + <target depends="init,compile" description="Run a main class." name="run">
5.715 + <j2seproject1:java>
5.716 + <customize>
5.717 + <arg line="${application.args}"/>
5.718 + </customize>
5.719 + </j2seproject1:java>
5.720 + </target>
5.721 + <target name="-do-not-recompile">
5.722 + <property name="javac.includes.binary" value=""/>
5.723 + </target>
5.724 + <target depends="init,compile-single" name="run-single">
5.725 + <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
5.726 + <j2seproject1:java classname="${run.class}"/>
5.727 + </target>
5.728 + <target depends="init,compile-test-single" name="run-test-with-main">
5.729 + <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
5.730 + <j2seproject1:java classname="${run.class}" classpath="${run.test.classpath}"/>
5.731 + </target>
5.732 + <!--
5.733 + =================
5.734 + DEBUGGING SECTION
5.735 + =================
5.736 + -->
5.737 + <target depends="init" if="netbeans.home" name="-debug-start-debugger">
5.738 + <j2seproject1:nbjpdastart name="${debug.class}"/>
5.739 + </target>
5.740 + <target depends="init" if="netbeans.home" name="-debug-start-debugger-main-test">
5.741 + <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${debug.class}"/>
5.742 + </target>
5.743 + <target depends="init,compile" name="-debug-start-debuggee">
5.744 + <j2seproject3:debug>
5.745 + <customize>
5.746 + <arg line="${application.args}"/>
5.747 + </customize>
5.748 + </j2seproject3:debug>
5.749 + </target>
5.750 + <target depends="init,compile,-debug-start-debugger,-debug-start-debuggee" description="Debug project in IDE." if="netbeans.home" name="debug"/>
5.751 + <target depends="init" if="netbeans.home" name="-debug-start-debugger-stepinto">
5.752 + <j2seproject1:nbjpdastart stopclassname="${main.class}"/>
5.753 + </target>
5.754 + <target depends="init,compile,-debug-start-debugger-stepinto,-debug-start-debuggee" if="netbeans.home" name="debug-stepinto"/>
5.755 + <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
5.756 + <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
5.757 + <j2seproject3:debug classname="${debug.class}"/>
5.758 + </target>
5.759 + <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single"/>
5.760 + <target depends="init,compile-test-single" if="netbeans.home" name="-debug-start-debuggee-main-test">
5.761 + <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
5.762 + <j2seproject3:debug classname="${debug.class}" classpath="${debug.test.classpath}"/>
5.763 + </target>
5.764 + <target depends="init,compile-test-single,-debug-start-debugger-main-test,-debug-start-debuggee-main-test" if="netbeans.home" name="debug-test-with-main"/>
5.765 + <target depends="init" name="-pre-debug-fix">
5.766 + <fail unless="fix.includes">Must set fix.includes</fail>
5.767 + <property name="javac.includes" value="${fix.includes}.java"/>
5.768 + </target>
5.769 + <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
5.770 + <j2seproject1:nbjpdareload/>
5.771 + </target>
5.772 + <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
5.773 + <!--
5.774 + =================
5.775 + PROFILING SECTION
5.776 + =================
5.777 + -->
5.778 + <target depends="profile-init,compile" description="Profile a project in the IDE." if="netbeans.home" name="profile">
5.779 + <nbprofiledirect>
5.780 + <classpath>
5.781 + <path path="${run.classpath}"/>
5.782 + </classpath>
5.783 + </nbprofiledirect>
5.784 + <profile/>
5.785 + </target>
5.786 + <target depends="profile-init,compile-single" description="Profile a selected class in the IDE." if="netbeans.home" name="profile-single">
5.787 + <fail unless="profile.class">Must select one file in the IDE or set profile.class</fail>
5.788 + <nbprofiledirect>
5.789 + <classpath>
5.790 + <path path="${run.classpath}"/>
5.791 + </classpath>
5.792 + </nbprofiledirect>
5.793 + <profile classname="${profile.class}"/>
5.794 + </target>
5.795 + <!--
5.796 + =========================
5.797 + APPLET PROFILING SECTION
5.798 + =========================
5.799 + -->
5.800 + <target depends="profile-init,compile-single" if="netbeans.home" name="profile-applet">
5.801 + <nbprofiledirect>
5.802 + <classpath>
5.803 + <path path="${run.classpath}"/>
5.804 + </classpath>
5.805 + </nbprofiledirect>
5.806 + <profile classname="sun.applet.AppletViewer">
5.807 + <customize>
5.808 + <arg value="${applet.url}"/>
5.809 + </customize>
5.810 + </profile>
5.811 + </target>
5.812 + <!--
5.813 + =========================
5.814 + TESTS PROFILING SECTION
5.815 + =========================
5.816 + -->
5.817 + <target depends="profile-init,compile-test-single" if="netbeans.home" name="profile-test-single">
5.818 + <nbprofiledirect>
5.819 + <classpath>
5.820 + <path path="${run.test.classpath}"/>
5.821 + </classpath>
5.822 + </nbprofiledirect>
5.823 + <junit dir="${profiler.info.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" jvm="${profiler.info.jvm}" showoutput="true">
5.824 + <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>
5.825 + <jvmarg value="${profiler.info.jvmargs.agent}"/>
5.826 + <jvmarg line="${profiler.info.jvmargs}"/>
5.827 + <test name="${profile.class}"/>
5.828 + <classpath>
5.829 + <path path="${run.test.classpath}"/>
5.830 + </classpath>
5.831 + <syspropertyset>
5.832 + <propertyref prefix="test-sys-prop."/>
5.833 + <mapper from="test-sys-prop.*" to="*" type="glob"/>
5.834 + </syspropertyset>
5.835 + <formatter type="brief" usefile="false"/>
5.836 + <formatter type="xml"/>
5.837 + </junit>
5.838 + </target>
5.839 + <!--
5.840 + ===============
5.841 + JAVADOC SECTION
5.842 + ===============
5.843 + -->
5.844 + <target depends="init" if="have.sources" name="-javadoc-build">
5.845 + <mkdir dir="${dist.javadoc.dir}"/>
5.846 + <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}">
5.847 + <classpath>
5.848 + <path path="${javac.classpath}"/>
5.849 + </classpath>
5.850 + <fileset dir="${src.dir}" excludes="*.java,${excludes}" includes="${includes}">
5.851 + <filename name="**/*.java"/>
5.852 + </fileset>
5.853 + <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
5.854 + <include name="**/*.java"/>
5.855 + <exclude name="*.java"/>
5.856 + </fileset>
5.857 + </javadoc>
5.858 + <copy todir="${dist.javadoc.dir}">
5.859 + <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
5.860 + <filename name="**/doc-files/**"/>
5.861 + </fileset>
5.862 + <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
5.863 + <include name="**/doc-files/**"/>
5.864 + </fileset>
5.865 + </copy>
5.866 + </target>
5.867 + <target depends="init,-javadoc-build" if="netbeans.home" name="-javadoc-browse" unless="no.javadoc.preview">
5.868 + <nbbrowse file="${dist.javadoc.dir}/index.html"/>
5.869 + </target>
5.870 + <target depends="init,-javadoc-build,-javadoc-browse" description="Build Javadoc." name="javadoc"/>
5.871 + <!--
5.872 + =========================
5.873 + JUNIT COMPILATION SECTION
5.874 + =========================
5.875 + -->
5.876 + <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
5.877 + <mkdir dir="${build.test.classes.dir}"/>
5.878 + </target>
5.879 + <target name="-pre-compile-test">
5.880 + <!-- Empty placeholder for easier customization. -->
5.881 + <!-- You can override this target in the ../build.xml file. -->
5.882 + </target>
5.883 + <target if="do.depend.true" name="-compile-test-depend">
5.884 + <j2seproject3:depend classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
5.885 + </target>
5.886 + <target depends="init,deps-jar,compile,-pre-pre-compile-test,-pre-compile-test,-compile-test-depend" if="have.tests" name="-do-compile-test">
5.887 + <j2seproject3:javac apgeneratedsrcdir="${build.test.classes.dir}" classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" processorpath="${javac.test.processorpath}" srcdir="${test.src.dir}"/>
5.888 + <copy todir="${build.test.classes.dir}">
5.889 + <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
5.890 + </copy>
5.891 + </target>
5.892 + <target name="-post-compile-test">
5.893 + <!-- Empty placeholder for easier customization. -->
5.894 + <!-- You can override this target in the ../build.xml file. -->
5.895 + </target>
5.896 + <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
5.897 + <target name="-pre-compile-test-single">
5.898 + <!-- Empty placeholder for easier customization. -->
5.899 + <!-- You can override this target in the ../build.xml file. -->
5.900 + </target>
5.901 + <target depends="init,deps-jar,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
5.902 + <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
5.903 + <j2seproject3:force-recompile destdir="${build.test.classes.dir}"/>
5.904 + <j2seproject3:javac apgeneratedsrcdir="${build.test.classes.dir}" classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" excludes="" includes="${javac.includes}" processorpath="${javac.test.processorpath}" sourcepath="${test.src.dir}" srcdir="${test.src.dir}"/>
5.905 + <copy todir="${build.test.classes.dir}">
5.906 + <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
5.907 + </copy>
5.908 + </target>
5.909 + <target name="-post-compile-test-single">
5.910 + <!-- Empty placeholder for easier customization. -->
5.911 + <!-- You can override this target in the ../build.xml file. -->
5.912 + </target>
5.913 + <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/>
5.914 + <!--
5.915 + =======================
5.916 + JUNIT EXECUTION SECTION
5.917 + =======================
5.918 + -->
5.919 + <target depends="init" if="have.tests" name="-pre-test-run">
5.920 + <mkdir dir="${build.test.results.dir}"/>
5.921 + </target>
5.922 + <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
5.923 + <j2seproject3:junit testincludes="**/*Test.java"/>
5.924 + </target>
5.925 + <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
5.926 + <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
5.927 + </target>
5.928 + <target depends="init" if="have.tests" name="test-report"/>
5.929 + <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
5.930 + <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/>
5.931 + <target depends="init" if="have.tests" name="-pre-test-run-single">
5.932 + <mkdir dir="${build.test.results.dir}"/>
5.933 + </target>
5.934 + <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
5.935 + <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
5.936 + <j2seproject3:junit excludes="" includes="${test.includes}"/>
5.937 + </target>
5.938 + <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
5.939 + <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
5.940 + </target>
5.941 + <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"/>
5.942 + <!--
5.943 + =======================
5.944 + JUNIT DEBUGGING SECTION
5.945 + =======================
5.946 + -->
5.947 + <target depends="init,compile-test" if="have.tests" name="-debug-start-debuggee-test">
5.948 + <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
5.949 + <property location="${build.test.results.dir}/TEST-${test.class}.xml" name="test.report.file"/>
5.950 + <delete file="${test.report.file}"/>
5.951 + <mkdir dir="${build.test.results.dir}"/>
5.952 + <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}">
5.953 + <customize>
5.954 + <syspropertyset>
5.955 + <propertyref prefix="test-sys-prop."/>
5.956 + <mapper from="test-sys-prop.*" to="*" type="glob"/>
5.957 + </syspropertyset>
5.958 + <arg value="${test.class}"/>
5.959 + <arg value="showoutput=true"/>
5.960 + <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter"/>
5.961 + <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,${test.report.file}"/>
5.962 + </customize>
5.963 + </j2seproject3:debug>
5.964 + </target>
5.965 + <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
5.966 + <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
5.967 + </target>
5.968 + <target depends="init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
5.969 + <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
5.970 + <j2seproject1:nbjpdareload dir="${build.test.classes.dir}"/>
5.971 + </target>
5.972 + <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
5.973 + <!--
5.974 + =========================
5.975 + APPLET EXECUTION SECTION
5.976 + =========================
5.977 + -->
5.978 + <target depends="init,compile-single" name="run-applet">
5.979 + <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
5.980 + <j2seproject1:java classname="sun.applet.AppletViewer">
5.981 + <customize>
5.982 + <arg value="${applet.url}"/>
5.983 + </customize>
5.984 + </j2seproject1:java>
5.985 + </target>
5.986 + <!--
5.987 + =========================
5.988 + APPLET DEBUGGING SECTION
5.989 + =========================
5.990 + -->
5.991 + <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-applet">
5.992 + <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
5.993 + <j2seproject3:debug classname="sun.applet.AppletViewer">
5.994 + <customize>
5.995 + <arg value="${applet.url}"/>
5.996 + </customize>
5.997 + </j2seproject3:debug>
5.998 + </target>
5.999 + <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-applet" if="netbeans.home" name="debug-applet"/>
5.1000 + <!--
5.1001 + ===============
5.1002 + CLEANUP SECTION
5.1003 + ===============
5.1004 + -->
5.1005 + <target name="-deps-clean-init" unless="built-clean.properties">
5.1006 + <property location="${build.dir}/built-clean.properties" name="built-clean.properties"/>
5.1007 + <delete file="${built-clean.properties}" quiet="true"/>
5.1008 + </target>
5.1009 + <target if="already.built.clean.${basedir}" name="-warn-already-built-clean">
5.1010 + <echo level="warn" message="Cycle detected: prj1 was already built"/>
5.1011 + </target>
5.1012 + <target depends="init,-deps-clean-init" name="deps-clean" unless="no.deps">
5.1013 + <mkdir dir="${build.dir}"/>
5.1014 + <touch file="${built-clean.properties}" verbose="false"/>
5.1015 + <property file="${built-clean.properties}" prefix="already.built.clean."/>
5.1016 + <antcall target="-warn-already-built-clean"/>
5.1017 + <propertyfile file="${built-clean.properties}">
5.1018 + <entry key="${basedir}" value=""/>
5.1019 + </propertyfile>
5.1020 + </target>
5.1021 + <target depends="init" name="-do-clean">
5.1022 + <delete dir="${build.dir}"/>
5.1023 + <delete dir="${dist.dir}" followsymlinks="false" includeemptydirs="true"/>
5.1024 + </target>
5.1025 + <target name="-post-clean">
5.1026 + <!-- Empty placeholder for easier customization. -->
5.1027 + <!-- You can override this target in the ../build.xml file. -->
5.1028 + </target>
5.1029 + <target depends="init,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/>
5.1030 + <target name="-check-call-dep">
5.1031 + <property file="${call.built.properties}" prefix="already.built."/>
5.1032 + <condition property="should.call.dep">
5.1033 + <not>
5.1034 + <isset property="already.built.${call.subproject}"/>
5.1035 + </not>
5.1036 + </condition>
5.1037 + </target>
5.1038 + <target depends="-check-call-dep" if="should.call.dep" name="-maybe-call-dep">
5.1039 + <ant antfile="${call.script}" inheritall="false" target="${call.target}">
5.1040 + <propertyset>
5.1041 + <propertyref prefix="transfer."/>
5.1042 + <mapper from="transfer.*" to="*" type="glob"/>
5.1043 + </propertyset>
5.1044 + </ant>
5.1045 + </target>
5.1046 +</project>
6.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
6.2 +++ b/remoting/server/tests/data/group1/prj1/nbproject/genfiles.properties Thu Jun 30 13:54:51 2011 +0200
6.3 @@ -0,0 +1,8 @@
6.4 +build.xml.data.CRC32=9fba8b40
6.5 +build.xml.script.CRC32=4f50f25f
6.6 +build.xml.stylesheet.CRC32=28e38971@1.45.0.45
6.7 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
6.8 +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
6.9 +nbproject/build-impl.xml.data.CRC32=9fba8b40
6.10 +nbproject/build-impl.xml.script.CRC32=e9af8aba
6.11 +nbproject/build-impl.xml.stylesheet.CRC32=cfcde7f8@1.45.0.45
7.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
7.2 +++ b/remoting/server/tests/data/group1/prj1/nbproject/project.properties Thu Jun 30 13:54:51 2011 +0200
7.3 @@ -0,0 +1,71 @@
7.4 +annotation.processing.enabled=true
7.5 +annotation.processing.enabled.in.editor=false
7.6 +annotation.processing.processor.options=
7.7 +annotation.processing.processors.list=
7.8 +annotation.processing.run.all.processors=true
7.9 +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output
7.10 +build.classes.dir=${build.dir}/classes
7.11 +build.classes.excludes=**/*.java,**/*.form
7.12 +# This directory is removed when the project is cleaned:
7.13 +build.dir=build
7.14 +build.generated.dir=${build.dir}/generated
7.15 +build.generated.sources.dir=${build.dir}/generated-sources
7.16 +# Only compile against the classpath explicitly listed here:
7.17 +build.sysclasspath=ignore
7.18 +build.test.classes.dir=${build.dir}/test/classes
7.19 +build.test.results.dir=${build.dir}/test/results
7.20 +# Uncomment to specify the preferred debugger connection transport:
7.21 +#debug.transport=dt_socket
7.22 +debug.classpath=\
7.23 + ${run.classpath}
7.24 +debug.test.classpath=\
7.25 + ${run.test.classpath}
7.26 +# This directory is removed when the project is cleaned:
7.27 +dist.dir=dist
7.28 +dist.jar=${dist.dir}/prj1.jar
7.29 +dist.javadoc.dir=${dist.dir}/javadoc
7.30 +excludes=
7.31 +includes=**
7.32 +jar.compress=false
7.33 +javac.classpath=
7.34 +# Space-separated list of extra javac options
7.35 +javac.compilerargs=
7.36 +javac.deprecation=false
7.37 +javac.processorpath=\
7.38 + ${javac.classpath}
7.39 +javac.source=1.6
7.40 +javac.target=1.6
7.41 +javac.test.classpath=\
7.42 + ${javac.classpath}:\
7.43 + ${build.classes.dir}
7.44 +javac.test.processorpath=\
7.45 + ${javac.test.classpath}
7.46 +javadoc.additionalparam=
7.47 +javadoc.author=false
7.48 +javadoc.encoding=${source.encoding}
7.49 +javadoc.noindex=false
7.50 +javadoc.nonavbar=false
7.51 +javadoc.notree=false
7.52 +javadoc.private=false
7.53 +javadoc.splitindex=true
7.54 +javadoc.use=true
7.55 +javadoc.version=false
7.56 +javadoc.windowtitle=
7.57 +main.class=
7.58 +manifest.file=manifest.mf
7.59 +meta.inf.dir=${src.dir}/META-INF
7.60 +mkdist.disabled=false
7.61 +platform.active=default_platform
7.62 +run.classpath=\
7.63 + ${javac.classpath}:\
7.64 + ${build.classes.dir}
7.65 +# Space-separated list of JVM arguments used when running the project
7.66 +# (you may also define separate properties like run-sys-prop.name=value instead of -Dname=value
7.67 +# or test-sys-prop.name=value to set system properties for unit tests):
7.68 +run.jvmargs=
7.69 +run.test.classpath=\
7.70 + ${javac.test.classpath}:\
7.71 + ${build.test.classes.dir}
7.72 +source.encoding=UTF-8
7.73 +src.dir=src
7.74 +test.src.dir=test
8.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
8.2 +++ b/remoting/server/tests/data/group1/prj1/nbproject/project.xml Thu Jun 30 13:54:51 2011 +0200
8.3 @@ -0,0 +1,15 @@
8.4 +<?xml version="1.0" encoding="UTF-8"?>
8.5 +<project xmlns="http://www.netbeans.org/ns/project/1">
8.6 + <type>org.netbeans.modules.java.j2seproject</type>
8.7 + <configuration>
8.8 + <data xmlns="http://www.netbeans.org/ns/j2se-project/3">
8.9 + <name>prj1</name>
8.10 + <source-roots>
8.11 + <root id="src.dir"/>
8.12 + </source-roots>
8.13 + <test-roots>
8.14 + <root id="test.src.dir"/>
8.15 + </test-roots>
8.16 + </data>
8.17 + </configuration>
8.18 +</project>
9.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
9.2 +++ b/remoting/server/tests/data/group1/prj1/src/project1/A.java Thu Jun 30 13:54:51 2011 +0200
9.3 @@ -0,0 +1,8 @@
9.4 +package project1;
9.5 +
9.6 +public class A {
9.7 +
9.8 + {
9.9 + B.test();
9.10 + }
9.11 +}
10.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
10.2 +++ b/remoting/server/tests/data/group1/prj1/src/project1/B.java Thu Jun 30 13:54:51 2011 +0200
10.3 @@ -0,0 +1,7 @@
10.4 +package project1;
10.5 +
10.6 +public class B {
10.7 +
10.8 + static void test() {}
10.9 +
10.10 +}
11.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
11.2 +++ b/remoting/server/tests/run-declarative-tests Thu Jun 30 13:54:51 2011 +0200
11.3 @@ -0,0 +1,62 @@
11.4 +#!/bin/bash -x
11.5 +do_index() {
11.6 + rm -rf cache
11.7 + mkdir -p cache
11.8 + for g in `pwd`/data/*; do
11.9 + NAME=`basename $g`;
11.10 + PROJECTS=`find $PWD/data/group1/ -maxdepth 1 -mindepth 1 -type d`
11.11 + USERDIR="`pwd`/cache/userdir"
11.12 + rm -rf "$USERDIR"
11.13 + (cd ../indexer; ant "-Drun.args=--nosplash --nogui -J-Xmx128m --category-id '$NAME' --category-name '$NAME-display-name' --cache-target ../tests/cache/temp.zip --category-root-dir '$g' --category-projects '$PROJECTS'" "-Dtest.user.dir=$USERDIR" "$@" run)
11.14 + (cd cache; unzip temp.zip; rm temp.zip)
11.15 + rm -rf "$USERDIR"
11.16 + done
11.17 +}
11.18 +
11.19 +#XXX: copied from cmdline/test/scripted/harness
11.20 +write_passed_results_file() {
11.21 + cat >$RESULT_FILE <<EOF
11.22 +<?xml version="1.0" encoding="UTF-8" ?>
11.23 +<testsuite errors="0" failures="0" hostname="foo" name="$TEST_NAME" tests="1" time="0" timestamp="`date`">
11.24 + <properties/>
11.25 + <testcase classname="$TEST_NAME" name="main" time="0" />
11.26 +</testsuite>
11.27 +EOF
11.28 +}
11.29 +
11.30 +write_failure_results_file() {
11.31 + cat >$RESULT_FILE <<EOF
11.32 +<?xml version="1.0" encoding="UTF-8" ?>
11.33 +<testsuite errors="0" failures="1" hostname="foo" name="$TEST_NAME" tests="1" time="0" timestamp="`date`">
11.34 + <properties/>
11.35 + <testcase classname="$TEST_NAME" name="main" time="0">
11.36 + <failure message="Test failed" type="junit.framework.AssertionFailedError">$1</failure>
11.37 + </testcase>
11.38 +</testsuite>
11.39 +EOF
11.40 +}
11.41 +
11.42 +do_index
11.43 +
11.44 +(cd ../web/web.main; ant jar)
11.45 +java -jar ../web/web.main/dist/web.main.jar cache >/dev/null 2>/dev/null &
11.46 +
11.47 +#trap "kill %1" EXIT
11.48 +
11.49 +sleep 1s; #XXX
11.50 +
11.51 +rm -rf results
11.52 +mkdir results
11.53 +
11.54 +for tc in `find testcases -name "*.tc" -type d`; do
11.55 + REQUEST=`cat $tc/request`;
11.56 + TEST_NAME=`basename $tc`;
11.57 + RESULT_FILE="`pwd`/results/TEST-$TEST_NAME.xml"
11.58 + if wget -O - "http://localhost:9998$REQUEST" | diff -w - $tc/response; then
11.59 + write_passed_results_file
11.60 + else
11.61 + write_failure_results_file
11.62 + fi;
11.63 +done
11.64 +
11.65 +exit 0
12.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
12.2 +++ b/remoting/server/tests/testcases/list.tc/request Thu Jun 30 13:54:51 2011 +0200
12.3 @@ -0,0 +1,1 @@
12.4 +/index/list
12.5 \ No newline at end of file
13.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
13.2 +++ b/remoting/server/tests/testcases/list.tc/response Thu Jun 30 13:54:51 2011 +0200
13.3 @@ -0,0 +1,1 @@
13.4 +group1:group1-display-name
14.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
14.2 +++ b/remoting/server/tests/testcases/sources/simple.tc/request Thu Jun 30 13:54:51 2011 +0200
14.3 @@ -0,0 +1,1 @@
14.4 +/index/source/cat?path=group1&relative=prj1/src/project1/A.java
14.5 \ No newline at end of file
15.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
15.2 +++ b/remoting/server/tests/testcases/sources/simple.tc/response Thu Jun 30 13:54:51 2011 +0200
15.3 @@ -0,0 +1,1 @@
15.4 +prj1/src/project1/A.java
16.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
16.2 +++ b/remoting/server/tests/testcases/type/lookup1.tc/request Thu Jun 30 13:54:51 2011 +0200
16.3 @@ -0,0 +1,1 @@
16.4 +/index/type/search?path=group1&prefix=A
17.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
17.2 +++ b/remoting/server/tests/testcases/type/lookup1.tc/response Thu Jun 30 13:54:51 2011 +0200
17.3 @@ -0,0 +1,5 @@
17.4 +{
17.5 + "prj1/src/": [
17.6 + "project1.A"
17.7 + ]
17.8 +}
18.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
18.2 +++ b/remoting/server/tests/testcases/usages/simple.tc/request Thu Jun 30 13:54:51 2011 +0200
18.3 @@ -0,0 +1,1 @@
18.4 +/index/usages/search?path=group1&signatures=METHOD:project1.B:test:()V
18.5 \ No newline at end of file
19.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
19.2 +++ b/remoting/server/tests/testcases/usages/simple.tc/response Thu Jun 30 13:54:51 2011 +0200
19.3 @@ -0,0 +1,1 @@
19.4 +prj1/src/project1/A.java