forked from sebasjm/antlr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
antlrsources.xml
172 lines (142 loc) · 6.48 KB
/
antlrsources.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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
<?xml version="1.0" encoding="UTF-8"?>
<!--
This is the assembly descriptor for building a full source code
distribution of ANTLR and all its related components. This assembly
only includes the Java oriented source code, hence only the Java runtime
is included in the resulting jar.
The resulting jar is distribution that can be expanded with:
jar xvf antlr-master-3.x.x-src.jar
The output directory will be antlr-master-3.x.x and in here will be
the BUILD.txt fie, which explains how to build ANTLR.
Jim Idle - May, 2009
-->
<assembly>
<!-- The name of this assembly descriptor, which is referenced in
the master pom.xml using <assemblyRef> (although in fact we
reference the file name that contains it to avoid cluttering
the pom.
-->
<id>src</id>
<!-- We have elected to produce only a jar output and to use the line
endings of whatever platform we are running on. More formats
can be added for simultaneous production, such as <format>zip</format>
-->
<formats>
<format>jar</format>
</formats>
<!--
The resulting archives will have a base directory named after the master
artifact, rather than just extract into the current directory.
-->
<includeBaseDirectory>true</includeBaseDirectory>
<!-- We need to described the source code of each of the modules we want
including in the archive. In the main this is because we did not store
the modules in perforce using directory names that match the module
names. This was for historic reasons as we already moved everything
about massively, just to move to Maven in the first place.
-->
<moduleSets>
<!-- Describe the gUnit source code.
-->
<moduleSet>
<!-- The Maven artifact name tells the assembly artifact a bunch
of information to start with, such as its location in the current
tree and so on.
-->
<includes>
<include>org.antlr:antlr-runtime</include>
</includes>
<!-- What sources do we wish to include from this module?
-->
<sources>
<!-- Because the Java runtime source is not in a directory
called antlr-runtime, directly underneath the master
directory, we need to map the output directory so that
instead of starting with the name of the artifact, it
is in the place where the build expects it.
-->
<outputDirectoryMapping>runtime/Java</outputDirectoryMapping>
<fileSets>
<!-- We have one file set, being the src sub-directory, which in
the output archive, we also want to be called src/
-->
<fileSet>
<directory>src</directory>
<outputDirectory>src</outputDirectory>
</fileSet>
<!-- In the base runtime/Java directory, we need to include a number
of files that either document the module or control the
build. These are not underneath the src directory of course
so they need to be named here (which nicely documents what
is included.
-->
<fileSet>
<includes>
<include>pom.xml</include>
<include>doxyfile</include>
<include>antlr.config</include>
</includes>
</fileSet>
</fileSets>
</sources>
</moduleSet>
<!-- Describe the ANTLR tool source code.
-->
<moduleSet>
<includes>
<include>org.antlr:antlr</include>
</includes>
<!-- What sources do we wish to include from this module?
-->
<sources>
<!-- Because the tool source code is not in a directory
called antlr, nor directly underneath the master
directory, we need to map the output directory so that
instead of starting with the name of the artifact, it
is in the place where the build expects it.
-->
<outputDirectoryMapping>tool</outputDirectoryMapping>
<fileSets>
<!-- We have one file set, being the src sub-directory, which in
the output archive, we also want to be called src/
-->
<fileSet>
<directory>src</directory>
<outputDirectory>src</outputDirectory>
</fileSet>
<!-- In the base tool directory, we need to include a number
of files that either document the module or control the
build. These are not underneath the src directory of course
so they need to be named here (which nicely documents what
is included.
-->
<fileSet>
<includes>
<include>pom.xml</include>
<include>CHANGES.txt</include>
<include>LICENSE.txt</include>
<include>README.txt</include>
<include>antlr.config</include>
</includes>
</fileSet>
</fileSets>
</sources>
</moduleSet>
</moduleSets>
<!-- In the base directory of the master build directory (the root of all
the other sources), there are a number of files that describe or control
the build (such as the master pom.xml and the BUILD.txt files). Hence
we need to describe them in their own fileset. No output mapping is required here
of course.
-->
<fileSets>
<fileSet>
<includes>
<include>pom.xml</include>
<include>antlrjar.xml</include>
<include>antlrsources.xml</include>
<include>BUILD.txt</include>
</includes>
</fileSet>
</fileSets>
</assembly>