~ubuntu-branches/ubuntu/saucy/libxml-java/saucy

« back to all changes in this revision

Viewing changes to build.xml

  • Committer: Package Import Robot
  • Author(s): tony mancill, Miguel Landaeta, tony mancill
  • Date: 2011-12-23 09:07:02 UTC
  • mfrom: (3.1.5 sid)
  • Revision ID: package-import@ubuntu.com-20111223090702-wvpt3s2m696owb5d
Tags: 1.1.6.dfsg-3
[Miguel Landaeta]
* Team upload.
* Add Build-Depends on ant-optional. (Closes: #652753).
* Bump Standards-Version to 3.9.2. No changes were required.
* Switch to source format 3.0 (quilt).
* Remove deprecated simple-patchsys management patch system.

[tony mancill]
* Add Vcs-Git and Vcs-Browser to d/control. (Closes: #653038)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<!--
2
 
  ~ Copyright (c) 2007, Pentaho Corporation. All Rights Reserved.
3
 
  -->
4
 
 
5
 
<!-- An ANT build file for libfonts. -->
6
 
 
7
 
<!-- Written by David Gilbert and modified for LibXML by Thomas Morgner. -->
8
 
 
9
 
<!-- This script has been tested with Ant version 1.6.2. -->
10
 
 
11
 
<!-- Several temporary directories are created while the script is -->
12
 
<!-- running: "./build" and "./distribution".  -->
13
 
 
14
 
<!-- A "./javadoc" directory will be created for the Javadoc -->
15
 
<!-- HTML pages. -->
16
 
 
17
 
<!-- The script should work for the distribution and also the CVS -->
18
 
<!-- repository. -->
19
 
 
20
 
<project name="libxml" default="all" basedir=".">
21
 
 
22
 
  <import file="ant/build-lib.xml"/>
23
 
 
24
 
  <target name="initialise" description="Initialise required settings.">
25
 
    <tstamp/>
26
 
 
27
 
    <property name="builddir" value="build"/>
28
 
 
29
 
    <property file="${user.home}/.build-pentaho-reporting-libxml.properties"/>
30
 
    <property file="build.properties"/>
31
 
 
32
 
    <isClassAndFileAvailable class-name="org.jfree.JCommon"
33
 
                             property-name="lib.jcommon.present"
34
 
                             file-name="${libdir}/${jcommon-jar-file}"/>
35
 
    <fail unless="lib.jcommon.present"/>
36
 
 
37
 
    <isClassAndFileAvailable class-name="org.jfree.resourceloader.LibLoaderInfo"
38
 
                             property-name="lib.libloader.present"
39
 
                             file-name="${libdir}/${libloader-jar-file}">
40
 
      <test-classpath>
41
 
        <pathelement location="${libdir}/${jcommon-jar-file}"/>
42
 
      </test-classpath>
43
 
    </isClassAndFileAvailable>
44
 
    <fail unless="lib.libloader.present"/>
45
 
 
46
 
  </target>
47
 
 
48
 
 
49
 
  <target name="compile-retro" depends="initialise"
50
 
    description="Compile the LibXML source code using a custom JIKES setup.">
51
 
 
52
 
    <build-retro target-jar="${libxml-jar-file}"
53
 
                 source-dir="source"
54
 
                 jdk-dir="${build.retro.jdk}">
55
 
      <all-classpath>
56
 
        <pathelement location="${libdir}/${jcommon-jar-file}"/>
57
 
        <pathelement location="${libdir}/${jaxp-jar-file}"/>
58
 
        <pathelement location="${libdir}/${libloader-jar-file}"/>
59
 
      </all-classpath>
60
 
      <all-resources>
61
 
        <include name="*.properties"/>
62
 
        <include name="**/*.properties"/>
63
 
      </all-resources>
64
 
    </build-retro>
65
 
  </target>
66
 
 
67
 
 
68
 
  <target name="compile" depends="initialise"
69
 
    description="Compile the libFonts source code.">
70
 
 
71
 
    <build-all target-jar="${libxml-jar-file}" source-dir="source">
72
 
      <all-classpath>
73
 
        <pathelement location="${libdir}/${jcommon-jar-file}"/>
74
 
        <pathelement location="${libdir}/${libloader-jar-file}"/>
75
 
        <pathelement location="${libdir}/${jaxp-jar-file}"/>
76
 
      </all-classpath>
77
 
      <all-resources>
78
 
        <include name="*.properties"/>
79
 
        <include name="**/*.properties"/>
80
 
        <include name="*.css"/>
81
 
        <include name="**/*.css"/>
82
 
      </all-resources>
83
 
    </build-all>
84
 
  </target>
85
 
 
86
 
  <target name="javadoc" depends="initialise">
87
 
    <delete dir="javadoc"/>
88
 
    <mkdir dir="javadoc"/>
89
 
    <javadoc destdir="javadoc"
90
 
      windowtitle="LibXML Class Library (version ${libxml.version})"
91
 
      linksource="true">
92
 
      <classpath>
93
 
        <pathelement location="${libdir}/${jcommon-jar-file}"/>
94
 
        <pathelement location="${libdir}/${libloader-jar-file}"/>
95
 
      </classpath>
96
 
      <packageset dir="source" defaultexcludes="yes">
97
 
        <include name="org/jfree/xmlns"/>
98
 
      </packageset>
99
 
    </javadoc>
100
 
  </target>
101
 
 
102
 
  <target name="fill-dist-dir">
103
 
    <!-- copy across README -->
104
 
    <copy file="README.txt"
105
 
      tofile="distribution/README.txt"/>
106
 
 
107
 
    <!-- copy across the ChangeLog -->
108
 
    <copy file="ChangeLog.txt"
109
 
      tofile="distribution/ChangeLog.txt"/>
110
 
 
111
 
    <!-- copy across LICENCE -->
112
 
    <copy file="licence-LGPL.txt"
113
 
      tofile="distribution/licence-LGPL.txt"/>
114
 
 
115
 
    <!-- copy across runtime jar file -->
116
 
    <copy file="${libxml-jar-file}"
117
 
      tofile="distribution/${libxml-jar-file}"/>
118
 
 
119
 
    <!-- copy across source files -->
120
 
    <copy todir="distribution/source">
121
 
      <fileset dir="source"/>
122
 
    </copy>
123
 
 
124
 
    <!-- copy across source files -->
125
 
    <copy todir="distribution/lib">
126
 
      <fileset dir="lib"/>
127
 
    </copy>
128
 
 
129
 
    <!-- copy across ant build file (this file) -->
130
 
    <copy file="build.xml"
131
 
      tofile="distribution/build.xml"/>
132
 
    <copy file="ant/build-lib.xml"
133
 
      tofile="distribution/ant/build-lib.xml"/>
134
 
 
135
 
    <copy file="build.properties"
136
 
      tofile="distribution/build.properties"/>
137
 
 
138
 
  </target>
139
 
 
140
 
  <target name="zip" depends="compile">
141
 
    <make-zip lib.version="${libxml.version}" lib.name="${libxml.name}"/>
142
 
  </target>
143
 
 
144
 
  <target name="targz" depends="compile">
145
 
    <make-targz lib.version="${libxml.version}" lib.name="${libxml.name}"/>
146
 
  </target>
147
 
 
148
 
  <target name="all"
149
 
    depends="compile,javadoc,zip,targz"
150
 
    description="Compiles Libfonts, builds the jar files, generates the Javadoc HTML pages and creates distribution files (.zip and .tar.gz).">
151
 
  </target>
152
 
 
153
 
</project>
 
1
<!--===========================================================================
 
2
  This is the build file for the libformula project.
 
3
  
 
4
  This build file will use the common_build.xml file as the default build
 
5
  process and should only override the tasks that need to differ from
 
6
  the common build file.
 
7
  
 
8
  See common_build.xml for more details
 
9
============================================================================-->
 
10
<project name="libformula" basedir="." default="jar">
 
11
        
 
12
        <description>
 
13
          This build file is used to create the libformula project
 
14
                and works with the common_build.xml file.
 
15
        </description>
 
16
 
 
17
        <!-- Define the default location of the common build file -->
 
18
        <property name="common.build.file" value="./common_build.xml" 
 
19
                description="This is the location of the standardized common_build.xml file"/>
 
20
 
 
21
        <!-- Import the common_build.xml file which contains all the default tasks -->
 
22
        <import file="${common.build.file}"/>
 
23
 
 
24
    <!--
 
25
      AS STATED ABOVE, THE ONLY TASKS THAT SHOULD EXIST IN THIS BUILD FILE ARE
 
26
      THE TASKS THAT NEED TO DIFFER FROM THE DEFAULT IMPLEMENTATION OF THE TASKS
 
27
      FOUND IN common_build.xml.
 
28
    --> 
 
29
 
 
30
        <target name="dist" description="Creates all the distributable items for this project" >
 
31
                <ant antfile="${common.build.file}" target="dist" />
 
32
                
 
33
                <!-- Create the required zip distribution which contains the entire project -->
 
34
                <zip destfile="${dist.dir}/${ivy.artifact.id}-${project.revision}.zip">
 
35
                        <fileset dir="${basedir}">
 
36
                                <exclude name="bin/" />
 
37
                                <exclude name="dist/" />
 
38
                                <exclude name="eclipse-bin/" />
 
39
                        </fileset>
 
40
                        <zipfileset dir="${dist.dir}" includes="**/*.jar" />
 
41
                </zip>
 
42
        </target>
 
43
 
 
44
</project>