Subversion Repositories SmartDukaan

Rev

Rev 323 | Rev 343 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 323 Rev 333
Line 1... Line 1...
1
<?xml version="1.0"?>
1
<?xml version="1.0"?>
2
<project default="main">
2
<project default="main" name="ContentStore">
3
    <property name="message" value="Building the ContentModel.jar file."/>
3
    <property name="message" value="Building the ContentStore.jar file."/>
4
    
4
    
-
 
5
		<property environment="env"/>
-
 
6
	    <property name="thirdparty.location" value="../lib"/>
-
 
7
	    <property name="debuglevel" value="source,lines,vars"/>
-
 
8
	    <property name="target" value="1.6"/>
-
 
9
	    <property name="source" value="1.6"/>
-
 
10
	    <path id="EAR Libraries.libraryclasspath"/>
-
 
11
	    <path id="ThriftConfig.classpath">
-
 
12
	        <pathelement location="${thirdparty.location}/readonly/apache/thrift-0.2.0/libthrift.jar"/>
-
 
13
	        <pathelement location="${thirdparty.location}/readonly/slf4j/slf4j-api-1.5.8.jar"/>
-
 
14
	        <pathelement location="${thirdparty.location}/readonly/slf4j/slf4j-simple-1.5.8.jar"/>
-
 
15
	        <path refid="EAR Libraries.libraryclasspath"/>
-
 
16
	    </path>
-
 
17
	    <path id="Common.classpath">
-
 
18
	        <path refid="ThriftConfig.classpath"/>
-
 
19
	    	<pathelement location="${thirdparty.location}/ThriftConfig.jar"/>
-
 
20
	    	<pathelement location="${thirdparty.location}/Common.jar"/>
-
 
21
	        
-
 
22
	    </path>
-
 
23
	    <path id="ContentStore.classpath">
-
 
24
	        <pathelement location="${thirdparty.location}/readonly/apache/commons-lang-2.4/commons-lang-2.4.jar"/>
-
 
25
	        <pathelement location="${thirdparty.location}/readonly/apache/poi-3.6/poi-3.6-20091214.jar"/>
-
 
26
	        <pathelement location="${thirdparty.location}/readonly/apache/poi-3.6/poi-scratchpad-3.6-20091214.jar"/>
-
 
27
	        <pathelement location="${thirdparty.location}/readonly/apache/commons-collections-3.2.1/commons-collections-3.2.1.jar"/>
-
 
28
	        <pathelement location="${thirdparty.location}/readonly/apache/commons-io-1.3.2/commons-io-1.3.2.jar"/>
-
 
29
	        <pathelement location="${thirdparty.location}/readonly/apache/commons-lang-2.3/commons-lang-2.3.jar"/>
-
 
30
	        <pathelement location="${thirdparty.location}/readonly/apache/commons-lang-2.4/commons-lang-2.4-sources.jar"/>
-
 
31
	        <pathelement location="${thirdparty.location}/readonly/apache/commons-logging-1.0.4/commons-logging-1.0.4.jar"/>
-
 
32
	        <pathelement location="${thirdparty.location}/readonly/apache/commons-logging-api-1.1/commons-logging-api-1.1.jar"/>
-
 
33
	        <pathelement location="${thirdparty.location}/readonly/apache/commons-validator-1.3.1/commons-validator-1.3.1.jar"/>
-
 
34
	        <pathelement location="${thirdparty.location}/readonly/apache/jsp-2.1/jsp-api.jar"/>
-
 
35
	        <pathelement location="${thirdparty.location}/readonly/apache/sevlet-2.5/servlet-api.jar"/>
-
 
36
	        <pathelement location="${thirdparty.location}/readonly/apache/struts-2.1.8.1/struts2-convention-plugin-2.1.8.1.jar"/>
-
 
37
	        <pathelement location="${thirdparty.location}/readonly/apache/struts-2.1.8.1/struts2-core-2.1.8.1.jar"/>
-
 
38
	        <pathelement location="${thirdparty.location}/readonly/apache/struts-2.1.8.1/struts2-rest-plugin-2.1.8.1.jar"/>
-
 
39
	        <pathelement location="${thirdparty.location}/readonly/apache/struts-2.1.8.1/xstream-1.2.2.jar"/>
-
 
40
	        <pathelement location="${thirdparty.location}/readonly/apache/struts-2.1.8.1/xwork-core-2.1.6.jar"/>
-
 
41
	        <pathelement location="${thirdparty.location}/readonly/apache/tomcat-juli/tomcat-juli.jar"/>
-
 
42
	        <pathelement location="${thirdparty.location}/readonly/apache/velocity-1.6.3/velocity-1.6.3.jar"/>
-
 
43
	        <pathelement location="${thirdparty.location}/readonly/jython/jython.jar"/>
-
 
44
	        <path refid="ThriftConfig.classpath"/>
-
 
45
	        <path refid="Common.classpath"/>
-
 
46
	    </path>
-
 
47
	
-
 
48
	<target name="init">
-
 
49
	        <mkdir dir="bin"/>
-
 
50
	        <copy includeemptydirs="false" todir="bin">
-
 
51
	            <fileset dir="src">
-
 
52
	                <exclude name="**/*.launch"/>
-
 
53
	                <exclude name="**/*.java"/>
-
 
54
	            </fileset>
-
 
55
	        </copy>
-
 
56
	</target>
-
 
57
	
-
 
58
	<target name="clean">
-
 
59
        <delete dir="bin"/>
-
 
60
		<delete dir="build"/>
-
 
61
	</target>
-
 
62
    <target depends="clean" name="cleanall"/>
-
 
63
    
-
 
64
    <target depends="build-project" name="build"/>
-
 
65
    
-
 
66
    <target depends="init" name="build-project">
-
 
67
        <echo message="${ant.project.name}: ${ant.file}"/>
-
 
68
        <javac debug="true" debuglevel="${debuglevel}" destdir="bin" source="${source}" target="${target}">
-
 
69
            <src path="src"/>
-
 
70
            <classpath refid="ContentStore.classpath"/>
-
 
71
        </javac>
-
 
72
    </target>
-
 
73
 
5
    <target name="main" depends="clean, compress">
74
    <target name="main" depends="cleanall, build, compress">
6
        <echo>
75
        <echo>
7
            ${message}
76
            ${message}
8
        </echo>
77
        </echo>
9
    </target>
78
    </target>
10
    
79
    
11
    <target name="clean">
-
 
12
        <delete dir="build"/>
-
 
13
    </target>   
-
 
14
    
80
    
15
    <target name="compress">
81
    <target name="compress">
16
        <mkdir dir="build"/>
82
        <mkdir dir="build"/>
17
        
83
        
18
        <copy todir="build">
84
        <copy todir="build">
Line 20... Line 86...
20
                <include name="**/*.class"/>
86
                <include name="**/*.class"/>
21
            </fileset>
87
            </fileset>
22
        </copy>
88
        </copy>
23
    
89
    
24
        <jar 
90
        <jar 
25
            destfile="../lib/ContentModel.jar" 
91
            destfile="../lib/ContentStore.jar" 
26
            basedir="build"/>
92
            basedir="build"/>
27
    </target>
93
    </target>
28
</project>
94
</project>
29
95