Subversion Repositories SmartDukaan

Rev

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

<?xml version="1.0"?>
<project default="main">
          
        <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="Web App Libraries.libraryclasspath"/>
                    <path id="EAR Libraries.libraryclasspath"/>
                    <path id="thirdparty.classpath">
                        <pathelement location="build/classes"/>
                        <path refid="Web App Libraries.libraryclasspath"/>
                        <path refid="EAR Libraries.libraryclasspath"/>
                        <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}/ContentStore.jar"/>
    </path>
                
        
        <target name="main" depends="clean, compile, compress">
                <echo>
                        ${message}
                </echo>
        </target>
        <target name="compile" depends="clean">
                <echo>
                        ${compilemessage}
                </echo>
                <mkdir dir="bin"/>
                <javac srcdir="src"
                                                destdir="bin"
                                                deprecation="${compile.deprecation}"
                                                optimize="${compile.optimize}"
                                            source="1.6" target="1.6">
                        <classpath refid="thirdparty.classpath"/>                       
                </javac>
        </target>
        <target name="local" depends="clean, compile, compress">
                <echo>
                        ${localmessage}
                </echo>
        </target>

        <target name="clean">
                <delete dir="build"/>
                <delete dir="bin"/>
        </target>       
        
        <target name="compress">
                <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"/>
        
                <copy file="src/xml/config/web.xml" tofile="build/WEB-INF/web.xml"/>
                
                <copy file="src/xml/config/struts.xml" 
                        tofile="build/WEB-INF/classes/struts.xml"/>
                
        <copy file="src/jsp/index.jsp" tofile="build/index.jsp"/>
                        
                <copy todir="build/WEB-INF/content">
                        <fileset dir="src/velocity"/>
                </copy>
                
        <copy todir="build/jquery">
            <fileset dir="src/jquery"/>
        </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/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 todir="build/WEB-INF/classes">
                        <fileset dir="bin">
                                <include name="**/*.class"/>
                        </fileset>
                </copy>
        
        <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>