cuba/build.xml

100 lines
4.7 KiB
XML
Raw Normal View History

2008-10-29 19:01:37 +08:00
<?xml version="1.0"?>
<project xmlns:ext="http://haulmont.com/schema/ant"
name="cuba" default="build" basedir=".">
2008-10-29 19:01:37 +08:00
<property name="root.dir" location=".."/>
<import file="${root.dir}/build-inc-prj.xml"/>
2008-10-29 19:01:37 +08:00
<property file="${root.dir}/build.properties"/>
<property file="lib.properties"/>
<target name="delegate">
<property name="target" value="noop" />
<ant dir="modules/core" target="${target}" inheritAll="false"/>
2008-12-23 21:25:17 +08:00
<ant dir="modules/gui" target="${target}" inheritAll="false"/>
2008-12-04 13:28:29 +08:00
<ant dir="modules/web" target="${target}" inheritAll="false"/>
<ant dir="modules/web-war" target="${target}" inheritAll="false"/>
2009-02-04 18:35:37 +08:00
<ant dir="modules/admin-console-war" target="${target}" inheritAll="false"/>
2008-10-29 19:01:37 +08:00
</target>
<target name="clean">
<antcall target="delegate" inheritAll="false">
<param name="target" value="clean-module"/>
</antcall>
</target>
<target name="install-lib">
<!-- jboss -->
<ext:install-jboss version="${jboss.version}" toDir="${jboss.dir}"/>
2009-01-19 21:03:18 +08:00
<ext:install-jboss-embedded version="${jboss-embedded.version}" toDir="${jboss-embedded.dir}"/>
2008-12-01 23:36:58 +08:00
<!-- common libs -->
<ext:install-lib name="commons-codec" version="${commons-codec.version}" toDir="${lib.common.dir}"/>
2008-12-15 21:01:47 +08:00
<ext:install-lib name="commons-io" version="${commons-io.version}" toDir="${lib.common.dir}"/>
2008-12-01 23:36:58 +08:00
<ext:install-jboss-lib name="log4j" version="${jboss.version}" toDir="${lib.common.dir}"/>
2009-01-22 20:19:45 +08:00
<ext:install-lib name="freemarker" version="${freemarker.version}" toDir="${lib.common.dir}"/>
2009-02-04 18:35:37 +08:00
<ext:install-lib name="perf4j" version="${perf4j.version}" toDir="${lib.common.dir}"/>
2008-12-01 23:36:58 +08:00
<!-- server libs -->
<ext:install-lib name="openjpa" version="${openjpa.version}" toDir="${lib.server.dir}"/>
<ext:install-lib name="serp" version="${serp.version}" toDir="${lib.server.dir}"/>
2008-12-04 13:28:29 +08:00
<ext:install-lib name="itmill-toolkit" version="${itmill-toolkit.version}" toDir="${lib.server.dir}"/>
2009-01-10 15:19:31 +08:00
<ext:install-lib name="jcifs" version="${jcifs.version}" toDir="${lib.server.dir}"/>
2008-12-29 23:15:03 +08:00
<ext:install-lib name="gwt-user" version="${gwt-user.version}" toDir="${lib.gwt.dir}"/>
<ext:install-lib name="gwt-dev-windows" version="${gwt-dev-windows.version}" toDir="${lib.gwt.dir}"/>
2009-01-19 21:16:41 +08:00
<ext:install-lib name="hsqldb" version="${hsqldb.version}" toDir="${lib.server.dir}"/>
2009-01-19 21:03:18 +08:00
<ext:install-jboss-lib name="jboss-vfs" path="lib" version="${jboss.version}" toDir="${lib.server.dir}"/>
<ext:install-jboss-lib name="jboss-common-core" path="lib" version="${jboss.version}" toDir="${lib.server.dir}"/>
2008-10-30 15:38:39 +08:00
<ext:install-jboss-lib name="jboss" version="${jboss.version}" toDir="${lib.server.dir}"/>
2009-01-19 21:03:18 +08:00
<ext:install-jboss-lib name="jboss-javaee" version="${jboss.version}" toDir="${lib.server.dir}"/>
2008-12-01 23:36:58 +08:00
<ext:install-jboss-lib name="jboss-remoting" version="${jboss.version}" toDir="${lib.server.dir}"/>
2008-12-04 23:26:53 +08:00
<ext:install-jboss-lib name="jbosssx" version="${jboss.version}" toDir="${lib.server.dir}"/>
<ext:install-jboss-lib name="servlet-api" version="${jboss.version}" toDir="${lib.server.dir}"/>
2009-01-19 21:03:18 +08:00
<ext:install-jboss-lib name="jboss-j2se" path="lib" version="${jboss.version}" toDir="${lib.server.dir}"/>
2008-10-31 13:26:14 +08:00
<ext:install-jboss-lib name="xercesImpl" path="lib/endorsed" version="${jboss.version}" toDir="${lib.server.dir}"/>
2008-10-29 19:01:37 +08:00
</target>
<target name="compile">
<antcall target="delegate" inheritAll="false">
<param name="target" value="compile-module"/>
</antcall>
</target>
<target name="build">
<antcall target="delegate" inheritAll="false">
<param name="target" value="build-module"/>
</antcall>
</target>
2008-10-31 13:26:14 +08:00
<target name="deploy">
<antcall target="delegate" inheritAll="false">
<param name="target" value="deploy-module"/>
</antcall>
</target>
2008-10-29 19:01:37 +08:00
2008-10-31 13:26:14 +08:00
<target name="undeploy">
<antcall target="delegate" inheritAll="false">
<param name="target" value="undeploy-module"/>
</antcall>
</target>
2009-01-19 21:03:18 +08:00
<target name="deploy4test">
<antcall target="delegate" inheritAll="false">
<param name="target" value="deploy4test-module"/>
</antcall>
</target>
2008-12-23 21:25:17 +08:00
<target name="clean-build-deploy" depends="clean,build,deploy"/>
2009-01-22 20:19:45 +08:00
<target name="run">
<exec dir="${root.dir}/jboss/bin" executable="cmd.exe">
<arg line="/c start debug.bat"/>
</exec>
</target>
<target name="stop">
<exec dir="${root.dir}/jboss/bin" executable="cmd.exe" spawn="true">
<arg line="/c start shutdown.bat -S"/>
</exec>
</target>
<target name="clean-build-deploy-run" depends="clean,build,deploy,run"/>
2008-10-29 19:01:37 +08:00
</project>