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

📄 rebuild.xml

📁 java base64
💻 XML
字号:
<?xml version="1.0"?>
<!-- REBUILD.XML simple common11 build that presumes all files are already in the project directory. -->
<!-- Build with ant -f rebuild.xml zip -->
<!-- Compile and jar common11 using ANT -->
<!-- Invoke with [ant clean] to erase class files and start over. -->
<!-- Invoke with [ant compile] to just compile. -->
<!-- Invoke with [ant jar] to compile and create jar files. -->
<!-- Invoke with [ant jet] to create JET executables. -->
<!-- Invoke with [ant zip] to create source code zip files. -->
<!-- For details of ANT use, see http://mindprod.com/jgloss/ant.html -->
<project name="common11" basedir="E:/" default="jar">


<!-- D E F I N I T I O N S -->
<!-- ANT.project.dir is com/mindprod/common11 -->
<!-- basedir is E:/ -->

<!-- project is common11 -->
<property name="project" value="common11" />

<!-- package.name is com.mindprod.common11 -->
<property name="package.name" value="com.mindprod.common11" />

<!-- package.dir is com/mindprod/common11 -->
<property name="package.dir" value="com/mindprod/common11" />

<!-- jar.name is common11.jar -->
<property name="jar.name" value="common11.jar" />

<!-- jar.file is com/mindprod/common11/common11.jar -->
<property name="jar.file" value="com/mindprod/common11/common11.jar" />

<!-- icon16.dir is E:/mindprod/image/icon16 -->
<property name="icon16.dir" value="E:/mindprod/image/icon16" />

<!-- icon32.dir is E:/mindprod/image/icon32 -->
<property name="icon32.dir" value="E:/mindprod/image/icon32" />

<!-- ico.dir is E:/mindprod/image/ico -->
<property name="ico.dir" value="E:/mindprod/image/ico" />

<!-- icon48.dir is E:/mindprod/image/icon48 -->
<property name="icon48.dir" value="E:/mindprod/image/icon48" />

<!-- icon64.dir is E:/mindprod/image/icon64 -->
<property name="icon64.dir" value="E:/mindprod/image/icon64" />

<!-- icon128.dir is E:/mindprod/image/icon128 -->
<property name="icon128.dir" value="E:/mindprod/image/icon128" />

<!-- pad.dir is E:/mindprod/pad -->
<property name="pad.dir" value="E:/mindprod/pad" />

<!-- precis.dir is E:/mindprod/precis -->
<property name="precis.dir" value="E:/mindprod/precis" />

<!-- screenshot.dir is E:/mindprod/image/screenshot -->
<property name="screenshot.dir" value="E:/mindprod/image/screenshot" />

<!-- splash.dir is E:/mindprod/image/splash -->
<property name="splash.dir" value="E:/mindprod/image/splash" />

<!-- extensions we distribute. Case sensitive! -->
<property name="distributable.exts" value="**/*.au,**/*.bat,**/*.btm,**/*.c*,**/*.class,**/*.dll,**/*.gif,**/*.h,**/*.hpp,**/*.htm,**/*.html,**/*.jar,**/*.ico,**/*.ION,**/*.ion,**/*.java,**/*.jnlp,**/*.jpg,**/*.look,**/*.png,**/*.properties,**/*.ser,**/*.txt,**/*.use,**/*.xml" />

<!-- C L E A N -->
<target name="clean">
<echo message="deleting all class, jar and zip files in ${package.dir} tree" />
  <delete>
    <fileset dir="${package.dir}" includes="**/*.class" />
    <fileset dir="${package.dir}" includes="**/*.jar" />
    <fileset dir="${package.dir}" includes="${zip.name}" />
  </delete>
</target>

<!-- C O M P I L E -->
<target name="compile">
<echo message="compiling ${package.dir} tree." />
  <javac source="1.3" target="1.1" srcdir="${package.dir}" sourcepath="${basedir}" debug="on">
  </javac>
</target>

<!-- J A V A H -->
<target name="javah" depends="compile">
  <!-- nothing to do -->
</target>

<!-- J A R -->
<!-- Make apache-ant-1.7.0\lib\GenJar.jar known to ANT -->
<!-- See http://mindprod.com/jgloss/genjar.html for details -->
<taskdef resource="genjar.properties" />

<target name="jar" depends="compile">
  <genjar jarfile="${jar.file}">
    <!-- include all classes in the package -->
    <class>
      <fileset dir="${basedir}">
        <!-- include all the classes in com/mindprod/common11 -->
        <include name="${package.dir}/*.class" />
        <!-- all dependent classes will be automatically included -->
      </fileset>
    </class>
  </genjar>
</target>

<!-- P R E J E T avoid JET compile if already done. -->
<target name="prejet">
  <!-- nothing to do -->
</target>

<!-- J E T -->
<!-- Requires Excelsior JET native Java compiler jc.exe on the path -->
<!-- See http://mindprod.com/jgloss/jet.html for details -->
<target name="jet" depends="prejet" unless="jet.uptodate">
  <!-- nothing to do -->
</target>

<!-- Z I P -->
<target name="zip" depends="jar">
  <!-- prepare javadoc -->
  <javadoc
    author="true"
    destdir="${package.dir}/javadoc"
    packagenames="${package.name}.*"
    sourcepath="E:/"
    use="true"
    version="true"
     />
  <zip destfile="${zip.file}" duplicate="preserve" filesonly="true">
    <!-- zipfileset includes all subdirs as well -->
    <zipfileset dir="${package.dir}" prefix="${package.dir}" includes="${distributable.exts}" />
    <zipfileset dir="com/mindprod/common11" prefix="com/mindprod/common11" includes="${distributable.exts}" />
    <zipfileset dir="com/mindprod/ledatastream" prefix="com/mindprod/ledatastream" includes="${distributable.exts}" />
  </zip>
</target>
</project>

⌨️ 快捷键说明

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