summaryrefslogtreecommitdiff
blob: dc6481c57a58cb63c6536d85e7fbc464c6bac0e1 (plain)
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
<?xml version="1.0"?>

<project name="Looks" default="jar" basedir=".">
   
   <!-- This is a customized build.xml for portage! -->
   <!--
      <property file="${basedir}/build.properties"/>
      <property file="${basedir}/default.properties"/>
   -->

   <!-- Specification data -->
   <property name="spec.title" value="JGoodies Looks API Specification"/>
   <property name="spec.version" value="1.3"/>
   <property name="spec.vendor" value="Karsten Lentzsch"/>

   <!-- Implementation data -->
   <property name="impl.title" value="JGoodies Looks"/>
   <property name="impl.version" value="1.3.2"/>
   <property name="impl.vender" value="Karsten Lentzsch"/>
   
   <!-- Directory structure information -->
   <property name="build" value="${basedir}/build"/>
   <property name="src" value="${basedir}/src"/>

   <!-- JavaDoc information -->
   <property name="packages" value="com.jgoodies.*"/>
   
   <target name="init">
      <tstamp />
      <mkdir dir="${build}"/>
      <mkdir dir="${build}/doc"/>
      <mkdir dir="${build}/doc/api"/>
   </target>

   <target name="manifest" depends="init">
      <manifest file="MANIFEST.MF" mode="update">
         <attribute name="Built-By" value="Gentoo Portage"/>
         <attribute name="Specification-Title" value="${spec.title}"/>
         <attribute name="Specification-Version" value="${spec.version}"/>
         <attribute name="Specification-Vendor" value="${spec.vendor}"/>
         <attribute name="Implementation-Title" value="${impl.title}"/>
         <attribute name="Implementation-Version" value="${impl.version}"/>
         <attribute name="Implementation-Vendor" value="${impl.vendor}"/>
      </manifest>
   </target>
   
   <target name="compile" depends="init">
      <javac srcdir="${src}" destdir="${build}" source="1.4" target="1.4" encoding="ISO-8859-1">
         <exclude name="examples/**/*"/>
         <exclude name="photoshop/**/*"/>
         <exclude name="test/**/*"/>
      </javac>
      
      <!--
         Copy application resources
         NOTE: THIS MAY NEED TO BE CHANGED IN FUTURE VERSIONS!!
      -->
      <copy toDir="${build}/com/jgoodies/looks/common">
         <fileset dir="${src}/com/jgoodies/looks/common" includes="shadow.png"/>
      </copy>
      <copy toDir="${build}/com/jgoodies/looks/plastic">
         <fileset dir="${src}/com/jgoodies/looks/plastic" includes="icons/**/*"/>
      </copy>
      <copy toDir="${build}/com/jgoodies/looks/windows">
         <fileset dir="${src}/com/jgoodies/looks/windows" includes="icons/**/*"/>
      </copy>
   </target>

   <target name="javadoc" depends="compile">
	   <javadoc sourcepath="${src}" packagenames="${packages}" destdir="${build}/docs/"/>
   </target>

   <target name="jar" depends="compile,manifest">
      <jar jarfile="looks-${impl.version}.jar" manifest="MANIFEST.MF">
         <fileset dir="${build}"/>
         <zipfileset dir="${basedir}"
                     includes="plastic.txt"
                     fullpath="META-INF/services/javax.swing.LookAndFeel"/>
      </jar>
   </target>

</project>