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.
<!-- Provide path to JDK which you want to run the IDE with -->
<property name="jdkhome" value="e:/jdks/jdk1.5.0_04"/> <!-- Define what build of NetBeans you want to instrument -->
<property name="netbeans.dir" location="${nb_all}/nbbuild/netbeans"/> <!-- Provide filter for included packages -->
<property name="included.packages"
value="org.netbeans.*,org.openide.*,org.openidex.*,org.apache.tools.ant.module.*,javax.jmi.*"/> <!-- File for writing EMMA runtime coverage data -->
<property name="coverage.runtime.file" value="coverage.ec"/> <!-- Provide additional IDE arguments -->
<property name="ide.args"
value="--cp:p ${emma.dir}/emma.jar -J-Dnetbeans.security.nocheck=true -J-Demma.coverage.out.file=${coverage.data.dir}/${coverage.runtime.file}"/> <!-- File for logging instrumentation details; not defined == no logging -->
<property name="emma.logfile" value="instrumented.txt"/>
<!-- ===== End of User defined properties ===== -->
<!-- We must instrument only jars containing selected packages !!! -->
<target name="create-instrpath" depends="copy-ide">
<select-jars pathrefprop="instr.path.id" inclpackages="${included.packages}" logfile="${emma.logfile}">
<fileset dir="${netbeans.instr.dir}">
<include name="**/*.jar"/>
</fileset>
</select-jars>
</target>
<!-- Creates own copy of IDE for coverage, because
instrumented IDE cannot be used for anything else -->
<target name="copy-ide">
<mkdir dir="${netbeans.instr.dir}"/>
<copy todir="${netbeans.instr.dir}">
<fileset dir="${netbeans.dir}"/>
</copy>
</target>
<target name="pre-instrument"> <!-- Following is needed because EMMA processes also class archives that are reachable by Class-Path entry in manifest file and this particular jar is signed and therefore cannot be processed and rejarred.
If there is another signed jar being processed add it here! -->
<copy file="${netbeans.instr.dir}/platform/modules/ext/jh-2.0_02.jar"
tofile="${netbeans.instr.dir}/platform/modules/ext/jh-2.0_02.jar_orig"/>
</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.