Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
-->
<project name="test runner" default="test" basedir=".">
<target name="init">
<property name="extra.test.libs.dir" location="../../../extralibs"/>
<property name="test.dist.dir" location="../../.."/>
<property name="test.timeout" value="600000"/>
<pathconvert property="nbjunit.workdir">
<path location="${basedir}"/>
<mapper>
<chainedmapper>
<flattenmapper/>
<globmapper from="*" to="../../work/*"/>
</chainedmapper>
</mapper>
</pathconvert>
<property name="test.results.dir" location="../../results"/>
<property name="test.classes.dir" location="../../classes"/>
<property name="java.home.parent" location="${java.home}/.."/>
<loadproperties srcFile="test.properties"/>
<propertyset id="test.properties">
<propertyref prefix="test-sys-prop."/>
<mapper type="glob" from="test-sys-prop.*" to="*"/>
</propertyset>
<delete dir="${test.classes.dir}"/>
<mkdir dir="${test.results.dir}"/>
<unjar src="tests.jar" dest="${test.classes.dir}"/>
<available file="data.zip"type="file" property="exists.test.data"/>
<available file="${netbeans.dest.dir}/moduleCluster.properties"type="file" property="exists.platform.properties"/>
<path id="test.cp">
<pathelement location="${test.classes.dir}"/>
<path path="${extra.test.libs}"/>
<path path="${test.run.cp}"/>
</path>
<taskdef name="validatepath" classpath="../../../tasks.jar" classname="org.netbeans.nbbuild.testdist.ValidatePath"/>
<condition property="testng.found" value ="true">
<available classname="org.testng.annotations.Test" classpath="${extra.test.libs}"/>
</condition>
<validatepath pathref="test.cp" failedproperty="wrong.classpath"/>
<pathconvert property="retouche.javac.api">
<fileset dir="${netbeans.dest.dir}">
<include name="java/modules/ext/*javac*api*.jar"/>
</fileset>
</pathconvert>
<pathconvert property="retouche.javac.impl">
<fileset dir="${netbeans.dest.dir}">
<include name="java/modules/ext/*javac*impl*.jar"/>
</fileset>
<fileset dir="${nbjdk.home}/../Classes" erroronmissingdir="false">
<include name="*.jar"/>
</fileset>
</pathconvert> <!-- When requires.nb.javac property is true, prepend javac-api on bootclasspath to allow override the default annotation
processing API located in rt.jar. On Mac, prepend also javac-impl, so that tests are built against correct version of javac. -->
<condition property="bootclasspath.prepend" value="${retouche.javac.api}:${retouche.javac.impl}">
<and>
<os family="mac"/>
<istrue value="${requires.nb.javac}"/>
</and>
</condition>
<condition property="bootclasspath.prepend" value="${retouche.javac.api}">
<istrue value="${requires.nb.javac}"/>
</condition>
<condition property="test.bootclasspath.prepend.args" value="-Xbootclasspath/p:"${bootclasspath.prepend}"">
<isset property="bootclasspath.prepend"/>
</condition>
<property name="test.bootclasspath.prepend.args" value=""/>
</target>
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.