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

📄 build.xml

📁 thinking in java 书中源码 第四版
💻 XML
📖 第 1 页 / 共 2 页
字号:
     classname="MoreBasicThreads"
     classpath="${java.class.path};${basedir};${basedir}/.."
     dir="../concurrency/"
     failonerror="true"
     fork="true"/>
  </target>

  <target name="MultiLock">
    <java
     classname="MultiLock"
     classpath="${java.class.path};${basedir};${basedir}/.."
     dir="../concurrency/"
     failonerror="true"
     fork="true"/>
  </target>

  <target name="MutexEvenGenerator">
    <java
     classname="MutexEvenGenerator"
     classpath="${java.class.path};${basedir};${basedir}/.."
     dir="../concurrency/"
     failonerror="true"
     fork="true"/>
  </target>

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

  <target name="NIOInterruption">
    <java
     classname="NIOInterruption"
     classpath="${java.class.path};${basedir};${basedir}/.."
     dir="../concurrency/"
     failonerror="true"
     fork="true"/>
  </target>

  <target name="NotifyVsNotifyAll">
    <java
     classname="NotifyVsNotifyAll"
     classpath="${java.class.path};${basedir};${basedir}/.."
     dir="../concurrency/"
     failonerror="true"
     fork="true"/>
  </target>

  <target name="OrnamentalGarden">
    <java
     classname="OrnamentalGarden"
     classpath="${java.class.path};${basedir};${basedir}/.."
     dir="../concurrency/"
     failonerror="true"
     fork="true"/>
  </target>

  <target name="PipedIO">
    <java
     classname="PipedIO"
     classpath="${java.class.path};${basedir};${basedir}/.."
     dir="../concurrency/"
     failonerror="true"
     fork="true"/>
  </target>

  <target name="PriorityBlockingQueueDemo">
    <java
     classname="PriorityBlockingQueueDemo"
     classpath="${java.class.path};${basedir};${basedir}/.."
     dir="../concurrency/"
     failonerror="true"
     fork="true"/>
  </target>

  <target name="ReaderWriterList">
    <java
     classname="ReaderWriterList"
     classpath="${java.class.path};${basedir};${basedir}/.."
     dir="../concurrency/"
     failonerror="true"
     fork="true"/>
  </target>

  <target name="ResponsiveUI">
    <java
     classname="ResponsiveUI"
     classpath="${java.class.path};${basedir};${basedir}/.."
     dir="../concurrency/"
     failonerror="true"
     fork="true"/>
  </target>

  <target name="Restaurant">
    <java
     classname="Restaurant"
     classpath="${java.class.path};${basedir};${basedir}/.."
     dir="../concurrency/"
     failonerror="true"
     fork="true"/>
  </target>

  <target name="SelfManaged">
    <java
     classname="SelfManaged"
     classpath="${java.class.path};${basedir};${basedir}/.."
     dir="../concurrency/"
     failonerror="true"
     fork="true"/>
  </target>

  <target name="SemaphoreDemo">
    <java
     classname="SemaphoreDemo"
     classpath="${java.class.path};${basedir};${basedir}/.."
     dir="../concurrency/"
     failonerror="true"
     fork="true"/>
  </target>

  <target name="SerialNumberChecker">
    <java
     classname="SerialNumberChecker"
     classpath="${java.class.path};${basedir};${basedir}/.."
     dir="../concurrency/"
     failonerror="true"
     fork="true">
      <arg line="4"/>
    </java>
  </target>

  <target name="SettingDefaultHandler">
    <java
     classname="SettingDefaultHandler"
     classpath="${java.class.path};${basedir};${basedir}/.."
     dir="../concurrency/"
     failonerror="true"
     fork="true"/>
  </target>

  <target name="SimpleDaemons">
    <java
     classname="SimpleDaemons"
     classpath="${java.class.path};${basedir};${basedir}/.."
     dir="../concurrency/"
     failonerror="true"
     fork="true"/>
  </target>

  <target name="SimpleMicroBenchmark">
    <java
     classname="SimpleMicroBenchmark"
     classpath="${java.class.path};${basedir};${basedir}/.."
     dir="../concurrency/"
     failonerror="true"
     fork="true"/>
  </target>

  <target name="SimplePriorities">
    <java
     classname="SimplePriorities"
     classpath="${java.class.path};${basedir};${basedir}/.."
     dir="../concurrency/"
     failonerror="true"
     fork="true"/>
  </target>

  <target name="SimpleThread">
    <java
     classname="SimpleThread"
     classpath="${java.class.path};${basedir};${basedir}/.."
     dir="../concurrency/"
     failonerror="true"
     fork="true"/>
  </target>

  <target name="SingleThreadExecutor">
    <java
     classname="SingleThreadExecutor"
     classpath="${java.class.path};${basedir};${basedir}/.."
     dir="../concurrency/"
     failonerror="true"
     fork="true"/>
  </target>

  <target name="SleepingTask">
    <java
     classname="SleepingTask"
     classpath="${java.class.path};${basedir};${basedir}/.."
     dir="../concurrency/"
     failonerror="true"
     fork="true"/>
  </target>

  <target name="SynchronizationComparisons">
    <java
     classname="SynchronizationComparisons"
     classpath="${java.class.path};${basedir};${basedir}/.."
     dir="../concurrency/"
     failonerror="true"
     fork="true"/>
  </target>

  <target name="SynchronizedEvenGenerator">
    <java
     classname="SynchronizedEvenGenerator"
     classpath="${java.class.path};${basedir};${basedir}/.."
     dir="../concurrency/"
     failonerror="true"
     fork="true"/>
  </target>

  <target name="SyncObject">
    <java
     classname="SyncObject"
     classpath="${java.class.path};${basedir};${basedir}/.."
     dir="../concurrency/"
     failonerror="true"
     fork="true"/>
  </target>

  <target name="TestBlockingQueues">
    <java
     classname="TestBlockingQueues"
     classpath="${java.class.path};${basedir};${basedir}/.."
     dir="../concurrency/"
     failonerror="true"
     fork="true"/>
  </target>

  <target name="ThreadLocalVariableHolder">
    <java
     classname="ThreadLocalVariableHolder"
     classpath="${java.class.path};${basedir};${basedir}/.."
     dir="../concurrency/"
     failonerror="true"
     fork="true"/>
  </target>

  <target name="ThreadVariations">
    <java
     classname="ThreadVariations"
     classpath="${java.class.path};${basedir};${basedir}/.."
     dir="../concurrency/"
     failonerror="true"
     fork="true"/>
  </target>

  <target name="ToastOMatic">
    <java
     classname="ToastOMatic"
     classpath="${java.class.path};${basedir};${basedir}/.."
     dir="../concurrency/"
     failonerror="true"
     fork="true"/>
  </target>

  <target name="RestaurantWithQueues">
    <java
     classname="concurrency.restaurant2.RestaurantWithQueues"
     classpath="${java.class.path};${basedir};${basedir}/.."
     dir="../concurrency/restaurant2/"
     failonerror="true"
     fork="true">
      <arg line="5"/>
    </java>
  </target>

  <target name="WaxOMatic">
    <java
     classname="concurrency.waxomatic.WaxOMatic"
     classpath="${java.class.path};${basedir};${basedir}/.."
     dir="../concurrency/waxomatic/"
     failonerror="true"
     fork="true"/>
  </target>

  <target name="WaxOMatic2">
    <java
     classname="concurrency.waxomatic2.WaxOMatic2"
     classpath="${java.class.path};${basedir};${basedir}/.."
     dir="../concurrency/waxomatic2/"
     failonerror="true"
     fork="true"/>
  </target>

  <target name="Atomicity">
    <exec executable="javap">
      <arg value="-c"/>
      <arg value="Atomicity"/>
    </exec>
  </target>

  <target
   depends="build"
   description="Compile and run"
   name="run">
    <touch file="failures"/>
    <antcall target="ActiveObjectDemo"/>
    <antcall target="AtomicIntegerTest"/>
    <antcall target="AtomicityTest"/>
    <antcall target="AttemptLocking"/>
    <antcall target="BankTellerSimulation"/>
    <antcall target="BasicThreads"/>
    <antcall target="CachedThreadPool"/>
    <antcall target="CallableDemo"/>
    <antcall target="CaptureUncaughtException"/>
    <antcall target="CarBuilder"/>
    <antcall target="CountDownLatchDemo"/>
    <antcall target="CriticalSection"/>
    <antcall target="DaemonFromFactory"/>
    <antcall target="Daemons"/>
    <antcall target="DaemonsDontRunFinally"/>
    <antcall target="DeadlockingDiningPhilosophers"/>
    <antcall target="DelayQueueDemo"/>
    <antcall target="EvenGenerator"/>
    <antcall target="ExceptionThread"/>
    <antcall target="ExchangerDemo"/>
    <antcall target="ExplicitCriticalSection"/>
    <antcall target="FastSimulation"/>
    <antcall target="FixedDiningPhilosophers"/>
    <antcall target="FixedThreadPool"/>
    <antcall target="GreenhouseScheduler"/>
    <antcall target="HorseRace"/>
    <antcall target="Interrupting"/>
    <antcall target="Interrupting2"/>
    <antcall target="InterruptingIdiom"/>
    <antcall target="Joining"/>
    <antcall target="ListComparisons"/>
    <antcall target="MainThread"/>
    <antcall target="MapComparisons"/>
    <antcall target="MoreBasicThreads"/>
    <antcall target="MultiLock"/>
    <antcall target="NaiveExceptionHandling"/>
    <antcall target="NIOInterruption"/>
    <antcall target="NotifyVsNotifyAll"/>
    <antcall target="OrnamentalGarden"/>
    <antcall target="PipedIO"/>
    <antcall target="PriorityBlockingQueueDemo"/>
    <antcall target="ReaderWriterList"/>
    <antcall target="Restaurant"/>
    <antcall target="SelfManaged"/>
    <antcall target="SemaphoreDemo"/>
    <antcall target="SerialNumberChecker"/>
    <antcall target="SettingDefaultHandler"/>
    <antcall target="SimpleDaemons"/>
    <antcall target="SimpleMicroBenchmark"/>
    <antcall target="SimplePriorities"/>
    <antcall target="SimpleThread"/>
    <antcall target="SingleThreadExecutor"/>
    <antcall target="SleepingTask"/>
    <antcall target="SynchronizationComparisons"/>
    <antcall target="SyncObject"/>
    <antcall target="ThreadLocalVariableHolder"/>
    <antcall target="ThreadVariations"/>
    <antcall target="ToastOMatic"/>
    <antcall target="RestaurantWithQueues"/>
    <antcall target="WaxOMatic"/>
    <antcall target="WaxOMatic2"/>
    <antcall target="Atomicity"/>
    <echo
     message="* AtomicEvenGenerator must be run by hand *"/>
    <echo message="* CloseResource must be run by hand *"/>
    <echo message="* MutexEvenGenerator must be run by hand *"/>
    <echo message="* ResponsiveUI must be run by hand *"/>
    <echo
     message="* SynchronizedEvenGenerator must be run by hand *"/>
    <echo message="* TestBlockingQueues must be run by hand *"/>
    <delete file="failures"/>
  </target>

  <target description="delete all byproducts" name="clean">
    <delete>
      <fileset dir="${basedir}" includes="**/*.class"/>
      <fileset dir="${basedir}" includes="**/*Output.txt"/>
      <fileset dir="${basedir}" includes="**/log.txt"/>
      <fileset dir="${basedir}" includes="failures"/>
    </delete>
    <echo message="clean successful"/>
  </target>

</project>


⌨️ 快捷键说明

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