<?xml version="1.0"?>
<!--指定项目打成war包-->
<project name="woshare" default="makewar" basedir=".">
<description>
Application build file.
</description>
<!-- 相关资源文件 -->
<property name="project.lib" location="${basedir}/WebRoot/WEB-INF/lib" />
<property name="project.tomcat.lib" location="${basedir}/tomcatLib" />
<property name="project.src" location="${basedir}/src" />
<property name="project.webroot" location="${basedir}/WebRoot" />
<property name="project.build" location="${basedir}/WebRoot/WEB-INF" />
<property name="warName" value="woshare.war" />
<property environment="env" />
<!-- =================================
target: clean
================================= -->
<target name="clean" description="--> description">
<echo message="WARN:You mast run shell 'mkdir -p /opt/woshare'" />
<delete dir="${project.build}/classes" />
<mkdir dir="${project.build}/classes" />
</target>
<!-- =================================
target: compile
================================= -->
<target name="compile" depends="clean" description=" description">
<javac destdir="${project.build}/classes" memorymaximumsize="512m" source="1.6" target="1.6" failonerror="true" encoding="utf-8" srcdir="${project.src}" fork="true" debug="true">
<classpath>
<fileset dir="${project.lib}" />
<fileset dir="${project.tomcat.lib}" />
</classpath>
</javac>
<copy todir="${project.build}/classes">
<fileset dir="${project.src}">
<include name="*.xml" />
<include name="*.properties" />
</fileset>
</copy>
<copy todir="${project.build}/classes/com/woshare/entity">
<fileset dir="${project.src}/com/woshare/entity">
<include name="*.xml" />
<include name="*.properties" />
</fileset>
</copy>
</target>
<target name="makewar" depends="compile">
<war warfile="${basedir}/${warName}" webxml="${project.build}/web.xml">
<fileset dir="${project.webroot}" />
</war>
</target>
</project>
分享到:
相关推荐
ANT-build-xml文件详解 ANT-build-xml文件详解 ANT-build-xml文件详解
apache-ant-1.9.16-bin.zip
apache-ant-1.6.5-bin ant编译
标签:ant-apache-bcel.jar.zip,ant,apache,bcel,jar.zip包下载,依赖包
ant中使用jmeter task,需要的“ant-jmeter-1.1.1.jar”jar包 放到ant的classpath下就好了
apache-ant-1.10.12-bin.tar.gz
开发工具 ant-launcher-1.9.6开发工具 ant-launcher-1.9.6开发工具 ant-launcher-1.9.6开发工具 ant-launcher-1.9.6开发工具 ant-launcher-1.9.6开发工具 ant-launcher-1.9.6开发工具 ant-launcher-1.9.6开发工具 ...
标签:ant-apache-bcel-1.8.2.jar,ant,apache,bcel,1.8.2,jar包下载,依赖包
apache-ant-1.9.2-bin.zip
apache-ant-1.10.1-bin.zip 【windows版,32位和64位通用】
前端代码 zyy-convert-web 后端代码zyy-convert-app 2、项目使用技术: springboot ffmpeg react,ant-design-pro,typescript 3、说明文档 操作文档:https://blog.csdn.net/qq_29777207/article/details/112427849...
ant-apache-log4j-1.7.1-13.el6.i686.rpm是centos依赖包。
ant 安装包 新版本 可以尝试下 官网版本 apache-ant-1.10.3-bin.zip
标签:ant-commons-logging-1.7.0.jar,ant,commons,logging,1.7.0,jar包下载,依赖包
标签:ant-apache-log4j-1.6.5.jar.zip,ant,apache,log4j,1.6.5,jar.zip包下载,依赖包
apache-ant-1.10.12-bin.tar.bz2
最新版linux apache-ant-1.9.15-bin.tar.gz
ant-antlr-1.6.3.jarant-antlr-1.6.3.jarant-antlr-1.6.3.jarant-antlr-1.6.3.jar
vuex2.x中用于设置ant-design-vue中table组件的列宽可拖拽
antdv ant-design-vue 自定义主题颜色