-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.xml
142 lines (121 loc) · 4.87 KB
/
build.xml
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
<?xml version="1.0" encoding="UTF-8"?>
<!--
* MORFEO Project
* http://www.morfeo-project.org
*
* Component: TIDIdlc
* Programming Language: XML
*
* File: $Source$
* Version: $Revision: 288 $
* Date: $Date: 2008-11-12 07:59:55 +0100 (Wed, 12 Nov 2008) $
* Last modified by: $Author: avega $
*
* (C) Copyright 2004 Telefónica Investigación y Desarrollo
* S.A.Unipersonal (Telefónica I+D)
*
* Info about members and contributors of the MORFEO project
* is available at:
*
* http://www.morfeo-project.org/TIDIdlc/CREDITS
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
* If you want to use this software an plan to distribute a
* proprietary application in any way, and you are not licensing and
* distributing your source code under GPL, you probably need to
* purchase a commercial license of the product. More info about
* licensing options is available at:
*
* http://www.morfeo-project.org/TIDIdlc/Licensing
-->
<project name="TIDIdlc" default="all" basedir=".">
<property name="tididlc.debug" value="false"/>
<property name="tididlc.encoding" value="iso8859-15"/>
<property name ="tididlc.home" location="."/>
<property name="tididlc.bin.dir" location="./bin"/>
<property name="tididlc.lib.dir" location="./lib"/>
<property name="tididlc.doc.dir" location="./doc"/>
<property name="tididlc.install.dir" location="./dist"/>
<property name="tididlc.samples.dir" location="./samples"/>
<property name="tididlc.build.dir" location="./build"/>
<!-- set this import if JDK < 1.4 (xml libraries needed in the classpath)
<import file="./build/XmlEndorsed/properties.xml"/>
-->
<!-- common definitions (libraries and paths, from the modules -->
<property name="tididlc.lib" location="${tididlc.lib.dir}/idlc.jar"/>
<property name="tididlc.ant.lib" location="${tididlc.lib.dir}/idlc_ant.jar"/>
<property name="tididlc.lib.cpp" location="${tididlc.lib.dir}/idl2cpp.jar"/>
<property name="tididlc.lib.java" location="${tididlc.lib.dir}/idl2java.jar"/>
<target name="all" depends="init">
<ant target="all" dir="source" inheritRefs="true" inheritAll="true"/>
<ant target="all" dir="tools" inheritRefs="true" inheritAll="true"/>
</target>
<target name="install" depends="all">
<delete dir="${tididlc.install.dir}"/>
<mkdir dir="${tididlc.install.dir}"/>
<copy file="CREDITS" todir="${tididlc.install.dir}"/>
<copy file="COPYING" todir="${tididlc.install.dir}"/>
<copy file="ChangeLog" todir="${tididlc.install.dir}"/>
<copy file="VERSION" todir="${tididlc.install.dir}"/>
<copy file="BUILT" todir="${tididlc.install.dir}"/>
<copy file="OMG_SPEC" todir="${tididlc.install.dir}"/>
<copy file="INSTALL" todir="${tididlc.install.dir}"/>
<copy file="BUGS" todir="${tididlc.install.dir}"/>
<mkdir dir="${tididlc.install.dir}/bin"/>
<copy todir="${tididlc.install.dir}/bin">
<fileset dir="${tididlc.bin.dir}"/>
</copy>
<chmod dir="${tididlc.install.dir}/bin" perm="a+x" includes="**/*.sh"/>
<move todir="${tididlc.install.dir}/bin">
<fileset dir="${tididlc.install.dir}/bin" includes="**/*.sh"/>
<mapper type="glob" from="*.sh" to="*"/>
</move>
<mkdir dir="${tididlc.install.dir}/lib"/>
<copy todir="${tididlc.install.dir}/lib">
<fileset dir="${tididlc.lib.dir}" includes="**/*.jar"/>
<!-- Uncommend if JDK < 1.4
<fileset dir="${tididlc.jaxp.lib}"/>
-->
</copy>
<mkdir dir="${tididlc.install.dir}/build"/>
<copy todir="${tididlc.install.dir}/build">
<fileset dir="${tididlc.build.dir}" includes="*.xml"/>
</copy>
<mkdir dir="${tididlc.install.dir}/samples"/>
<copy todir="${tididlc.install.dir}/samples">
<fileset dir="${tididlc.samples.dir}"/>
</copy>
</target>
<target name="debug">
<property name="tididlc.debug" value="true"/>
<antcall target="all" inheritall="true" inheritrefs="true">
<param name="tididlc.debug" value="true"/>
</antcall>
</target>
<target name="init">
<echo message="java.home=${java.home}"/>
<echo message="tididlc.home=${tididlc.home}"/>
<mkdir dir="${tididlc.doc.dir}"/>
<mkdir dir="${tididlc.install.dir}"/>
<mkdir dir="${tididlc.lib.dir}"/>
</target>
<target name="clean">
<delete dir="${tididlc.lib.dir}"/>
<delete dir="${tididlc.install.dir}"/>
<ant target="clean" dir="source" inheritrefs="true" inheritall="true"/>
<ant target="clean" dir="tools" inheritrefs="true" inheritall="true"/>
</target>
</project>