[r16068]: rvmroot / branches / RVM-127-JMX / build / base.xml  Maximize  Restore  History

Download this file

158 lines (136 with data), 6.0 kB

  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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
<!--
~ This file is part of the Jikes RVM project (http://jikesrvm.org).
~
~ This file is licensed to You under the Common Public License (CPL);
~ You may not use this file except in compliance with the License. You
~ may obtain a copy of the License at
~
~ http://www.opensource.org/licenses/cpl1.0.php
~
~ See the COPYRIGHT.txt file distributed with this work for information
~ regarding copyright ownership.
-->
<project name="base">
<property file="${jikesrvm.dir}/.ant.properties"/>
<!-- If not set, default the target.name to the host.name -->
<property name="target.name" value="${host.name}"/>
<property name="target.file" location="${jikesrvm.dir}/build/targets/${target.name}.properties"/>
<!-- load host specific properties -->
<property name="host.file" location="${jikesrvm.dir}/build/hosts/${host.name}.properties"/>
<property file="${host.file}"/>
<!-- location of components -->
<property name="components.dir" location="${jikesrvm.dir}/components"/>
<property name="components.file" location="${components.dir}/components.properties"/>
<!-- location of patches against components -->
<property name="components.patch.dir" location="${jikesrvm.dir}/build/components/patches"/>
<!-- location of intermediate directory -->
<property name="build.dir" location="${jikesrvm.dir}/target"/>
<!-- location for image directory -->
<property name="dist.dir" location="${jikesrvm.dir}/dist"/>
<!-- base location for all test results -->
<property name="results.dir" location="${jikesrvm.dir}/results"/>
<!-- by default not working on config variant-->
<property name="config.variant" value=""/>
<!-- **************************************************************************** -->
<!-- * * -->
<!-- * Utility macros common across testing and building infrastructure. * -->
<!-- * * -->
<!-- **************************************************************************** -->
<!-- Macro to setup build name -->
<macrodef name="setBuildName">
<attribute name="property"/>
<attribute name="config"/>
<sequential>
<condition property="@{property}"
value="@{config}_${target.name}"
else="@{config}_${config.variant}_${target.name}">
<equals arg1="${config.variant}" arg2=""/>
</condition>
</sequential>
</macrodef>
<!-- recursive property expansion macro -->
<macrodef name="propertycopy">
<attribute name="name"/>
<attribute name="from"/>
<sequential>
<property name="@{name}" value="${@{from}}"/>
</sequential>
</macrodef>
<!-- Macro to test target property is set -->
<macrodef name="test-property">
<attribute name="name"/>
<attribute name="location"/>
<sequential>
<fail unless="@{name}">
@{name} property not specified. Please specify property in @{location}.
</fail>
</sequential>
</macrodef>
<!-- Macro to test property set to name of executable -->
<macrodef name="test-file">
<attribute name="name"/>
<attribute name="location"/>
<attribute name="msg" default=""/>
<sequential>
<test-property name="@{name}" location="@{location}"/>
<condition property="@{name}_invalid" value="1">
<not>
<available file="${@{name}}"/>
</not>
</condition>
<fail if="@{name}_invalid">
Value of @{name} property is invalid. (${@{name}}).
@{msg}
</fail>
</sequential>
</macrodef>
<target name="check-host-name">
<fail unless="host.name">
host.name property not specified. Please specify property on commandline or in ${jikesrvm.dir}/.ant.properties.
</fail>
</target>
<!-- **************************************************************************** -->
<!-- * * -->
<!-- * Check host and target are identical when building native components * -->
<!-- * * -->
<!-- **************************************************************************** -->
<macrodef name="check-host-and-target-match">
<attribute name="message"/>
<sequential>
<condition property="host_and_target_same" value="true">
<equals arg1="${host.name}" arg2="${target.name}"/>
</condition>
<fail unless="host_and_target_same">
Host and target are not the same and thus @{message}
</fail>
</sequential>
</macrodef>
<!-- **************************************************************************** -->
<!-- * * -->
<!-- * Targets for retrieving svn version * -->
<!-- * * -->
<!-- **************************************************************************** -->
<target name="check-svn-present">
<available property="svn.present" file=".svn" type="dir"/>
<property name="svn.exe" value="svn"/>
</target>
<target name="extract-svn-version" depends="check-svn-present" if="svn.present">
<exec executable="${svn.exe}">
<arg value="info"/>
<redirector outputproperty="svn.revision">
<outputfilterchain>
<linecontains>
<contains value="Revision: "/>
</linecontains>
<tokenfilter>
<replacestring from="Revision: " to=""/>
</tokenfilter>
</outputfilterchain>
</redirector>
</exec>
</target>
<target name="get-svn-version" depends="extract-svn-version">
<!-- set property if not already set -->
<property name="svn.revision" value="Unknown"/>
</target>
</project>

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks