?? build.xml
字號:
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright 2003 Nokia Corporation.
THIS SOURCE CODE IS PROVIDED 'AS IS', WITH NO WARRANTIES WHATSOEVER,
EXPRESS OR IMPLIED, INCLUDING ANY WARRANTY OF MERCHANTABILITY, FITNESS
FOR ANY PARTICULAR PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE
OR TRADE PRACTICE, RELATING TO THE SOURCE CODE OR ANY WARRANTY OTHERWISE
ARISING OUT OF ANY PROPOSAL, SPECIFICATION, OR SAMPLE AND WITH NO
OBLIGATION OF NOKIA TO PROVIDE THE LICENSEE WITH ANY MAINTENANCE OR
SUPPORT. FURTHERMORE, NOKIA MAKES NO WARRANTY THAT EXERCISE OF THE
RIGHTS GRANTED HEREUNDER DOES NOT INFRINGE OR MAY NOT CAUSE INFRINGEMENT
OF ANY PATENT OR OTHER INTELLECTUAL PROPERTY RIGHTS OWNED OR CONTROLLED
BY THIRD PARTIES
Furthermore, information provided in this source code is preliminary,
and may be changed substantially prior to final release. Nokia Corporation
retains the right to make changes to this source code at
any time, without notice. This source code is provided for informational
purposes only.
Nokia and Nokia Connecting People are registered trademarks of Nokia
Corporation.
Java and all Java-based marks are trademarks or registered trademarks of
Sun Microsystems, Inc.
Other product and company names mentioned herein may be trademarks or
trade names of their respective owners.
A non-exclusive, non-transferable, worldwide, limited license is hereby
granted to the Licensee to download, print, reproduce and modify the
source code. The licensee has the right to market, sell, distribute and
make available the source code in original or modified form only when
incorporated into the programs developed by the Licensee. No other
license, express or implied, by estoppel or otherwise, to any other
intellectual property rights is granted herein. -->
<!--
This ant build file is meant to be used with Ant version 1.5.3 or higher
It also uses the MIDP oriented tasks found in the antenna project.
It is necessary to download antenna from http://antenna.sourceforge.net
version 0.9.13 or higher. Copy antenna-bin.jar to Ant's lib directory
-->
<project name="ImageViewer" default="build" basedir=".">
<description>
Build file for the ImageViewer MIDlet
</description>
<!-- set your custom properties in build.properties -->
<property file="build.properties"/>
<property file="../build.properties"/>
<property file="../../build.properties"/>
<property file="${user.home}/build.properties"/>
<!-- set global properties for this build -->
<property name="src" location="src"/>
<property name="classes" location="classes"/>
<property name="dist" location="."/>
<property name="res" location="res"/>
<!--
The emulator should support the File Connection api
For example the Noka SDK 1.0
-->
<property name="wtk.home" value="C:\\Nokia\\Devices\\Nokia_Prototype_SDK_1_0_Beta"/>
<property name="name.jar" value="${ant.project.name}.jar"/>
<property name="name.jad" value="${ant.project.name}.jad"/>
<path id="api.classpath">
<pathelement location="${wtk.home}\\lib\\cldcapi10.zip"/>
<pathelement location="${wtk.home}\\lib\\ext\\fca.zip"/>
</path>
<!-- Define two antenna tasks -->
<taskdef name="wtkbuild" classname="de.pleumann.antenna.WtkBuild"/>
<taskdef name="wtkpackage" classname="de.pleumann.antenna.WtkPackage"/>
<!--
Prints out configuration information
-->
<target name="info" description="Prints some basic build info">
<echo>Build file for the ${ant.project.name} MIDlet</echo>
<echo>Using WTK home as ${wtk.home}</echo>
<echo>Using MIDP api file as ${wtk.midpapi}</echo>
</target>
<!--
Init tasks set ups the basic directory structure
-->
<target name="init" depends="info" description="Creates basic directories">
<!-- Create the time stamp -->
<tstamp/>
<!-- Create the build directory structure used by compile -->
<mkdir dir="${classes}"/>
<mkdir dir="${dist}"/>
</target>
<!--
Compile tasks builds the source code
-->
<target name="compile" depends="init" description="Compiles the source">
<!-- Compile the java code from ${src} into ${build} -->
<!-- Contains two tasks for WTK and Nokia SDK -->
<wtkbuild srcdir="${src}" destdir="${classes}" deprecation="on" target="1.2" classpathref="api.classpath" unless="wtk.optionalpad.enabled"/>
<wtkbuild srcdir="${src}" destdir="${classes}" deprecation="on" target="1.2" if="wtk.optionalpad.enabled"/>
</target>
<!--
Build task build the jar file
-->
<target name="build" depends="compile" description="Build the MIDlet jar file">
<!-- package the classes and update the jad file-->
<wtkpackage jarfile="${dist}/${name.jar}" jadfile="${dist}/${name.jad}" preverify="true" classpath="${wtk.jsr75}">
<fileset dir="${classes}" includes="**/*.class"/>
<fileset dir="${res}" includes="**"/>
</wtkpackage>
</target>
<!--
Cleans directories
-->
<target name="clean" description="Clean up">
<!-- Delete the ${classes} directory tree -->
<delete dir="${classes}"/>
</target>
<!--
Do a clean build
-->
<target name="cleanbuild" depends="clean, build" description="Cleans and builds"/>
<!--
Test if the necessary classes or files are in place
-->
<target name="validate" depends="info" description="Tests whether the project can be built">
<!-- Detect if the MIDP and multimedia API are available -->
<condition property="buildable">
<and>
<available classname="javax.microedition.io.file.FileConnection" classpathref="api.classpath"/>
</and>
</condition>
<antcall target="failure"/>
<antcall target="success"/>
</target>
<target name="failure" unless="buildable">
<echo>Either MIDP or File Connection API not available</echo>
</target>
<target name="success" if="buildable">
<echo>MIDlet ${ant.project.name} can be built</echo>
</target>
</project>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -