summaryrefslogtreecommitdiff
path: root/java/client/build.xml
blob: d52de8dca640dd08ea39b87858f4a3df51f922ed (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
<!--
 -
 - Licensed to the Apache Software Foundation (ASF) under one
 - or more contributor license agreements.  See the NOTICE file
 - distributed with this work for additional information
 - regarding copyright ownership.  The ASF licenses this file
 - to you under the Apache License, Version 2.0 (the
 - "License"); you may not use this file except in compliance
 - with the License.  You may obtain a copy of the License at
 - 
 -   http://www.apache.org/licenses/LICENSE-2.0
 - 
 - Unless required by applicable law or agreed to in writing,
 - software distributed under the License is distributed on an
 - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 - KIND, either express or implied.  See the License for the
 - specific language governing permissions and limitations
 - under the License.
 -
 -->
<project name="AMQ Client" default="build">

  <property name="module.depends" value="common"/>
  <property name="module.test.depends" value="common/test" />
  <property name="module.genpom" value="true"/>
  <property name="module.genpom.args" value="-Sgeronimo-jms_1.1_spec=provided"/>

  <import file="../module.xml"/>

  <property name="example.src.dir" value="${project.root}/client/example/src/main/java" />
  <property name="example.jar.file" value="${build.lib}/qpid-client-example-${project.version}.jar" />

  <property name="output.dir" value="${module.precompiled}/org/apache/qpid/filter/selector"/>

  <target name="precompile">
    <mkdir dir="${output.dir}"/>
    <javacc target="src/main/grammar/SelectorParser.jj"
            outputdirectory="${output.dir}"
            javacchome="${project.root}/lib"/>
  </target>


  <uptodate property="doc-release.done" targetfile="${module.release}/api/index.html">
    <srcfiles dir="${module.src}" includes="**/*.java"/>
  </uptodate>

  <target name="doc-release" depends="build" unless="doc-release.done">
      <javadoc destdir="${module.release}/api" sourcepathref="module.src.path"
               classpathref="module.class.path" packagenames="org.apache.qpid.jms"/>
  </target>

  <target name="release-bin-copy-examples">
      <copy todir="${module.release}/example/src" failonerror="true">
          <fileset dir="${example.src.dir}" excludes="runSample.sh README.txt" />
      </copy>
     <copy todir="${module.release}/example/lib" failonerror="true">
          <fileset file="${example.jar.file}"/>
      </copy>
  </target>

  <target name="release-bin-copy-readme">
      <copy todir="${module.release}" overwrite="true" failonerror="true">
          <fileset file="${basedir}/README.txt" />
      </copy>
  </target>

  <target name="release-bin-other" depends="release-bin-copy-examples,release-bin-copy-readme"/>

  <target name="release-bin" depends="release-bin-tasks"/>    

  <target name="bundle" depends="bundle-tasks"/>
</project>