`
ppju
  • 浏览: 77813 次
  • 性别: Icon_minigender_1
  • 来自: 西安
文章分类
社区版块
存档分类
最新评论
阅读更多
   Ant is a tool like "make" command in the linux.Ant is a subproject supported by apache inc.Apache Ant is a Java-based build tool. In theory, it is kind of like make, without make's wrinkles.
   Why another build tool when there is already make, gnumake, nmake, jam, and others? Because all those tools have limitations that Ant's original author couldn't live with when developing software across multiple platforms. Ant has been used successfully on many platforms, including Linux, commercial flavours of Unix such as Solaris and HP-UX, Windows NT-platforms, OS/2 Warp, Novell Netware 6, OpenVMS and MacOS X.
   Now we will study the ant build.xml properties
  
   <project name="project name" default="usage" basedir=".">
      <target name="init" depends="" >
         <echo message="......."/>
         <property name=".." value=".." />

         <delete dir="directory name .." />
         <mkdir dir="directory name.." />
        
         <javac srcdir="${sources}" destdir="${classes}" includes="jfileupload/**" source="${jdksource}" target="${jdktarget}">
             <classpath>
                <pathelement location="${sources}"/>
                ...
             </classpath>
          </javac>

          <copy todir="${classes}">
             <fileset dir=="${sources}">
                 <include name="**/*.properties"/>
                 ....
             </fileset>
          </copy>

          <unjar src="" dest=""/>
          <jar jarfile="" basedir="" />

          <move file="" todir="" overwrite="true/false" />

          <javadoc packagenames="" sourcepath="" destdir="">
             <classpath>
                 <pathelement location="${cloggingjar}"/>
                 ...
             </classpath>
          </javadoc>

          <signjar jar="" storepass="${jkspassword}" alias="${jksalias}"
           keystore="${jkskeystore}" keypass="${jkspassword}" storetype="PKCS12" />
      </target>
   </project>

   The above is the ant build.xml's knowleadge. Hope it can help you!
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics