build-impl.xml.svn-base
来自「cqME :java framework for TCK test.」· SVN-BASE 代码 · 共 99 行
SVN-BASE
99 行
<!-- $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="impl" default="jar" basedir="." xmlns:projdeps2="http://www.netbeans.org/ns/ant-project-references/2"> <target name="init-impl" description="Defines command-line specific properties."> <!-- Defines 'compile.bootclasspath' property used while compiling and preverifying test classes, and 'run.method' property used to claculate proper MIDlet-Jar-URL attribute of the JAD file. --> <condition property="compile.bootclasspath" value="${impl.classes}"> <isset property="impl.classes"/> </condition> <condition property="run.method" value="OTA-MEFW"> <not> <isset property="run.method"/> </not> </condition> </target> <target name="load-properties-impl"/> <target name="preverify" depends="init" description="Launches the preverifier tool."> <!-- Launchs the preverifier tool to preverify the test classes. The classpath used consists of the platform classes and the originally exported classes. This target requires two properties to be defined in build.properties file: 'impl.classes' and 'preverifier.exe'. The former defines the platform classes to be put on classpath and the later defines the preverifier tool executable. --> <fail unless="compile.bootclasspath" message="Please set impl.classes property or IMPL_CLASSES environment variable and restart."/> <fail unless="preverifier.exe" message="Please set preverifier.exe property or PREVERIFIER_EXE environment variable and restart."/> <exec executable="${preverifier.exe}" failonerror="yes"> <env key="LANG" value="C"/> <arg line="-classpath"/> <arg pathref="preverify.classpath"/> <arg line="-d ${build.preverified.dir}"/> <arg line="${build.classes.dir}"/> </exec> </target> <target name="run-test" depends="check-http-port" description="Starts the OTA provisioning server."> <!-- Starts the exported HTTP server for OTA provisioning of the exported test. Waits until the server is up listening on its port. --> <parallel> <antcall target="deploy"/> <sequential> <waitfor maxwait="60" maxwaitunit="second" checkevery="1000"> <socket server="localhost" port="${provisioning.http.port}"/> </waitfor> <property name="message.ok" value="Provisioning server has been started.${line.separator}You can now install the test on device from the following link:${line.separator} http://localhost:${provisioning.http.port}/${dist.jad}${line.separator}and run it."/> <property name="message.failed" value="Failed to start provisioning server.${line.separator}Probably, the port ${provisioning.http.port} is already in use.${line.separator}You can try to change the property 'provisioning.http.port'${line.separator}defined in file build.properties and restart."/> <condition property="message" value="${message.ok}" else="${message.failed}"> <http url="http://localhost:${provisioning.http.port}/${dist.jad}"/> </condition> <echo message="${message}"/> </sequential> </parallel> </target></project>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?