Statistics
| Revision:

root / branches / v2_0_0_prep / build / ant-tasks / ant-tasks-config.xml @ 29554

History | View | Annotate | Download (2.63 KB)

1
<project name="gvSIG-ant-tasks-config" 
2
                xmlns:artifact="antlib:org.apache.maven.artifact.ant">
3

    
4
        <description>
5
                Ant tasks and macros configuration to interact with maven and
6
                subversion
7
        </description>
8

    
9
        <dirname property="ant-tasks-config.basedir" 
10
                file="${ant.file.gvSIG-ant-tasks-config}" />
11

    
12
        <property name="workspace_loc" location="${ant-tasks-config.basedir}/../.."
13
                description="Eclipse workspace location" />
14

    
15
        <property name="build.folder" location="${ant-tasks-config.basedir}/.."
16
                description="Folder of the build project" />
17

    
18
        <property name="gvsiglogo" 
19
                location="${ant-tasks-config.basedir}/resources/gvSIG.png" />
20

    
21
        <property name="ant.libs.dir" location="${ant-tasks-config.basedir}"
22
                description="Additional ant tasks libs folder" />
23

    
24
        <!-- ============================= -->
25
        <!-- External ant tasks definition -->
26
        <!-- ============================= -->
27

    
28
        <!-- Maven ant tasks registration -->
29
        <path id="maven-ant-tasks.classpath" 
30
                path="${ant.libs.dir}/maven-ant-tasks-2.0.10.jar" />
31
        <typedef resource="org/apache/maven/artifact/ant/antlib.xml" 
32
                uri="antlib:org.apache.maven.artifact.ant"
33
                classpathref="maven-ant-tasks.classpath" />
34

    
35
        <!-- ant-contrib library load -->
36
        <taskdef resource="net/sf/antcontrib/antlib.xml">
37
                <classpath>
38
                        <pathelement location="${ant.libs.dir}/ant-contrib-1.0b3.jar" />
39
                        <pathelement location="${ant.libs.dir}/bcel-5.1.jar" />
40
                        <pathelement location="${ant.libs.dir}/commons-httpclient-3.0.1.jar" />
41
                        <pathelement location="${ant.libs.dir}/commons-logging-1.0.4.jar" />
42
                        <pathelement location="${ant.libs.dir}/ivy-1.3.1.jar" />
43
                </classpath>
44
        </taskdef>
45

    
46
        <taskdef name="antform" classname="com.sardak.antform.AntForm">
47
                <classpath>
48
                        <pathelement location="${ant.libs.dir}/antform-2.0.jar" />
49
                </classpath>
50
        </taskdef>
51

    
52
        <taskdef name="antmenu" classname="com.sardak.antform.AntMenu">
53
                <classpath>
54
                        <pathelement location="${ant.libs.dir}/antform-2.0.jar" />
55
                </classpath>
56
        </taskdef>
57

    
58
        <target name="show.path.properties" unless="path.properties.shown">
59
                <echo>workspace_loc = ${workspace_loc}</echo>
60
                <echo>build.folder = ${build.folder}</echo>
61
                <echo>ant.libs.dir = ${ant.libs.dir}</echo>
62
                <property name="path.properties.shown" value="true" />
63
        </target>
64

    
65
        <!-- Maven targets -->
66
        <macrodef name="maven">
67
                <attribute name="arg" />
68
                <sequential>
69
                        <echo>mvn @{arg}</echo>
70
                        <artifact:mvn mavenHome="${build.folder}/maven" fork="true"
71
                                failonerror="true" maxmemory="256M">
72
                                <arg line="@{arg}" />
73
                                <jvmarg value="-XX:MaxPermSize=64M" />
74
                        </artifact:mvn>
75
                </sequential>
76
        </macrodef>
77

    
78
        <!-- Utility targets -->
79
        <target name="cancel">
80
                <fail>User canceled</fail>
81
        </target>
82
</project>