Subversion Repositories SmartDukaan

Rev

Rev 1087 | 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="thirdparty.location" value="../lib"/>
        <property name="build.home" value="build"/>

        <filelist id="apache.libs" dir="${basedir}/${thirdparty.location}/readonly/apache">
                <file name="commons-beanutils-1.7.0/commons-beanutils-1.7.0.jar"/>
                <file name="commons-collections-3.2/commons-collections-3.2.jar"/>
                <file name="commons-digester-2.0/commons-digester-2.0.jar"/>
                <file name="commons-fileupload-1.2.1/commons-fileupload-1.2.1.jar"/>
                <file name="commons-io-1.3.2/commons-io-1.3.2.jar"/>
                <file name="commons-lang-2.4/commons-lang-2.4.jar"/>
                <file name="commons-logging-1.0.4/commons-logging-1.0.4.jar"/>
                <file name="commons-logging-api-1.1/commons-logging-api-1.1.jar"/>
                <file name="commons-validator-1.3.1/commons-validator-1.3.1.jar"/>
                <file name="ezmorph/ezmorph-1.0.3.jar"/>
                <file name="json/json-lib-2.1-jdk15.jar"/>
                <file name="jsp-2.1/jsp-api.jar"/>
                <file name="ognl/ognl-2.7.3.jar"/>
                <file name="struts-2.1.8.1/struts2-convention-plugin-2.1.8.1.jar"/>
                <file name="struts-2.1.8.1/struts2-core-2.1.8.1.jar"/>
                <file name="struts-2.1.8.1/struts2-rest-plugin-2.1.8.1.jar"/>
                <file name="struts-2.1.8.1/xstream-1.2.2.jar"/>
                <file name="struts-2.1.8.1/xwork-core-2.1.6.jar"/>
                <file name="thrift-0.2.0/libthrift.jar"/>
                <file name="tomcat-juli/tomcat-juli.jar"/>
                <file name="velocity-1.6.3/velocity-1.6.3.jar"/>
                <file name="velocity-1.6.3/velocity-tools-1.4.jar"/>
                <file name="xalan-j_2_7_1/serializer.jar"/>
                <file name="xalan-j_2_7_1/xalan.jar"/>
                <file name="xalan-j_2_7_1/xercesImpl.jar"/>
                <file name="xalan-j_2_7_1/xml-apis.jar"/>
                <file name="xalan-j_2_7_1/xsltc.jar"/>
                <file name="xpp/xpp3_min-1.1.3.4.O.jar"/>
        </filelist>
        
        <filelist id="other.libs" dir="${basedir}/${thirdparty.location}">
                <file name="readonly/bdb/je-4.1.7.jar"/>
                <file name="readonly/freemarker/freemarker-2.3.15.jar"/>
                <file name="readonly/slf4j/slf4j-api-1.5.8.jar"/>
                <file name="readonly/slf4j/slf4j-simple-1.5.8.jar"/>
                <file name="ContentStore.jar"/>
                <file name="Common.jar"/>
                <file name="ThriftConfig.jar"/>
        </filelist>

        <path id="ContentCreation.classpath">
                <pathelement location="${build.home}/classes"/>
                <filelist refid="apache.libs"/>
                <filelist refid="other.libs"/>
                <pathelement location="${basedir}/${thirdparty.location}/readonly/apache/sevlet-2.5/servlet-api.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"/>
        </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="ContentCreation.classpath"/>
                </javac>
        </target>

        <target name="compress" depends="compile">
                <copy todir="${build.home}">
                        <fileset dir="src/main/webapp"/>
                </copy>

                <copy todir="${build.home}/WEB-INF/classes">
                        <fileset dir="src/main/resources"/>
                </copy>

                <copy todir="${build.home}/WEB-INF/lib">
                        <filelist refid="apache.libs"/>
                        <filelist refid="other.libs"/>
                        <mapper type="flatten"/>
                </copy>
                
                <copy todir="${build.home}/WEB-INF/lib" file="../lib/readonly/jython/jython.jar"/>

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

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

        </target>


</project>