build.xml.svn-base
来自「cqME :java framework for TCK test.」· SVN-BASE 代码 · 共 170 行
SVN-BASE
170 行
<?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="Simple TestSuite" 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"/> <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}"/> <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> <!-- Compile TestSuite, Interview, Support Classes (Java SE part) --> <mkdir dir="${build}/sample_jt"/> <javac srcdir="${basedir}/src" destdir="${build}/sample_jt" classpath="${javatest.jar}:${mefw.jar}:${interviewlib.jar}:${jh.jar}" includeJavaRuntime="no" includeAntRuntime="no" debug="yes" /> <!-- copy resources --> <copy todir="${build}/sample_jt"> <fileset dir="${basedir}/src" includes="**/*.properties **/*.jhm **/*.hs **/*.css **/*.html"/> </copy> <jar destfile="${testsuite.lib.dir}/sample_jt.jar" basedir="${build}/sample_jt"/> <!-- Compile Java ME part of tests --> <mkdir dir="${nonpreverified.classes.dir}"/> <javac srcdir="${basedir}/tests" destdir="${nonpreverified.classes.dir}" bootclasspath="${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}"/> <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="${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> <!-- 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="clean" description="Full cleanup."> <delete dir="${build}"/> <delete dir="${dist}"/> </target> <target name="dist" depends="init"> </target></project>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?