-
Notifications
You must be signed in to change notification settings - Fork 165
/
module.xml
107 lines (101 loc) · 4.51 KB
/
module.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
<?xml version="1.0" encoding="UTF-8"?>
<project name="module" basedir=".">
<property name="modules.dir" value="${basedir}/modules" />
<property name="target.dir" value="${basedir}/target/modules" />
<!-- Maven Repository -->
<property name="maven.snapshot.repo.url" value="https://maven.codelibs.org/" />
<property name="maven.release.repo.url" value="https://maven.codelibs.org/" />
<property name="opensearch.version" value="2.18.0" />
<target name="install.modules">
<mkdir dir="${target.dir}" />
<delete dir="${modules.dir}" />
<mkdir dir="${modules.dir}" />
<!-- analysis-common -->
<antcall target="install.module">
<param name="repo.url" value="${maven.release.repo.url}" />
<param name="module.groupId" value="org/codelibs/opensearch/module" />
<param name="module.name.prefix" value="" />
<param name="module.name" value="analysis-common" />
<param name="module.version" value="${opensearch.version}" />
<param name="module.zip.version" value="${opensearch.version}" />
</antcall>
<!-- geo -->
<antcall target="install.module">
<param name="repo.url" value="${maven.release.repo.url}" />
<param name="module.groupId" value="org/codelibs/opensearch/module" />
<param name="module.name.prefix" value="" />
<param name="module.name" value="geo" />
<param name="module.version" value="${opensearch.version}" />
<param name="module.zip.version" value="${opensearch.version}" />
</antcall>
<!-- lang-expression -->
<antcall target="install.module">
<param name="repo.url" value="${maven.release.repo.url}" />
<param name="module.groupId" value="org/codelibs/opensearch/module" />
<param name="module.name.prefix" value="" />
<param name="module.name" value="lang-expression" />
<param name="module.version" value="${opensearch.version}" />
<param name="module.zip.version" value="${opensearch.version}" />
</antcall>
<!-- lang-painless -->
<antcall target="install.module">
<param name="repo.url" value="${maven.release.repo.url}" />
<param name="module.groupId" value="org/codelibs/opensearch/module" />
<param name="module.name.prefix" value="" />
<param name="module.name" value="lang-painless" />
<param name="module.version" value="${opensearch.version}" />
<param name="module.zip.version" value="${opensearch.version}" />
</antcall>
<!-- mapper-extras -->
<antcall target="install.module">
<param name="repo.url" value="${maven.release.repo.url}" />
<param name="module.groupId" value="org/codelibs/opensearch/module" />
<param name="module.name.prefix" value="" />
<param name="module.name" value="mapper-extras" />
<param name="module.version" value="${opensearch.version}" />
<param name="module.zip.version" value="${opensearch.version}" />
</antcall>
<!-- reindex -->
<antcall target="install.module">
<param name="repo.url" value="${maven.release.repo.url}" />
<param name="module.groupId" value="org/codelibs/opensearch/module" />
<param name="module.name.prefix" value="" />
<param name="module.name" value="reindex" />
<param name="module.version" value="${opensearch.version}" />
<param name="module.zip.version" value="${opensearch.version}" />
</antcall>
<!-- transport-netty4 -->
<antcall target="install.module">
<param name="repo.url" value="${maven.release.repo.url}" />
<param name="module.groupId" value="org/codelibs/opensearch/module" />
<param name="module.name.prefix" value="" />
<param name="module.name" value="transport-netty4" />
<param name="module.version" value="${opensearch.version}" />
<param name="module.zip.version" value="${opensearch.version}" />
</antcall>
<antcall target="remove.jars" />
</target>
<target name="install.module">
<get dest="${target.dir}">
<url url="${repo.url}/${module.groupId}/${module.name.prefix}${module.name}/${module.version}/${module.name.prefix}${module.name}-${module.zip.version}.zip" />
</get>
<unzip dest="${modules.dir}/${module.name}" src="${target.dir}/${module.name.prefix}${module.name}-${module.zip.version}.zip">
<patternset>
<include name="**" />
</patternset>
<cutdirsmapper dirs="1" />
</unzip>
</target>
<target name="remove.jars" if="with.fess">
<delete>
<fileset dir="${modules.dir}">
<include name="lang-expression/asm-*" />
<include name="lang-painless/asm-*" />
<include name="reindex/commons-codec-*" />
<include name="reindex/commons-logging-*" />
<include name="reindex/httpclient-*" />
<include name="reindex/httpcore-4*" />
</fileset>
</delete>
</target>
</project>