build.xml

来自「weblogic_src_xml.rar」· XML 代码 · 共 39 行

XML
39
字号
<project name="xml.dom" default="all" basedir=".">

  <property environment="env"/>
  <property file="../../../examples.properties"/>
  <property name="build.compiler" value="${compiler}"/>

  <!-- set global properties for this build -->
  <property name="source" value="."/>

  <target name="all" depends="compile.client, copy"/>

  <!-- Compile Client class into the clientclasses directory -->
  <target name="compile.client">
    <javac srcdir=".."
      destdir="${client.classes.dir}"
      includes="Client.java"
    />
  </target>

  <!-- Copy the .jsp files into Examples Web App -->
  <target name="copy">
    <copy todir="${ex.webapp.dir}">
      <fileset dir="${source}">
        <include name="Dom.jsp"/>
      </fileset>
    </copy>
  </target>

  <!-- Run the example -->
  <target name="run">
    <java classname="examples.xml.Client" fork="yes" failonerror="true">
      <arg line="http://localhost:${port}/examplesWebApp/Dom.jsp stock_quote.xml"/>
      <classpath>
        <pathelement path="${ex.classpath}"/>
      </classpath>
    </java>
  </target>
</project>

⌨️ 快捷键说明

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