57 lines
2.0 KiB
XML
57 lines
2.0 KiB
XML
|
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||
|
|
<project default="create_run_jar" name="Create Runnable Jar for Project spokenServer with libraries in sub-folder">
|
||
|
|
<!--this file was created by Eclipse Runnable JAR Export Wizard-->
|
||
|
|
<!--ANT 1.7 is required -->
|
||
|
|
<path id="classpath">
|
||
|
|
<fileset id="allJar" dir="F:\temp\spokenServer\b" includes="*.jar" />
|
||
|
|
</path>
|
||
|
|
<target name="compile" description="编译项目">
|
||
|
|
<delete description="已经有的Class文件" includeEmptyDirs="true">
|
||
|
|
<fileset dir="F:/ceteng/pcserver/bin">
|
||
|
|
<!--<fileset dir="F:/workspace/spokenServer1/bin">-->
|
||
|
|
<include name="spokenServer.jar" />
|
||
|
|
<include name="com/" />
|
||
|
|
<include name="org/" />
|
||
|
|
|
||
|
|
</fileset>
|
||
|
|
</delete>
|
||
|
|
|
||
|
|
<echo>compile start</echo>
|
||
|
|
<javac srcdir="src/" destdir="bin/" debug="false" includeantruntime="on" >
|
||
|
|
<compilerarg value="-Xlint:unchecked"/>
|
||
|
|
<compilerarg value="-Xlint:deprecation"/>
|
||
|
|
<classpath refid="classpath">
|
||
|
|
</classpath>
|
||
|
|
</javac>
|
||
|
|
<echo>compile end</echo>
|
||
|
|
</target>
|
||
|
|
|
||
|
|
<target name="create_run_jar" depends="compile" >
|
||
|
|
<delete file="F:/myproject/spoken/spokenServer/bin/spokenServer.jar" description="删除已经有的" />
|
||
|
|
<echo>jar start</echo>
|
||
|
|
<pathconvert property="mf.classpath" pathsep=" ">
|
||
|
|
<path refid="classpath" />
|
||
|
|
<globmapper from ="F:\temp\spokenServer\b\*" to ="lib/*" />
|
||
|
|
</pathconvert>
|
||
|
|
<jar destfile="F:/myproject/spoken/spokenServer/bin/spokenServer.jar">
|
||
|
|
<manifest>
|
||
|
|
<attribute name="Main-Class" value="org.socketio.netty.ServerLauncher"/>
|
||
|
|
<attribute name="Class-Path" value=". ${mf.classpath}"/>
|
||
|
|
</manifest>
|
||
|
|
<fileset dir="F:/ceteng/pcserver/bin">
|
||
|
|
<!--<fileset dir="F:/workspace/spokenServer1/bin">-->
|
||
|
|
<exclude name="config/" />
|
||
|
|
<exclude name="sqlmap/" />
|
||
|
|
<exclude name="lib/" />
|
||
|
|
<exclude name="task/" />
|
||
|
|
<exclude name="logback.xml" />
|
||
|
|
<exclude name="SqlMapConfig.xml" />
|
||
|
|
<exclude name="serverConf/" />
|
||
|
|
<exclude name="api.env.properties" />
|
||
|
|
<exclude name="spokenTask.jar" />
|
||
|
|
</fileset>
|
||
|
|
</jar>
|
||
|
|
|
||
|
|
</target>
|
||
|
|
</project>
|