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

📄 build.xml

📁 java编程思想(第四版)书中原代码 ,对初学者很有用的东西
💻 XML
📖 第 1 页 / 共 2 页
字号:
<?xml version="1.0" ?>

<project
 basedir="."
 default="run"
 name="Thinking in Java, 4th Edition by Bruce Eckel (chapter: gui)">

  <description>
    build.xml for the source code for the gui chapter of
    Thinking in Java, 4th Edition by Bruce Eckel
    Source code available at http://www.MindView.net
    See copyright notice in CopyRight.txt

    Ant available from: http://jakarta.apache.org/ant

    To see options, type: ant -p

    This file was automatically generated by AntBuilder
  </description>

  <condition property="version1.5">
    <equals arg1="1.5" arg2="${ant.java.version}"/>
  </condition>

  <available
   classname="javax.jnlp.FileOpenService"
   property="javax.jnlp.FileOpenService"/>

  <target name="net_mindview_util">
    <javac
     classpath="${basedir}/.."
     srcdir="${basedir}/../net/mindview/util/">
      <compilerarg value="-Xmaxerrs"/>
      <compilerarg value="10"/>
    </javac>
  </target>

  <target
   depends="net_mindview_util"
   description="Build all classes in this directory"
   name="build">
    <fail message="J2SE5 required" unless="version1.5"/>
    <fail
     Unless="javax.jnlp.FileOpenService"
     message="You must have javaws.jar in your classpath"/>
    <echo message="Building 'gui'"/>
    <javac
     classpath="${basedir}/.."
     debug="true"
     srcdir="${basedir}">
      <compilerarg value="-Xmaxerrs"/>
      <compilerarg value="10"/>
    </javac>
    <echo message="Build 'gui' succeeded"/>
  </target>

  <target name="BangBean2">
    <java
     classname="BangBean2"
     classpath="${java.class.path};${basedir};${basedir}/.."
     dir="../gui/"
     failonerror="false"
     fork="true"
     timeout="4000"/>
    <echo message="* Exception was expected *"/>
  </target>

  <target name="BeanDumper">
    <java
     classname="BeanDumper"
     classpath="${java.class.path};${basedir};${basedir}/.."
     dir="../gui/"
     failonerror="false"
     fork="true"
     timeout="4000"/>
    <echo message="* Exception was expected *"/>
  </target>

  <target name="BorderLayout1">
    <java
     classname="BorderLayout1"
     classpath="${java.class.path};${basedir};${basedir}/.."
     dir="../gui/"
     failonerror="false"
     fork="true"
     timeout="4000"/>
    <echo message="* Exception was expected *"/>
  </target>

  <target name="Borders">
    <java
     classname="Borders"
     classpath="${java.class.path};${basedir};${basedir}/.."
     dir="../gui/"
     failonerror="false"
     fork="true"
     timeout="4000"/>
    <echo message="* Exception was expected *"/>
  </target>

  <target name="Button1">
    <java
     classname="Button1"
     classpath="${java.class.path};${basedir};${basedir}/.."
     dir="../gui/"
     failonerror="false"
     fork="true"
     timeout="4000"/>
    <echo message="* Exception was expected *"/>
  </target>

  <target name="Button2">
    <java
     classname="Button2"
     classpath="${java.class.path};${basedir};${basedir}/.."
     dir="../gui/"
     failonerror="false"
     fork="true"
     timeout="4000"/>
    <echo message="* Exception was expected *"/>
  </target>

  <target name="Button2b">
    <java
     classname="Button2b"
     classpath="${java.class.path};${basedir};${basedir}/.."
     dir="../gui/"
     failonerror="false"
     fork="true"
     timeout="4000"/>
    <echo message="* Exception was expected *"/>
  </target>

  <target name="ButtonGroups">
    <java
     classname="ButtonGroups"
     classpath="${java.class.path};${basedir};${basedir}/.."
     dir="../gui/"
     failonerror="false"
     fork="true"
     timeout="4000"/>
    <echo message="* Exception was expected *"/>
  </target>

  <target name="Buttons">
    <java
     classname="Buttons"
     classpath="${java.class.path};${basedir};${basedir}/.."
     dir="../gui/"
     failonerror="false"
     fork="true"
     timeout="4000"/>
    <echo message="* Exception was expected *"/>
  </target>

  <target name="CheckBoxes">
    <java
     classname="CheckBoxes"
     classpath="${java.class.path};${basedir};${basedir}/.."
     dir="../gui/"
     failonerror="false"
     fork="true"
     timeout="4000"/>
    <echo message="* Exception was expected *"/>
  </target>

  <target name="ColorBoxes">
    <java
     classname="ColorBoxes"
     classpath="${java.class.path};${basedir};${basedir}/.."
     dir="../gui/"
     failonerror="false"
     fork="true"
     timeout="4000"/>
    <echo message="* Exception was expected *"/>
  </target>

  <target name="ComboBoxes">
    <java
     classname="ComboBoxes"
     classpath="${java.class.path};${basedir};${basedir}/.."
     dir="../gui/"
     failonerror="false"
     fork="true"
     timeout="4000"/>
    <echo message="* Exception was expected *"/>
  </target>

  <target name="Dialogs">
    <java
     classname="Dialogs"
     classpath="${java.class.path};${basedir};${basedir}/.."
     dir="../gui/"
     failonerror="false"
     fork="true"
     timeout="4000"/>
    <echo message="* Exception was expected *"/>
  </target>

  <target name="Faces">
    <java
     classname="Faces"
     classpath="${java.class.path};${basedir};${basedir}/.."
     dir="../gui/"
     failonerror="false"
     fork="true"
     timeout="4000"/>
    <echo message="* Exception was expected *"/>
  </target>

  <target name="FileChooserTest">
    <java
     classname="FileChooserTest"
     classpath="${java.class.path};${basedir};${basedir}/.."
     dir="../gui/"
     failonerror="false"
     fork="true"
     timeout="4000"/>
    <echo message="* Exception was expected *"/>
  </target>

  <target name="FlowLayout1">
    <java
     classname="FlowLayout1"
     classpath="${java.class.path};${basedir};${basedir}/.."
     dir="../gui/"
     failonerror="false"
     fork="true"
     timeout="4000"/>
    <echo message="* Exception was expected *"/>
  </target>

  <target name="GridLayout1">
    <java
     classname="GridLayout1"
     classpath="${java.class.path};${basedir};${basedir}/.."
     dir="../gui/"
     failonerror="false"
     fork="true"
     timeout="4000"/>
    <echo message="* Exception was expected *"/>
  </target>

  <target name="HelloLabel">
    <java
     classname="HelloLabel"
     classpath="${java.class.path};${basedir};${basedir}/.."
     dir="../gui/"
     failonerror="false"
     fork="true"
     timeout="4000"/>
    <echo message="* Exception was expected *"/>
  </target>

  <target name="HelloSwing">
    <java
     classname="HelloSwing"
     classpath="${java.class.path};${basedir};${basedir}/.."
     dir="../gui/"
     failonerror="false"
     fork="true"
     timeout="4000"/>
    <echo message="* Exception was expected *"/>
  </target>

  <target name="HTMLButton">
    <java
     classname="HTMLButton"
     classpath="${java.class.path};${basedir};${basedir}/.."
     dir="../gui/"
     failonerror="false"
     fork="true"
     timeout="4000"/>
    <echo message="* Exception was expected *"/>
  </target>

  <target name="InterruptableLongRunningCallable">
    <java
     classname="InterruptableLongRunningCallable"
     classpath="${java.class.path};${basedir};${basedir}/.."
     dir="../gui/"
     failonerror="false"
     fork="true"
     timeout="4000"/>
    <echo message="* Exception was expected *"/>
  </target>

  <target name="InterruptableLongRunningTask">
    <java
     classname="InterruptableLongRunningTask"
     classpath="${java.class.path};${basedir};${basedir}/.."
     dir="../gui/"
     failonerror="false"
     fork="true"
     timeout="4000"/>
    <echo message="* Exception was expected *"/>
  </target>

⌨️ 快捷键说明

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