build.xml.svn-base

来自「cqME :java framework for TCK test.」· SVN-BASE 代码 · 共 75 行

SVN-BASE
75
字号
<?xml version="1.0" encoding="UTF-8"?>
<!--
  $Id$

  Copyright 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.
-->
<!-- You may freely edit this file. See harness/README in the NetBeans platform -->
<!-- for some information on what you could do (e.g. targets to override). -->
<!-- If you delete this file and reopen the project it will be recreated. -->
<project name="com.sun.testme" default="netbeans" basedir=".">
    <description>Builds, tests, and runs the project com.su.testme.</description>
    <import file="nbproject/build-impl.xml"/>
    
    <target name="netbeans" depends="package-samples,projectized-common.netbeans"/>

    <property name="JTharnessAndJ2MEfm.dir" location="${basedir}/../JTharnessAndJ2MEfm" />

    <target name="package-samples" depends="make-fwpatch">
        <delete file="${basedir}/src/com/sun/testme/EmptyTestMEProject.zip"/>
        <copy todir="templates/EmptyTestMEProject/lib" overwrite="true">
            <fileset dir="${JTharnessAndJ2MEfm.dir}/release/modules/ext" includes="*" />
        </copy>
        <zip compress="9" basedir="templates/EmptyTestMEProject/"
            zipfile="${basedir}/src/com/sun/testme/EmptyTestMEProject.zip"/>
    </target>
        
    <target name="make-fwpatch">
         <jar basedir="${JTharnessAndJ2MEfm.dir}/build/classes"
              destfile="${JTharnessAndJ2MEfm.dir}/release/modules/ext/j2meFMPatch.jar"
              includes="com/sun/testme/framework/*"/>
    </target>
    

    <target name="jar-prep" depends="projectized-common.jar-prep">
        <echo message="code.name.base.slashes=${code.name.base.slashes}"/>

        <property name="templates.dir" value="${code.name.base.slashes}/file/templates"/>

        <antcall target="zip-template">
            <param name="template.name" value="simpletest"/>
        </antcall>
        <antcall target="zip-template">
            <param name="template.name" value="distributedtest"/>
        </antcall>
        <antcall target="zip-template">
            <param name="template.name" value="interactivetest"/>
        </antcall>
    </target>  
    
    <target name="zip-template">
        <zip basedir="${src.dir}/${templates.dir}/${template.name}" destfile="${build.classes.dir}/${code.name.base.slashes}/${template.name}.zip"/>
    </target>
    
</project>

⌨️ 快捷键说明

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