-
Notifications
You must be signed in to change notification settings - Fork 167
/
plugin.xml
86 lines (81 loc) · 3.5 KB
/
plugin.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
<?xml version="1.0" encoding="UTF-8"?>
<project name="plugin" basedir=".">
<property name="plugins.dir" value="${basedir}/plugins" />
<property name="target.dir" value="${basedir}/target/plugins" />
<!-- Maven Repository -->
<property name="maven.snapshot.repo.url" value="https://oss.sonatype.org/content/repositories/snapshots" />
<property name="maven.release.repo.url" value="https://oss.sonatype.org/content/repositories/releases" />
<target name="install.plugins">
<mkdir dir="${target.dir}" />
<delete dir="${plugins.dir}" />
<mkdir dir="${plugins.dir}" />
<!-- analysis-extension -->
<antcall target="install.plugin">
<param name="repo.url" value="${maven.release.repo.url}" />
<param name="plugin.groupId" value="org/codelibs/opensearch" />
<param name="plugin.name.prefix" value="opensearch-" />
<param name="plugin.name" value="analysis-extension" />
<param name="plugin.version" value="2.18.0" />
<param name="plugin.zip.version" value="2.18.0" />
</antcall>
<!-- analysis-fess -->
<antcall target="install.plugin">
<param name="repo.url" value="${maven.release.repo.url}" />
<param name="plugin.groupId" value="org/codelibs/opensearch" />
<param name="plugin.name.prefix" value="opensearch-" />
<param name="plugin.name" value="analysis-fess" />
<param name="plugin.version" value="2.18.0" />
<param name="plugin.zip.version" value="2.18.0" />
</antcall>
<!-- configsync -->
<antcall target="install.plugin">
<param name="repo.url" value="${maven.release.repo.url}" />
<param name="plugin.groupId" value="org/codelibs/opensearch" />
<param name="plugin.name.prefix" value="opensearch-" />
<param name="plugin.name" value="configsync" />
<param name="plugin.version" value="2.18.0" />
<param name="plugin.zip.version" value="2.18.0" />
</antcall>
<!-- minhash -->
<antcall target="install.plugin">
<param name="repo.url" value="${maven.release.repo.url}" />
<param name="plugin.groupId" value="org/codelibs/opensearch" />
<param name="plugin.name.prefix" value="opensearch-" />
<param name="plugin.name" value="minhash" />
<param name="plugin.version" value="2.18.0" />
<param name="plugin.zip.version" value="2.18.0" />
</antcall>
<antcall target="remove.jars" />
</target>
<target name="install.plugin">
<get dest="${target.dir}">
<url url="${repo.url}/${plugin.groupId}/${plugin.name.prefix}${plugin.name}/${plugin.version}/${plugin.name.prefix}${plugin.name}-${plugin.zip.version}.zip" />
</get>
<unzip dest="${plugins.dir}/${plugin.name}" src="${target.dir}/${plugin.name.prefix}${plugin.name}-${plugin.zip.version}.zip">
<patternset>
<include name="**" />
</patternset>
<cutdirsmapper dirs="1" />
</unzip>
</target>
<target name="remove.jars" if="with.fess">
<delete>
<fileset dir="${plugins.dir}">
<include name="configsync/commons-codec-*" />
<include name="dataformat/commons-codec-*" />
<include name="dataformat/commons-collections4-*" />
<include name="dataformat/commons-compress-*" />
<include name="dataformat/commons-math3-*" />
<include name="dataformat/curvesapi-*" />
<include name="dataformat/orangesignal-csv-*" />
<include name="dataformat/poi-*" />
<include name="dataformat/SparseBitSet-*" />
<include name="dataformat/stax-api-*" />
<include name="dataformat/xmlbeans-*" />
<include name="minhash/guava-*" />
<include name="minhash/failureaccess-*" />
<include name="minhash/listenablefuture-*" />
</fileset>
</delete>
</target>
</project>