Subversion Repositories SmartDukaan

Rev

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

<?xml version="1.0"?>
<project default="main" name="PageLoaderServer">
    <property name="message" value="Building the PageLoaderServer.jar file."/>
    
                <property environment="env"/>
            <property name="thirdparty.location" value="../lib"/>
            <property name="debuglevel" value="source,lines,vars"/>
            <property name="target" value="1.6"/>
            <property name="source" value="1.6"/>
            <path id="EAR Libraries.libraryclasspath"/>
            <path id="ThriftConfig.classpath">
                <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/apache/xalan-2_7_1/xalan.jar"/>
                <path refid="EAR Libraries.libraryclasspath"/>
            </path>
            <path id="Common.classpath">
                <path refid="ThriftConfig.classpath"/>
                <pathelement location="${thirdparty.location}/ThriftConfig.jar"/>
                <pathelement location="${thirdparty.location}/Common.jar"/>
            </path>
            <path id="PageLoaderServer.classpath">
                <pathelement location="${thirdparty.location}/readonly/apache/commons-lang-2.4/commons-lang-2.4.jar"/>
                <pathelement location="${thirdparty.location}/readonly/apache/poi-3.6/poi-3.6-20091214.jar"/>
                <pathelement location="${thirdparty.location}/readonly/apache/poi-3.6/poi-scratchpad-3.6-20091214.jar"/>
                <pathelement location="${thirdparty.location}/readonly/apache/commons-collections-3.2.1/commons-collections-3.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.3/commons-lang-2.3.jar"/>
                <pathelement location="${thirdparty.location}/readonly/apache/commons-lang-2.4/commons-lang-2.4-sources.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/jython/jython.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/serializer.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 refid="ThriftConfig.classpath"/>
                <path refid="Common.classpath"/>
            </path>
        
        <target name="init">
                <mkdir dir="bin"/>
                <copy includeemptydirs="false" todir="bin">
                    <fileset dir="src">
                        <exclude name="**/*.launch"/>
                        <exclude name="**/*.java"/>
                    </fileset>
                </copy>
        </target>
        
        <target name="clean">
        <delete dir="bin"/>
                <delete dir="build"/>
        </target>
    <target depends="clean" name="cleanall"/>
    
    <target depends="build-project" name="build"/>
    
    <target depends="init" name="build-project">
        <echo message="${ant.project.name}: ${ant.file}"/>
        <javac debug="true" debuglevel="${debuglevel}" destdir="bin" source="${source}" target="${target}">
            <src path="src"/>
            <classpath refid="PageLoaderServer.classpath"/>
        </javac>
    </target>

    <target name="main" depends="cleanall, build, compress">
        <echo>
            ${message}
        </echo>
    </target>
    
    
    <target name="compress">
        <mkdir dir="build"/>
        
        <copy todir="build">
            <fileset dir="bin">
                <include name="**/*.class"/>
            </fileset>
        </copy>
    
        <jar 
            destfile="../lib/PageLoaderServer.jar" 
            basedir="build"/>
    </target>
</project>