Subversion Repositories SmartDukaan

Rev

Rev 1082 | Rev 1085 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

<?xml version="1.0"?>
<project default="compress" basedir=".">

        <property name="message" 
                value="Building the ContentCreation.war"/>

        <property name="localmessage" 
                value="Building and Deploying the ContentCreation.war"/>
        <property name="compilemessage" 
                        value="Compiling ContentCreation.war"/>

        <property name="thirdparty.location" value="../lib"/>

        <path id="thirdparty.classpath">
                <pathelement location="build/classes"/>
                <pathelement location="${thirdparty.location}/readonly/apache/commons-collections-3.2.1/commons-collections-3.2.1.jar"/>
                <pathelement location="${thirdparty.location}/readonly/apache/commons-fileupload-1.2.1/commons-fileupload-1.2.1.jar"/>
                <pathelement location="${thirdparty.location}/readonly/apache/commons-io-1.3.2/commons-io-1.3.2.jar"/>
                <pathelement location="${thirdparty.location}/readonly/apache/commons-lang-2.4/commons-lang-2.4.jar"/>
                <pathelement location="${thirdparty.location}/readonly/apache/commons-logging-1.0.4/commons-logging-1.0.4.jar"/>
                <pathelement location="${thirdparty.location}/readonly/apache/commons-logging-api-1.1/commons-logging-api-1.1.jar"/>
                <pathelement location="${thirdparty.location}/readonly/apache/commons-validator-1.3.1/commons-validator-1.3.1.jar"/>
                <pathelement location="${thirdparty.location}/readonly/apache/jsp-2.1/jsp-api.jar"/>
                <pathelement location="${thirdparty.location}/readonly/apache/sevlet-2.5/servlet-api.jar"/>
                <pathelement location="${thirdparty.location}/readonly/apache/struts-2.1.8.1/struts2-convention-plugin-2.1.8.1.jar"/>
                <pathelement location="${thirdparty.location}/readonly/apache/struts-2.1.8.1/struts2-core-2.1.8.1.jar"/>
                <pathelement location="${thirdparty.location}/readonly/apache/struts-2.1.8.1/struts2-rest-plugin-2.1.8.1.jar"/>
                <pathelement location="${thirdparty.location}/readonly/apache/struts-2.1.8.1/xstream-1.2.2.jar"/>
                <pathelement location="${thirdparty.location}/readonly/apache/struts-2.1.8.1/xwork-core-2.1.6.jar"/>
                <pathelement location="${thirdparty.location}/readonly/apache/tomcat-juli/tomcat-juli.jar"/>
                <pathelement location="${thirdparty.location}/readonly/apache/velocity-1.6.3/velocity-1.6.3.jar"/>
                <pathelement location="${thirdparty.location}/readonly/apache/velocity-1.6.3/velocity-tools-1.4.jar"/>
                <pathelement location="${thirdparty.location}/readonly/freemarker/freemarker-2.3.15.jar"/>
                <pathelement location="${thirdparty.location}/readonly/apache/ezmorph/ezmorph-1.0.3.jar"/>
                <pathelement location="${thirdparty.location}/readonly/apache/json/json-lib-2.1-jdk15.jar"/>
                <pathelement location="${thirdparty.location}/readonly/apache/ognl/ognl-2.7.3.jar"/>
                <pathelement location="${thirdparty.location}/readonly/apache/xpp/xpp3_min-1.1.3.4.O.jar"/>
                <pathelement location="${thirdparty.location}/readonly/apache/commons-digester-2.0/commons-digester-2.0.jar"/>
                <pathelement location="${thirdparty.location}/readonly/apache/thrift-0.2.0/libthrift.jar"/>
                <pathelement location="${thirdparty.location}/readonly/slf4j/slf4j-api-1.5.8.jar"/>
                <pathelement location="${thirdparty.location}/readonly/slf4j/slf4j-simple-1.5.8.jar"/>
                <pathelement location="${thirdparty.location}/readonly/slf4j/slf4j-simple-1.5.8.jar"/>
                <pathelement location="${thirdparty.location}/readonly/apache/xalan-j_2_7_1/serializer.jar"/>
                <pathelement location="${thirdparty.location}/readonly/apache/xalan-j_2_7_1/xalan.jar"/>
                <pathelement location="${thirdparty.location}/readonly/apache/xalan-j_2_7_1/xercesImpl.jar"/>
                <pathelement location="${thirdparty.location}/readonly/apache/xalan-j_2_7_1/xml-apis.jar"/>
                <pathelement location="${thirdparty.location}/readonly/apache/xalan-j_2_7_1/xsltc.jar"/>
                <pathelement location="${thirdparty.location}/readonly/bdb/je-4.1.7.jar"/>

                <pathelement location="${thirdparty.location}/ContentStore.jar"/>
                <pathelement location="${thirdparty.location}/Common.jar"/>
                <pathelement location="${thirdparty.location}/ThriftConfig.jar"/>
        </path>
        
        <target name="clean">
                <delete dir="build"/>
        </target>
        
        <target name="init" depends="clean">
                <mkdir dir="build"/>
                <mkdir dir="build/WEB-INF"/>
                <mkdir dir="build/WEB-INF/lib"/>
                <mkdir dir="build/WEB-INF/classes"/>
                <mkdir dir="build/WEB-INF/content"/>
        </target>
        
        <target name="compile" depends="init">
                <javac srcdir="src/main/java"
                        destdir="build/WEB-INF/classes"
                        deprecation="${compile.deprecation}"
                        optimize="${compile.optimize}"
                    source="1.6" target="1.6">
                        <classpath refid="thirdparty.classpath"/>
                </javac>
        </target>

        <target name="compress" depends="compile">
                <copy todir="build">
                        <fileset dir="src/main/webapp"/>
                </copy>

                <copy todir="build/WEB-INF/classes">
                        <fileset dir="src/main/resources"/>
                </copy>

                <copy file="../lib/readonly/apache/commons-beanutils-1.7.0/commons-beanutils-1.7.0.jar"
                tofile="build/WEB-INF/lib/commons-beanutils-1.7.0.jar"/>

                <copy file="../lib/readonly/apache/commons-lang-2.3/commons-lang-2.3.jar" 
            tofile="build/WEB-INF/lib/commons-lang-2.3.jar"/>

                <copy file="../lib/readonly/apache/ognl/ognl-2.7.3.jar" 
            tofile="build/WEB-INF/lib/ognl-2.7.3.jar"/>

                <copy file="../lib/readonly/apache/velocity-1.6.3/velocity-1.6.3.jar" 
            tofile="build/WEB-INF/lib/velocity-1.6.3.jar"/>

                <copy file="../lib/readonly/apache/struts-2.1.8.1/xwork-core-2.1.6.jar" 
            tofile="build/WEB-INF/lib/xwork-core-2.1.6.jar"/>

                <copy file="../lib/readonly/apache/commons-collections-3.2/commons-collections-3.2.jar" 
            tofile="build/WEB-INF/lib/commons-collections-3.2.jar"/>

                <copy file="../lib/readonly/apache/commons-logging-1.0.4/commons-logging-1.0.4.jar" 
            tofile="build/WEB-INF/lib/commons-logging-1.0.4.jar"/>

                <copy file="../lib/readonly/apache/struts-2.1.8.1/struts2-convention-plugin-2.1.8.1.jar" 
            tofile="build/WEB-INF/lib/struts2-convention-plugin-2.1.8.1.jar"/>

                <copy file="../lib/readonly/apache/commons-digester-2.0/commons-digester-2.0.jar" 
            tofile="build/WEB-INF/lib/commons-digester-2.0.jar"/>

                <copy file="../lib/readonly/apache/ezmorph/ezmorph-1.0.3.jar" 
            tofile="build/WEB-INF/lib/ezmorph-1.0.3.jar"/>

                <copy file="../lib/readonly/apache/struts-2.1.8.1/struts2-core-2.1.8.1.jar" 
            tofile="build/WEB-INF/lib/struts2-core-2.1.8.1.jar"/>

                <copy file="../lib/readonly/apache/velocity-1.6.3/velocity-tools-1.4.jar" 
                            tofile="build/WEB-INF/lib/velocity-tools-1.4.jar"/>

                <copy file="../lib/readonly/apache/commons-fileupload-1.2.1/commons-fileupload-1.2.1.jar" 
            tofile="build/WEB-INF/lib/commons-fileupload-1.2.1.jar"/>

                <copy file="../lib/readonly/freemarker/freemarker-2.3.15.jar" 
            tofile="build/WEB-INF/lib/freemarker-2.3.15.jar"/>

                <copy file="../lib/readonly/apache/struts-2.1.8.1/struts2-rest-plugin-2.1.8.1.jar" 
            tofile="build/WEB-INF/lib/struts2-rest-plugin-2.1.8.1.jar"/>

                <copy file="../lib/readonly/apache/xpp/xpp3_min-1.1.3.4.O.jar" 
            tofile="build/WEB-INF/lib/xpp3_min-1.1.3.4.O.jar"/>

                <copy file="../lib/readonly/apache/commons-io-1.3.2/commons-io-1.3.2.jar" 
            tofile="build/WEB-INF/lib/commons-io-1.3.2.jar"/>

                <copy file="../lib/readonly/apache/json/json-lib-2.1-jdk15.jar" 
                            tofile="build/WEB-INF/lib/json-lib-2.1-jdk15.jar"/>

                <copy file="../lib/readonly/apache/struts-2.1.8.1/xstream-1.2.2.jar" 
            tofile="build/WEB-INF/lib/xstream-1.2.2.jar"/>

                <copy file="../lib/readonly/apache/thrift-0.2.0/libthrift.jar" 
                            tofile="build/WEB-INF/lib/libthrift.jar"/>

                <copy file="../lib/readonly/slf4j/slf4j-api-1.5.8.jar" 
                                            tofile="build/WEB-INF/lib/slf4j-api-1.5.8.jar"/>

                <copy file="../lib/readonly/slf4j/slf4j-simple-1.5.8.jar" 
                                                            tofile="build/WEB-INF/lib/slf4j-simple-1.5.8.jar"/>
                <copy file="../lib/readonly/jython/jython.jar" 
                                                tofile="build/WEB-INF/lib/jython.jar"/>

                <copy file="../lib/readonly/bdb/je-4.1.7.jar"
                        tofile="build/WEB-INF/lib/je-4.1.7.jar"/>

                <copy file="../lib/readonly/apache/xalan-j_2_7_1/serializer.jar" tofile="build/WEB-INF/lib/serializer.jar"/>
                <copy file="../lib/readonly/apache/xalan-j_2_7_1/xalan.jar" tofile="build/WEB-INF/lib/xalan.jar"/>
                <copy file="../lib/readonly/apache/xalan-j_2_7_1/xercesImpl.jar" tofile="build/WEB-INF/lib/xercesImpl.jar"/>
                <copy file="../lib/readonly/apache/xalan-j_2_7_1/xml-apis.jar" tofile="build/WEB-INF/lib/xml-apis.jar"/>
                <copy file="../lib/readonly/apache/xalan-j_2_7_1/xsltc.jar" tofile="build/WEB-INF/lib/xsltc.jar"/>

                <copy file="../lib/ContentStore.jar" 
                        tofile="build/WEB-INF/lib/ContentStore.jar"/>

                <copy file="../lib/Common.jar" 
                                        tofile="build/WEB-INF/lib/Common.jar"/>

                <copy file="../lib/ThriftConfig.jar" 
                                                        tofile="build/WEB-INF/lib/ThriftConfig.jar"/>

                <war 
                        destfile="ContentCreation.war" 
                        basedir="build"/>

                <copy file="ContentCreation.war" 
                        tofile="../lib/ContentCreation.war"/>

        </target>


</project>