1 Unstar Star 0 Fork 88

CSharp_NET / ttwxGPL-2.0

forked from ws-小铁匠 / ttwx 
Create your Gitee Account
Explore and code with more than 5 million developers,Free private repositories !:)
Sign up
免费、开源、支持二次开发扩展的微信发布平台,让你在微信开发中更专注于业务。支持多公众账号管理。 spread retract

Clone or download
build.xml 1.95 KB
Copy Edit Web IDE Raw Blame History
ws-小铁匠 authored 2015-03-29 02:31 . 静态资源分开打包
<?xml version="1.0" encoding="UTF-8"?>
<project name="ttwx" basedir="." default="mkwar">
<property name="projectName" value="ttwx" />
<property name="src" value="src" />
<property name="conf" value="config" />
<property name="debugging" value="on" />
<property name="classes" value="WebRoot/WEB-INF/classes" />
<property name="lib" value="WebRoot/WEB-INF/lib" />
<property name="srcDir" value="./WebRoot" />
<path id="project.class.path">
<fileset dir="${lib}">
<include name="*.jar" />
</fileset>
<fileset dir="E:\\ProgramFiles\\apache-tomcat-7.0.34\\lib\\">
<include name="*.jar" />
</fileset>
</path>
<target name="init">
<tstamp>
<format property="build.time" pattern="yyyy-MM-dd HH:mm:ss aa" />
</tstamp>
<echo message="build time : ${build.time}" />
</target>
<target name="clean" depends="init">
<delete dir="${classes}" />
</target>
<target name="prepare" depends="clean">
<mkdir dir="${classes}" />
</target>
<target name="compile" depends="prepare">
<javac srcdir="${src}" destdir="${classes}" source="1.6" target="1.6" debug="true" debuglevel="lines,vars,source" encoding="UTF-8" fork="true" memoryMaximumSize="512m">
<classpath refid="project.class.path"/>
</javac>
</target>
<target name="mkwar" depends = "compile" >
<war destfile="${basedir}/${projectName}.war" webxml="${basedir}/WebRoot/WEB-INF/web.xml">
<fileset dir="${basedir}/WebRoot">
<include name="**/*.*"/>
<exclude name="**/static/**" />
</fileset>
<classes dir="${conf}"/>
</war>
<!-- 静态资源打包 -->
<zip destfile="${basedir}/res.zip">
<fileset dir="${basedir}/WebRoot/static">
<include name="**/*.*"/>
</fileset>
</zip>
</target>
</project>

Comment ( 0 )

Sign in for post a comment

1
https://gitee.com/a162216342/ttwx.git
git@gitee.com:a162216342/ttwx.git
a162216342
ttwx
ttwx
master

Search

131423 f1aaba0b 1899542 094922 1c74bed3 1899542