zoukankan      html  css  js  c++  java
  • ant学习之jar命令

    <?xml version="1.0" ?>
    <project name="antCopy" default="jar" basedir="../">
        <target name="clean">
            <delete dir="${basedir}/build" />
        </target>
        <target name="compile" depends="clean">
            <mkdir dir="${basedir}/build/classes" />
            <javac srcdir="${basedir}/AntMain" destdir="${basedir}/build/classes" includeantruntime="false" />
        </target>
        <target name="run" depends="compile">
            <java classname="com.xisong.ant.HelloAnt">
                <classpath>
                    <pathelement path="${basedir}/build/classes" />
                </classpath>
            </java>
        </target>
        <target name="jar" depends="run">
            <jar destfile="dist/helloAnt.jar" basedir="${basedir}/build/classes">
                <manifest>
                    <attribute name="Main-class" value="com.xisong.ant.HelloAnt" />
                </manifest>
            </jar>
        </target >
    </project>
    <target name="build_pushserver_server_jar" depends="init">    
          <jar destfile="${deploy}/build/pushServer.jar"
               basedir="${classes.dir}"
               includes="**/channelsoft/**">       
                <manifest>
                      <attribute name="Main-Class" value="com.channelsoft.pushserver.PushServer"/>
                      <attribute name="Class-Path" value="lib/commons-beanutils-1.6.jar lib/commons-collections.jar lib/commons-lang-2.0.jar lib/commons-logging-1.1.1.jar lib/ezmorph-1.0.4.jar lib/json-lib-2.2.1-jdk15.jar lib/log4j-1.2.15.jar lib/netty-3.1.5.GA.jar lib/protobuf-java-2.3.0.jar lib/spring.jar lib/quartz-all-1.6.4.jar"/>
                      <attribute name="Signature-Version" value="$Id: build.xml,v 1.0 2010/2/09 15:03:26 Fuwenbin Exp $"/>
                </manifest>                 
           </jar>       
        </target>
  • 相关阅读:
    合并指定表格指定列的相同文本的相邻单元格
    [转载]>/dev/null 2>&1 含义
    有关cron
    jQuery版本对checkbox影响
    c# 如何获取项目的根目录
    Javascript 字符串组装用函数 format
    sql server 删除数据库
    说说接口封装
    有开放的接口!!!!
    支付宝支付功能的集成
  • 原文地址:https://www.cnblogs.com/jfzh/p/4059379.html
Copyright © 2011-2022 走看看