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

📄 build.xml

📁 一个经典的java的web服务器的建立源代码
💻 XML
字号:
<?xml version="1.0"?>
<!-- $Id: build.xml,v 1.11 2001/01/23 00:17:35 nconway Exp $ -->

<!-- To install Tornado, see the included README file. This file
     is primarily of interest to Tornado hackers, or those interested
     in hacking the Tornado build process.
-->

<project name="Tornado" default="compile">
  <!-- Set global properties -->
  <property name="src" value="." />
  <property name="build" value="build" />
  <property name="docs" value="docs" />
  <property name="conf" value="conf" />
  <property name="tests" value="test" />
  <property name="testbuild" value="${build}" />

  <target name="init">
    <!-- Create the timestamp -->
    <tstamp/>
  </target>

  <target name="prepare" depends="init">
    <!-- Create the directories in the build tree -->
    <mkdir dir="${build}" />
  </target>

  <target name="compile" depends="prepare">
    <javac srcdir="${src}"
           destdir="${build}"
           excludes="${conf}/**,${tests}/**,**/CVS/*"
           optimize="yes"
    />
  </target>

  <target name="install" depends="compile">
  </target>

  <target name="installjar" depends="compile">
  </target>

  <target name="clean">
    <!-- Delete the build tree -->
    <delete dir="${build}" />
  </target>

  <target name="preparetests" depends="init">
    <!-- Create the directories for the tornado.test build tree -->
    <mkdir dir="${testbuild}" />
  </target>

  <target name="compiletests" depends="compile,preparetests">
    <javac srcdir="${tests}"
           destdir="${testbuild}"
           excludes="CVS/**"
           optimize="yes"
    />

    <copy todir="${testbuild}/data" includeEmptyDirs="no">
      <fileset dir="${tests}/data" excludes="**/CVS/*" />
    </copy>
  </target>

  <target name="runtests" depends="compiletests">
    <junit printsummary="yes" haltonfailure="yes" fork="yes" dir="${testbuild}">
      <classpath>
        <pathelement location="${testbuild}" />
        <pathelement location="${build}" />
        <pathelement location="${java.class.path}" />
      </classpath>

      <formatter type="plain" />

      <test name="tornado.test.AllTests" />
    </junit>
  </target>

  <target name="cleantests">
    <!-- Delete the compiled bytecode -->
    <delete dir="${testbuild}" />
    <delete>
      <!-- Delete the test results -->
      <fileset dir="." includes="TEST-*.txt" />
    </delete>
  </target>

  <target name="preparedocs" depends="init">
    <!-- Create the directories in the documentation tree -->
    <mkdir dir="${docs}" />
  </target>

  <target name="makedocs" depends="preparedocs">
    <!-- Make the docs. We don't include deprecation information because
         currently nothing is deprecated. The sourcepath attribute is
         a hack - we should get this working properly. -->
    <javadoc packagenames="tornado"
             sourcepath="/home/nconway"
             destdir="${docs}"
             private="true"
             nodeprecated="true"
             nodeprecatedlist="true" />
  </target>

  <target name="cleandocs">
    <!-- Delete the documentation tree -->
    <delete dir="${docs}" />
  </target>
</project>

⌨️ 快捷键说明

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