summaryrefslogtreecommitdiffstats
path: root/base/tks/shared/conf/jkconf.ant.xml
blob: a4f498050ab4637dd1c4ee33de8adc502090a069 (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
<!-- BEGIN COPYRIGHT BLOCK
     Copyright (C) 2006 Red Hat, Inc.
     All rights reserved.
     END COPYRIGHT BLOCK -->
<project name="jkconf" default="main" basedir=".">

    <target name="init-3x" if="33.detect">
        <taskdef name="jkconf" 
                 classname="org.apache.jk.config.WebXml2Jk" >
            <classpath>
                <!-- 3.3 support -->
                <pathelement location="/ws/jtc/jk/build/classes" />
                <pathelement location="${tomcat.home}/lib/container/tomcat-jk2.jar" />
                <pathelement location="${tomcat.home}/lib/container/crimson.jar"/>
                <pathelement location="${tomcat.home}/lib/common/commons-logging.jar"/>
            </classpath>
        </taskdef>
    </target>

    <target name="init-4x" if="4x.detect" >
        <path id="main.classpath">
            <!-- 3.3 support -->
            <fileset dir="${tomcat.home}/lib" includes="*.jar" />
            <fileset dir="${tomcat.home}/server/lib" includes="*.jar" />
            <fileset dir="${tomcat.home}/common/lib" includes="*.jar" />
        </path>
        
        <taskdef name="jkconf" classpathref="main.classpath" 
                 classname="org.apache.jk.config.WebXml2Jk" />
    </target>

    <target name="detect" >
        <property file="build.properties"/>
        <property file="${user.home}/build.properties"/>
        <property file="${user.home}/.build.properties"/>
            
            <!-- default locations, overrident by properties.
            This file must be installed in conf/  -->
        <property name="tomcat.home" location=".." />
            
        <available property="33.detect" file="${tomcat.home}/lib/container" />
        <available property="4x.detect" file="${tomcat.home}/server/lib" />
    </target>

    <target name="init" depends="detect,init-3x,init-4x" />

    <!-- ==================== Detection and reports ==================== -->


    <target name="main" depends="init">
        <jkconf docBase="${tomcat.home}/webapps/examples" 
                context="/examples" />
    </target>

</project>