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

📄 build.xml

📁 think in java TIJ-3rd-edition-code.zip
💻 XML
字号:
<?xml version="1.0"?>


<project name="Thinking in Java (c10)" default="c10" basedir=".">
  <target name="c10" depends="c10.check,c10.prepare,c10.build,c10.run"/>

  <!-- check for any jar dependencies -->
  <target name="c10.check">
  </target>

  <!-- build all dependencies if this script is run alone -->
  <target name="c10.prepare" unless="masterscript">
    <ant
      antfile="${basedir}\..\com\build.xml"
      target="com.build"
      dir="${basedir}\..\com"
      output="${basedir}\..\com\log.txt"
    />

  </target>

  <!-- build all classes in this directory -->
  <target name="c10.build">
    <javac
      srcdir="${basedir}"
      classpath="${basedir}\.."
      source="1.4"
    />
  </target>

  <!-- run all classes in this directory -->
  <target name="c10.run">
    <echo message="* AlwaysFinally *"/>
    <java
      taskname="AlwaysFinally"
      classname="AlwaysFinally"
      classpath="${basedir};${basedir}\.."
      fork="true"
      failonerror="true"
    />

    <echo message="* Cleanup *"/>
    <java
      taskname="Cleanup"
      classname="Cleanup"
      classpath="${basedir};${basedir}\.."
      fork="true"
      failonerror="true"
    />

    <echo message="* ExceptionMethods *"/>
    <java
      taskname="ExceptionMethods"
      classname="ExceptionMethods"
      classpath="${basedir};${basedir}\.."
      fork="true"
      failonerror="true"
    />

    <echo message="* ExtraFeatures *"/>
    <java
      taskname="ExtraFeatures"
      classname="ExtraFeatures"
      classpath="${basedir};${basedir}\.."
      fork="true"
      failonerror="true"
    />

    <echo message="* FinallyWorks *"/>
    <java
      taskname="FinallyWorks"
      classname="FinallyWorks"
      classpath="${basedir};${basedir}\.."
      fork="true"
      failonerror="true"
    />

    <echo message="* FullConstructors *"/>
    <java
      taskname="FullConstructors"
      classname="FullConstructors"
      classpath="${basedir};${basedir}\.."
      fork="true"
      failonerror="true"
    />

    <echo message="* Human *"/>
    <java
      taskname="Human"
      classname="Human"
      classpath="${basedir};${basedir}\.."
      fork="true"
      failonerror="true"
    />

    <echo message="* LostMessage *"/>
    <java
      taskname="LostMessage"
      classname="LostMessage"
      classpath="${basedir};${basedir}\.."
      fork="true"
      failonerror="false"
    />
    <echo message="* Exception was expected *"/>

    <echo message="* NeverCaught *"/>
    <java
      taskname="NeverCaught"
      classname="NeverCaught"
      classpath="${basedir};${basedir}\.."
      fork="true"
      failonerror="false"
    />
    <echo message="* Exception was expected *"/>

    <echo message="* OnOffSwitch *"/>
    <java
      taskname="OnOffSwitch"
      classname="OnOffSwitch"
      classpath="${basedir};${basedir}\.."
      fork="true"
      failonerror="true"
    />

    <echo message="* RethrowNew *"/>
    <java
      taskname="RethrowNew"
      classname="RethrowNew"
      classpath="${basedir};${basedir}\.."
      fork="true"
      failonerror="false"
    />
    <echo message="* Exception was expected *"/>

    <echo message="* SimpleExceptionDemo *"/>
    <java
      taskname="SimpleExceptionDemo"
      classname="SimpleExceptionDemo"
      classpath="${basedir};${basedir}\.."
      fork="true"
      failonerror="true"
    />

    <echo message="* StormyInning *"/>
    <java
      taskname="StormyInning"
      classname="StormyInning"
      classpath="${basedir};${basedir}\.."
      fork="true"
      failonerror="true"
    />

    <echo message="* WithFinally *"/>
    <java
      taskname="WithFinally"
      classname="WithFinally"
      classpath="${basedir};${basedir}\.."
      fork="true"
      failonerror="true"
    />

  </target>

</project>

⌨️ 快捷键说明

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