⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 build.xml.svn-base

📁 cqME :java framework for TCK test.
💻 SVN-BASE
字号:
<?xml version="1.0"?><!--  $Id$  Copyright 1996-2007 Sun Microsystems, Inc. All Rights Reserved.  DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER  This program is free software; you can redistribute it and/or  modify it under the terms of the GNU General Public License version  2 only, as published by the Free Software Foundation.  This program is distributed in the hope that it will be useful, but  WITHOUT ANY WARRANTY; without even the implied warranty of  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU  General Public License version 2 for more details (a copy is  included at /legal/license.txt).  You should have received a copy of the GNU General Public License  version 2 along with this work; if not, write to the Free Software  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA  Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa  Clara, CA 95054 or visit www.sun.com if you need additional  information or have any questions.--><project name="Interactive test suite"         default="dist"         basedir="..">           <!-- Try to load ME FW main build settings, if they're present -->   <property file="../../build/local.properties"/>  <property file="build/local.properties"/>  <property file="../../build/build.properties"/>  <property file="build/build.properties"/>  <property name="dist"                location="${basedir}-build"/>  <property name="build"               location="${dist}/build"/>  <property name="buildfiles"          location="${basedir}/build"/>  <property name="testsuite.dir"       location="${dist}/${TESTSUITE_NAME}"/>  <property name="testsuite.lib.dir"   location="${testsuite.dir}/lib"/>  <property name="testsuite.tests.dir" location="${testsuite.dir}/tests"/>  <property name="nonpreverified.classes.dir"            location="${build}/tests-nonpreverified"/>  <property name="classes.dir"            location="${testsuite.dir}/classes"/>  <property name="preverified.classes.dir"            location="${classes.dir}/preverified"/>  <property name="shared.resources.dir"            location="${classes.dir}/shared"/>  <property name="testclasses.lst"            location="${shared.resources.dir}/testclasses.lst"/>   <property name="javatest.jar"     location="${JTHARNESS_JAR}"/>  <property name="mefw.jar"         location="${ME_FRAMEWORK_LIB_DIR}/j2mefw_jt.jar"/>  <property name="interviewlib.jar" location="${ME_FRAMEWORK_LIB_DIR}/interviewlib.jar"/>  <property name="j2me_messaging.jar"      location="${ME_FRAMEWORK_LIB_DIR}/j2me_messaging.jar"/>  <property name="jh.jar"           location="${JAVAHELP_JAR}"/>  <property name="midp.agent.jar"   location="${ME_FRAMEWORK_LIB_DIR}/midp_agent.jar"/>  <property name="preverifier"      location="${MIDP_HOME}/bin/preverify"/>  <path id="implementation.class.path">    <pathelement location="${CLDC_CLASSES}"/>    <pathelement location="${MIDP_SPEC_CLASSES}"/>  </path>  <property name="implementation.class.path"             refid="implementation.class.path"/>  <target name="init">    <!-- Verify settings first -->    <fail message="ME_FRAMEWORK_LIB_DIR is not defined. Adjust your settings."          unless="ME_FRAMEWORK_LIB_DIR"/>    <fail message="Some of properties: CLDC_CLASSES or MIDP_SPEC_CLASSES or MIDP_HOMEare not correctly defined. Most probably WIRELESS_TOOLKIT is not defined. Adjust your settings.">      <condition>        <not>          <and>            <available file="${CLDC_CLASSES}"/>            <available file="${MIDP_SPEC_CLASSES}"/>            <available file="${MIDP_HOME}"/>         </and>        </not>      </condition>    </fail>    <fail message="JTHARNESS_JAR is not correctly defined. Adjust your settings.">      <condition>        <not>          <available file="${JTHARNESS_JAR}"/>        </not>      </condition>    </fail>    <fail message="JAVAHELP_JAR is not defined. Adjust your settings."          unless="JAVAHELP_JAR"/>    <mkdir dir="${dist}"/>    <mkdir dir="${build}"/>    <mkdir dir="${testsuite.dir}"/>    <mkdir dir="${testsuite.lib.dir}"/>    <mkdir dir="${classes.dir}"/>    <copy todir="${testsuite.lib.dir}">      <fileset dir="${ME_FRAMEWORK_LIB_DIR}"/>      <fileset file="${JAVAHELP_JAR}"/>      <fileset file="${javatest.jar}"/>    </copy>    <copy file="${buildfiles}/testsuite.jtt" todir="${testsuite.dir}"/>    <copy todir="${testsuite.tests.dir}">      <fileset dir="${basedir}/tests"/>    </copy>  </target>  <target name="compile-tests" depends="init">    <mkdir dir="${testsuite.dir}/classes"/>    <!--Create empty shared directory to avoid exception during test run-->    <mkdir dir="${shared.resources.dir}"/>        <!-- Compile Java ME part of tests -->    <mkdir dir="${nonpreverified.classes.dir}"/>    <javac        srcdir="${basedir}/tests"        destdir="${nonpreverified.classes.dir}"        bootclasspath="${ME_FRAMEWORK_LIB_DIR}/midp_testlibs.jar:${midp.agent.jar}:${j2me_messaging.jar}:${CLDC_CLASSES}:${MIDP_SPEC_CLASSES}"        includeJavaRuntime="no"         includeAntRuntime="no"        debug="yes"        target="1.1"        source="1.2"        excludes="**/server/*"    />    <mkdir dir="${preverified.classes.dir}"/>    <!-- not needed yet    <mkdir dir="${shared.resources.dir}"/>    <copy file="build/testclasses.lst" tofile="${testclasses.lst}"/>    -->    <!-- Preverify Java ME classes -->    <exec executable="${preverifier}" dir="${build}/tests-nonpreverified" failonerror="yes">      <env key="LANG" value="C"/>       <arg line="-classpath"/>       <arg path="${ME_FRAMEWORK_LIB_DIR}/midp_testlibs.jar:${midp.agent.jar}:${j2me_messaging.jar}:${CLDC_CLASSES}:${MIDP_SPEC_CLASSES}:${PREVERIFIER_EXTRA_PATH}"/>      <arg line="-d ${preverified.classes.dir}"/>      <arg line="${nonpreverified.classes.dir}"/>    </exec>  </target>  <target name="compile-src" depends="init">    <!-- Compile TestSuite, Interview, Support Classes (Java SE part) -->    <mkdir dir="${build}/sample_jt"/>    <javac        srcdir="${basedir}/src"        destdir="${classes.dir}"        classpath="${javatest.jar}:${mefw.jar}:${interviewlib.jar}:${jh.jar}"        includeJavaRuntime="no"         includeAntRuntime="no"        debug="yes"    />  </target>    <target name="compile-remote-code" depends="init">    <!-- Compile Java SE part of distributed tests -->    <javac        srcdir="${basedir}/tests"        destdir="${classes.dir}"        classpath="${javatest.jar}:${mefw.jar}"        includeJavaRuntime="no"         includeAntRuntime="no"        debug="yes"        includes="**/server/*"    />  </target>  <target name="dist" depends="compile-tests, compile-remote-code, compile-src"/>  <target name="clean">    <delete dir="${dist}"/>  </target></project>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -