File: build.xml

package info (click to toggle)
zekr 1.1.0+repack-2.1
  • links: PTS, VCS
  • area: non-free
  • in suites: stretch
  • size: 8,544 kB
  • ctags: 4,170
  • sloc: java: 24,442; xml: 12,606; sh: 205; makefile: 13
file content (137 lines) | stat: -rw-r--r-- 5,592 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
<?xml version="1.0"?>
<project name="Zekr source build file" default="dist" basedir=".">

	<!-- Component parameters -->
	<property name="component" value="Zekr" />
	<property name="package" value="net.sf.zekr" />
	<property name="packagedir" value="net/sf/zekr" />
	<property name="distfilename" value="zekr" />

	<property name="main_class" value="${package}.ZekrMain" />

	<!-- Directory setup -->
	<property name="srcdir" value="src" />
	<property name="libdir" value="/usr/share/java" />
	<property name="docsdir" value="docs" />
	<property name="javadocsdir" value="${docsdir}/javadocs" />

	<property name="builddir" value="build" />
	<property name="build_classdir" value="${builddir}/classes" />

	<property name="distdir" value="dist/${distfilename}.jar" />

	<property name="src_dir" value="src" />

	<!-- Excevution tags -->
	<property name="debug" value="off" />
	<property name="verbose" value="no" />

	<!-- Distribution structure -->
	<property name="dist_javadocs" value="${builddir}/${javadocsdir}" />

	<!-- JAR file dependencies -->
	<property name="swt.jar" value="${libdir}/swt.jar" />
	<property name="velocity.jar" value="${libdir}/velocity.jar" />
	<property name="log4j.jar" value="${libdir}/log4j-1.2.jar" />
	<property name="lucene-core.jar" value="${libdir}/lucene-core.jar" />
	<property name="lucene-highlighter.jar" value="${libdir}/lucene-highlighter.jar" />
	<property name="lucene-snowball.jar" value="${libdir}/lucene-snowball.jar" />
	<property name="lucene-memory.jar" value="${libdir}/lucene-memory.jar" />
	<property name="lucene-misc.jar" value="${libdir}/lucene-misc.jar" />
	<property name="commons-logging.jar" value="${libdir}/commons-logging.jar" />
	<property name="commons-lang.jar" value="${libdir}/commons-lang.jar" />
	<property name="commons-io.jar" value="${libdir}/commons-io.jar" />
	<property name="commons-collections.jar" value="${libdir}/commons-collections3.jar" />
	<property name="commons-codec.jar" value="${libdir}/commons-codec.jar" />
    <property name="commons-configuration.jar" value="${libdir}/commons-configuration.jar" />

    <property name="jlayer.jar" value="${libdir}/jlayer.jar" />
    <property name="basicplayer.jar" value="${libdir}/basicplayer.jar" />
    <property name="tritonus-share.jar" value="${libdir}/tritonus_share.jar" />
	<property name="tritonus-jorbis.jar" value="${libdir}/tritonus_jorbis.jar" />
    <property name="voirbisspi.jar" value="${libdir}/vorbisspi.jar" />
    <property name="mp3spi.jar" value="${libdir}/mp3spi.jar" />
	<property name="jspeex.jar" value="${libdir}/jspeex.jar" />
	<property name="jorbis.jar" value="${libdir}/jorbis.jar" />

	<property name="jintellitype.jar" value="${libdir}/jintellitype-1.3.8.jar" />

	<path id="buildlibs">
		<pathelement location="${log4j.jar}" />
		<pathelement location="${swt.jar}" />
		<pathelement location="${lucene-core.jar}" />
		<pathelement location="${lucene-highlighter.jar}" />
		<pathelement location="${lucene-snowball.jar}" />
		<pathelement location="${lucene-memory.jar}" />
		<pathelement location="${lucene-misc.jar}" />
		<pathelement location="${commons-logging.jar}" />
		<pathelement location="${commons-lang.jar}" />
		<pathelement location="${commons-io.jar}" />
		<pathelement location="${commons-collections.jar}" />
		<pathelement location="${commons-codec.jar}" />
		<pathelement location="${commons-configuration.jar}" />
        <pathelement location="${velocity.jar}" />

        <pathelement location="${jlayer.jar}" />
        <pathelement location="${basicplayer.jar}" />
        <pathelement location="${voirbisspi.jar}" />
        <pathelement location="${mp3spi.jar}" />
        <pathelement location="${tritonus-share.jar}" />

		<pathelement location="${jintellitype.jar}" />
	</path>

	<target name="compile">
        <mkdir dir="${build_classdir}" />
    <mkdir dir="dist" />
		<javac srcdir="${src_dir}" encoding="UTF-8" source="1.5" target="1.5"
			destdir="${build_classdir}" includes="${packagedir}/**" debug="true"
			verbose="${verbose}">
			<classpath refid="buildlibs" />
		</javac>
		<copy todir="${build_classdir}">
			<fileset dir="${src_dir}">
				<include name="**/*.properties" />
			</fileset>
		</copy>
	</target>

	<target name="dist" depends="compile">
    <pathconvert property="class_path" pathsep=" ">
      <path refid="buildlibs" />
    </pathconvert>
		<jar jarfile="${distdir}" basedir="${build_classdir}">
			<manifest>
				<attribute name="Main-Class" value="${main_class}" />
        <attribute name="Class-Path" value="${class_path}" />
			</manifest>
    </jar>
		<delete dir="${builddir}" />
	</target>

	<target name="javadoc" depends="compile">
		<mkdir dir="${dist_javadocs}" />
		<javadoc packagenames="${package}.*" sourcepath="${src_dir}"
			classpath="${build_classdir}" classpathref="buildlibs" destdir="${dist_javadocs}"
			windowtitle="Zekr - Open Quranic Platform" verbose="${verbose}">
			<tag name="copyright" description="Copyright: http://zekr.org"
				scope="types" />
		</javadoc>
	</target>

	<target name="run" depends="dist">
		<java classname="${main_class}" fork="true">
			<jvmarg value="-Djava.library.path=${libdir}" />
			<env key="MOZILLA_FIVE_HOME" value="/usr/lib/firefox" />
			<classpath location="${distdir}" />
			<classpath refid="buildlibs" />
		</java>
	</target>

	<target name="clean">
		<delete dir="${builddir}" />
		<delete file="${distdir}" />
		<delete dir="dist" />
	</target>

</project>