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

📄 build.xml

📁 基于snmp/mib的网络数据获取系统设计与实现
💻 XML
字号:
<project name="Java SNMP Package" default="SNMPInquisitor" basedir=".">    <description>        Ant build file for the Java SNMP Package    </description>    <target name="SNMPInquisitor" description="Build the SNMP Inquisitor application">    <!-- Set the main class to be SNMPInquisitor -->    <property name="mainClass" value="SNMPInquisitor"/>    <property name="buildDir" value="build_inquisitor"/>    <!-- Create the build directory -->    <mkdir dir="${buildDir}"/>    <!-- Compile the java code from source into build -->    <javac srcdir="source" destdir="${buildDir}" includes="${mainClass}.java"/>    <!-- Put everything in build into the ${mainClass}.jar file -->    <jar jarfile="${mainClass}.jar" basedir="${buildDir}" manifest="manifest/${mainClass}.mf"/>    <!-- Delete the build directory tree -->    <delete dir="${buildDir}"/>  </target>  <target name="SNMPAgentTest" description="Build the SNMP Agent Test application">    <!-- Set the main class to be SNMPAgentTest -->    <property name="mainClass" value="SNMPAgentTest"/>    <!-- Set the build directory -->    <property name="buildDir" value="build_agent_test"/>    <!-- Create the build directory -->    <mkdir dir="${buildDir}"/>    <!-- Compile the java code from source into build -->    <javac srcdir="source" destdir="${buildDir}" includes="${mainClass}.java"/>    <!-- Put everything in build into the ${mainClass}.jar file -->    <jar jarfile="${mainClass}.jar" basedir="${buildDir}" manifest="manifest/${mainClass}.mf"/>    <!-- Delete the build directory tree -->    <delete dir="${buildDir}"/>  </target>  <target name="SNMPTrapTest" description="Build the SNMP Trap Test application">    <!-- Set the main class to be SNMPTrapTest -->    <property name="mainClass" value="SNMPTrapTest"/>    <!-- Set the build directory -->    <property name="buildDir" value="build_trap_test"/>    <!-- Create the build directory -->    <mkdir dir="${buildDir}"/>    <!-- Compile the java code from source into build -->    <javac srcdir="source" destdir="${buildDir}" includes="${mainClass}.java"/>    <!-- Put everything in build into the ${mainClass}.jar file -->    <jar jarfile="${mainClass}.jar" basedir="${buildDir}" manifest="manifest/${mainClass}.mf"/>    <!-- Delete the build directory tree -->    <delete dir="${buildDir}"/>  </target>  <target name="SNMPPackage" description="Build the SNMP package">    <!-- Set the build directory -->    <property name="buildDir" value="build_package"/>    <!-- Create the build directory -->    <mkdir dir="${buildDir}"/>    <!-- Compile the java code from source into build -->    <javac srcdir="source" destdir="${buildDir}" includes="snmp/*.java"/>    <!-- Put everything in build into the ${mainClass}.jar file -->    <jar jarfile="snmp.jar" basedir="${buildDir}"/>    <!-- Delete the build directory tree -->    <delete dir="${buildDir}"/>  </target>  <target name="SNMPDistribution" description="Build the SNMP source distribution">    <!-- Zip up the source, manifests, and build files -->    <zip destfile="snmp_source.zip">      <fileset dir="." includes="source/**"/>      <fileset dir="." includes="manifest/**"/>      <fileset dir="." includes="build.xml Makefile ReadMe ChangeLog"/>    </zip>  </target></project>   

⌨️ 快捷键说明

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