File: build.xml

package info (click to toggle)
logback 1%3A1.2.11-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 13,876 kB
  • sloc: java: 55,317; xml: 5,293; javascript: 1,427; sql: 552; sh: 140; perl: 33; makefile: 5
file content (90 lines) | stat: -rw-r--r-- 2,969 bytes parent folder | download | duplicates (2)
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
<project name="lbaccess" default="usage" basedir=".">

	<property file="build.properties" />

	<!-- The base directory relative to which most targets are built -->
	<property name="base" value="." />

	<property name="source.home" value="./src/java/" />
	<property name="javac.dest" value="./classes" />

	<property name="deprecation" value="on" />
	<property name="debug" value="on" />

	<!-- The stem where most LB core source code is located. -->
	<property name="stem" value="com/logback/access" />

	<path id="access.classpath">
		<pathelement location="${source.home}" />
		<pathelement location="${javac.dest}" />
	</path>


	<!-- ================================================================= -->
	<!--                        TARGETS                                    -->
	<!-- ================================================================= -->



	<!-- ================================================================= -->
	<!-- Default target                                                    -->
	<!-- ================================================================= -->

	<target name="usage">
		<echo>
      
      These are the targets supported by this ANT build scpript:
      
      build - compile all project files, if a certain library is missing, 
              then the compilation of its dependents are skipped.
    </echo>
	</target>

	<target name="prepare">
		<mkdir dir="${javac.dest}" />
	</target>

	<!-- ================================================================= -->
	<!-- Remove all generated files such as compiled class files and test  -->
	<!-- case output.                                                     -->
	<!-- ================================================================= -->
	<target name="clean">
		<delete dir="${javac.dest}/" />
	</target>

	<!-- ================================================================= -->
	<!-- Compile test cases and related source files.                      -->
	<!-- ================================================================= -->
	<target name="build" depends="prepare">
		<javac srcdir="${source.home}" destdir="${javac.dest}" 
			excludes="${stem}/xynz/toto.java" 
			deprecation="${deprecation}" 
			debug="${debug}">
			<classpath refid="access.classpath" />
		</javac>
	</target>


	 <target name="logback-access.jar" depends="build">
	    <delete>
	      <fileset dir=".">
	        <include name="logback-access*.jar"/>
	      </fileset>
	    </delete>

	    <jar jarfile="logback-access.jar" basedir="${javac.dest}"
	         includes="${stem}/**/*.class"
	          excludes="**/UnitTest**">

	      <manifest>
	        <section name="com/logback/access">
	          <attribute name="Implementation-Title" value="LOGBack-access"/>
	          <attribute name="Implementation-Version" value="${version}"/>
	          <attribute name="Implementation-Vendor" value="LOGBack.com"/>
	        </section>
	      </manifest>
	    </jar>
	  </target>


</project>