cuba/build.xml
Konstantin Krivopustov 77971c6932 Basic screenflow
2008-12-15 13:01:47 +00:00

81 lines
4.3 KiB
XML

<?xml version="1.0"?>
<project xmlns:ext="http://haulmont.com/schema/ant"
name="cuba" default="build" basedir=".">
<property name="root.dir" location=".."/>
<import file="${root.dir}/build-inc-prj.xml"/>
<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"/>
<ant dir="modules/web" target="${target}" inheritAll="false"/>
<ant dir="modules/web-war" target="${target}" inheritAll="false"/>
</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}"/>
<!-- test libs -->
<ext:install-lib name="jboss-ejb3-embeddable" version="${jboss-ejb3-embeddable.version}" toDir="${lib.test.dir}"/>
<ext:install-lib name="jboss-ejb3-embeddable-thirdparty" version="${jboss-ejb3-embeddable-thirdparty.version}" toDir="${lib.test.dir}"/>
<!-- common libs -->
<ext:install-lib name="commons-codec" version="${commons-codec.version}" toDir="${lib.common.dir}"/>
<ext:install-lib name="commons-io" version="${commons-io.version}" toDir="${lib.common.dir}"/>
<ext:install-jboss-lib name="log4j" version="${jboss.version}" toDir="${lib.common.dir}"/>
<!-- 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}"/>
<ext:install-lib name="itmill-toolkit" version="${itmill-toolkit.version}" toDir="${lib.server.dir}"/>
<ext:install-jboss-lib name="commons-collections" version="${jboss.version}" toDir="${lib.server.dir}"/>
<ext:install-jboss-lib name="jboss-common" path="lib" version="${jboss.version}" toDir="${lib.server.dir}"/>
<ext:install-jboss-lib name="jboss" version="${jboss.version}" toDir="${lib.server.dir}"/>
<ext:install-jboss-lib name="hibernate3" version="${jboss.version}" toDir="${lib.test.dir}"/>
<ext:install-jboss-lib name="jboss-j2ee" version="${jboss.version}" toDir="${lib.server.dir}"/>
<ext:install-jboss-lib name="jboss-ejb3x" version="${jboss.version}" toDir="${lib.server.dir}"/>
<ext:install-jboss-lib name="jboss-remoting" version="${jboss.version}" toDir="${lib.server.dir}"/>
<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}"/>
<ext:install-jboss-lib name="jboss-annotations-ejb3" path="server/default/deploy/ejb3.deployer" version="${jboss.version}" toDir="${lib.server.dir}"/>
<ext:install-jboss-lib name="jboss-jmx" path="lib" version="${jboss.version}" toDir="${lib.server.dir}"/>
<ext:install-jboss-lib name="xercesImpl" path="lib/endorsed" version="${jboss.version}" toDir="${lib.server.dir}"/>
<!-- client libs -->
<ext:install-jboss-lib name="jboss-ejb3-client" path="client" version="${jboss.version}" toDir="${lib.client.dir}"/>
<ext:install-jboss-lib name="jboss-remoting" path="client" version="${jboss.version}" toDir="${lib.client.dir}"/>
<ext:install-jboss-lib name="jboss-aop-jdk50-client" path="client" version="${jboss.version}" toDir="${lib.client.dir}"/>
<ext:install-jboss-lib name="jboss-aspect-jdk50-client" path="client" version="${jboss.version}" toDir="${lib.client.dir}"/>
</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>
<target name="deploy">
<antcall target="delegate" inheritAll="false">
<param name="target" value="deploy-module"/>
</antcall>
</target>
<target name="undeploy">
<antcall target="delegate" inheritAll="false">
<param name="target" value="undeploy-module"/>
</antcall>
</target>
</project>