1 Star 0 Fork 5

tanhong / ironrhino

forked from quaff / ironrhino 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
build.xml 3.15 KB
一键复制 编辑 原始数据 按行查看 历史
quaff 提交于 2017-02-27 16:40 . Release version 2.0.1
<?xml version="1.0" encoding="utf-8"?>
<project name="ironrhino" default="jar" basedir=".">
<property name="src.dir" location="${basedir}/src" />
<property name="webapp.dir" location="${basedir}/webapp" />
<property name="lib.dir" location="${basedir}/lib" />
<property name="classes.dir" location="${webapp.dir}/WEB-INF/classes" />
<property name="target.dir" location="${basedir}/target" />
<property name="test.dir" location="${basedir}/test" />
<property name="test.src.dir" location="${basedir}/test/src" />
<property name="test.classes.dir" location="${basedir}/test/classes" />
<property name="test.results.dir" location="${target.dir}/test/results" />
<property name="war.name" value="ironrhino.war" />
<property file="build.properties" />
<path id="lib.classpath">
<fileset dir="${webapp.dir}/WEB-INF/lib">
<include name="*.jar" />
</fileset>
<fileset dir="${lib.dir}">
<exclude name="closure*.jar" />
<exclude name="yuicompressor*.jar" />
</fileset>
</path>
<target name="init">
<mkdir dir="${target.dir}" />
<mkdir dir="${classes.dir}" />
<mkdir dir="${test.classes.dir}" />
</target>
<target name="clean">
<delete dir="${classes.dir}" />
<delete dir="${test.classes.dir}" />
<delete dir="${target.dir}" />
</target>
<target name="compile">
<antcall target="clean" />
<antcall target="init" />
<javac includeantruntime="false" debug="true" debuglevel="lines,vars,source" srcdir="${src.dir}" destdir="${classes.dir}" encoding="utf-8">
<compilerarg line="-Xlint:unchecked" />
<compilerarg value="-parameters"/>
<classpath refid="lib.classpath" />
</javac>
<copy todir="${classes.dir}">
<fileset dir="${src.dir}">
<exclude name="**/*.java" />
</fileset>
</copy>
</target>
<target name="test" depends="compile">
<mkdir dir="${test.classes.dir}" />
<javac includeantruntime="false" debug="true" debuglevel="lines,vars,source" srcdir="${test.src.dir}" destdir="${test.classes.dir}" encoding="UTF-8">
<compilerarg line="-Xlint:unchecked" />
<compilerarg value="-parameters"/>
<classpath>
<path refid="lib.classpath" />
<pathelement location="${classes.dir}" />
</classpath>
</javac>
<copy todir="${test.classes.dir}">
<fileset dir="${test.src.dir}">
<exclude name="**/*.java" />
</fileset>
</copy>
<mkdir dir="${test.results.dir}" />
<junit haltonfailure="no" printsummary="on">
<classpath>
<path refid="lib.classpath" />
<pathelement location="${classes.dir}" />
<pathelement location="${test.classes.dir}" />
</classpath>
<formatter type="brief" usefile="false" />
<formatter type="plain" />
<formatter type="xml" />
<batchtest todir="${test.results.dir}">
<fileset dir="${test.classes.dir}" includes="**/*Test.class" />
</batchtest>
</junit>
</target>
<import file="build.jar.xml" />
<import file="build.compress.xml" />
<target name="dist">
<antcall target="compile" />
<antcall target="jar" />
</target>
<import file="build.create.xml" />
<target name="create" depends="dist">
<antcall target="createProject" />
</target>
</project>
Java
1
https://gitee.com/tanhonghappy/ironrhino.git
git@gitee.com:tanhonghappy/ironrhino.git
tanhonghappy
ironrhino
ironrhino
master

搜索帮助