build.xml

来自「puzzle game with java.very good !」· XML 代码 · 共 44 行

XML
44
字号


<project name="Schuifraam" default="dist" basedir=".">
    <description>
        Build van het schuifraam voor kennisintensieve toepassingen
    </description>
  <!-- set global properties for this build -->
  <property name="src" location="."/>
  
  <property name="build" location="build"/>
  <property name="dist" location="dist"/>

  <target name="init">
    <!-- Create the time stamp -->
    <tstamp/>
    <!-- Create the build directory structure used by compile -->
    <mkdir dir="${dist}"/>
    <mkdir dir="${build}"/>
  </target>

  <target name="compile" depends="init"
        description="compile the source">
        
    <!-- Compile the java code from ${src} into ${build} -->
    <javac srcdir="${src}" destdir="${build}"/>
  </target>

  <target name="dist" depends="compile"
        description="generate the distribution" >  
    <jar jarfile="puzzle.jar" basedir="${build}">
        <manifest>         
          <attribute name="Main-Class" value="gui.StartUp"/>
          <attribute name="Built-By" value="Frederik Taleman"/>
        </manifest>
    </jar>
  </target>

  <target name="clean"
        description="clean up" >
    <!-- Delete the ${build} and ${dist} directory trees -->

  </target>
</project>

⌨️ 快捷键说明

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