加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build.xml 1.19 KB
一键复制 编辑 原始数据 按行查看 历史
ranger 提交于 2018-07-22 19:28 . Ant build file added.
<?xml version="1.0" encoding="UTF-8"?>
<project name="app" default="compiler">
<property name="winOS" value="Windows" />
<property name="unixOS" value="Unix" />
<target name="init">
<condition property="isWindows">
<os family="windows" />
</condition>
<condition property="isUnix">
<os family="unix" />
</condition>
</target>
<target name="compilerWindows" if="isWindows" depends="init">
<property name="dir.compiler.home" location="." />
<echo message="Current operation system family is Windows." />
<exec executable="cmd" failonerror="true" dir="${dir.compiler.home}">
<arg line="/c mvn clean install -Dmaven.test.skip=true" />
</exec>
</target>
<target name="compilerUnix" if="isUnix" depends="init">
<property name="dir.compiler.home" location="." />
<echo message="Current operation system family is Unix." />
<exec executable="mvn" failonerror="true" dir="${dir.compiler.home}">
<arg line=" clean install -Dmaven.test.skip=true" />
</exec>
</target>
<target name="compiler" depends="compilerWindows,compilerUnix">
<echo message="Main compiling is finished,this target is just for sink and show." />
</target>
</project>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化