-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.xml
100 lines (87 loc) · 2.89 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
<project default="dist" name="Xponents Distribution">
<description>
Builds a version of Xponents that runs out of the box.
</description>
<property name="xtext.home" value="${basedir}"/>
<property name="xtext.version" value="3.7"/>
<property name="xtext.release" location="${xtext.home}/dist/XText-${xtext.version}"/>
<target name="build">
<delete dir="${basedir}/lib"/>
<exec executable="mvn" dir="${xtext.home}" failonerror="true">
<arg value="-DincludeScope=test"/>
<arg value="-DincludeScope=runtime"/>
<arg value="-DincludeScope=compile"/>
<arg value="-DskipTests=true"/>
<arg value="clean"/>
<arg value="install"/>
<arg value="javadoc:javadoc"/>
<arg value="javadoc:jar"/>
<arg value="dependency:copy-dependencies"/>
</exec>
</target>
<target name="package">
<exec executable="mvn" dir="${xtext.home}" failonerror="true">
<arg value="-DincludeScope=test"/>
<arg value="-DincludeScope=runtime"/>
<arg value="-DincludeScope=compile"/>
<arg value="dependency:copy-dependencies"/>
</exec>
</target>
<target name="dist" depends="package">
<delete dir="${xtext.release}"/>
<mkdir dir="${xtext.release}"/>
<mkdir dir="${xtext.release}/lib"/>
<mkdir dir="${xtext.release}/lib/logging"/>
<mkdir dir="${xtext.release}/etc"/>
<mkdir dir="${xtext.release}/logs"/>
<mkdir dir="${xtext.release}/test"/>
<mkdir dir="${xtext.release}/script"/>
<copy todir="${xtext.release}/lib/">
<fileset dir="${xtext.home}/target">
<include name="*.jar"/>
</fileset>
</copy>
<copy todir="${xtext.release}/etc/">
<fileset dir="${xtext.home}/etc">
<include name="logback.*"/>
<include name="logging.*"/>
<include name="tika*"/>
</fileset>
</copy>
<copy todir="${xtext.release}">
<fileset dir="${xtext.home}">
<include name="*.htm*"/>
<include name="*.md"/>
</fileset>
</copy>
<copy todir="${xtext.release}/script/">
<fileset dir="${xtext.home}/script">
<include name="*.*"/>
</fileset>
</copy>
<copy todir="${xtext.release}/lib">
<fileset dir="${xtext.home}/lib">
<include name="*.jar"/>
</fileset>
</copy>
<copy todir="${xtext.release}/lib/logging">
<fileset dir="${xtext.home}/lib">
<include name="log4j*.jar"/>
</fileset>
</copy>
<delete>
<fileset dir="${xtext.release}/lib/">
<include name="log4j*.jar"/>
</fileset>
</delete>
<copy todir="${xtext.release}/test/">
<fileset dir="${xtext.home}/src/test/resources/">
<include name="*.*"/>
</fileset>
</copy>
<copy todir="${xtext.release}/doc/apidocs">
<fileset dir="${xtext.home}/target/apidocs"/>
</copy>
<chmod dir="${xtext.release}/script" perm="ugo+rx" includes="**/*.sh"/>
</target>
</project>