This repository has been archived by the owner on Oct 29, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
common.xml
63 lines (58 loc) · 2.17 KB
/
common.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
<?xml version="1.0" encoding="ISO-8859-1" ?>
<project>
<property name="src.dir" location="."/>
<property name="propertiessrc.dir" location="./geogebra/properties"/>
<property name="build.dir" location="build"/>
<property name="propertiestemp.dir" location="${build.dir}/tempproperties"/>
<property name="temp.dir" location="${build.dir}/temp"/>
<property name="workspace.dir" location="../"/>
<!--property environment="env"/-->
<!-- reads the version/build number from geogebra.GeoGebra.java -->
<target name="readVersion">
<loadfile property="fullversion" srcfile="${src.dir}/geogebra/GeoGebra.java">
<filterchain>
<linecontainsregexp>
<regexp pattern="public static final String VERSION_STRING.*=" />
</linecontainsregexp>
<containsregex pattern=".*"(.*)".*" replace="\1"/>
<deletecharacters chars="\r\n" />
</filterchain>
</loadfile>
<loadfile property="version" srcfile="${src.dir}/geogebra/GeoGebra.java">
<filterchain>
<linecontainsregexp>
<regexp pattern="public static final String VERSION_STRING.*=" />
</linecontainsregexp>
<containsregex pattern=".*"(.*)\..*".*" replace="\1"/>
<deletecharacters chars="\r\n" />
</filterchain>
</loadfile>
<loadfile property="build" srcfile="${src.dir}/geogebra/GeoGebra.java">
<filterchain>
<linecontainsregexp>
<regexp pattern="public static final String VERSION_STRING.*=" />
</linecontainsregexp>
<containsregex pattern=".*".*\..*\..*\.(.*)".*" replace="\1"/>
<deletecharacters chars="\r\n" />
</filterchain>
</loadfile>
<loadfile property="versionname" srcfile="${src.dir}/geogebra/GeoGebra.java">
<filterchain>
<linecontainsregexp>
<regexp pattern="public static final String VERSION_STRING.*=" />
</linecontainsregexp>
<containsregex pattern=".*"(.*)".*" replace="\1"/>
<deletecharacters chars="\r\n" />
<tokenfilter>
<replaceregex pattern="\." replace="-" flags="g" />
</tokenfilter>
</filterchain>
</loadfile>
<!--
<echo> ${fullversion} </echo>
<echo> ${version} </echo>
<echo> ${build} </echo>
<echo> ${versionname} </echo>
-->
</target>
</project>