-
Notifications
You must be signed in to change notification settings - Fork 166
/
deps.xml
62 lines (59 loc) · 2.51 KB
/
deps.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
<?xml version="1.0" encoding="UTF-8"?>
<project name="deps" basedir=".">
<property name="target.dir" value="${basedir}/target/deps" />
<property name="webinf.dir" value="${basedir}/src/main/webapp/WEB-INF" />
<property name="crawler.dir" value="${basedir}/src/main/webapp/WEB-INF/env/crawler" />
<property name="suggest.dir" value="${basedir}/src/main/webapp/WEB-INF/env/suggest" />
<property name="thumbnail.dir" value="${basedir}/src/main/webapp/WEB-INF/env/thumbnail" />
<property name="site.dir" value="${basedir}/src/main/webapp/WEB-INF/site" />
<property name="kopf.branch" value="fess-14" />
<!-- Maven Repository -->
<property name="maven.snapshot.repo.url" value="https://oss.sonatype.org/content/repositories/snapshots" />
<property name="maven.release.repo.url" value="https://repo1.maven.org/maven2" />
<target name="install.jars">
<mkdir dir="${target.dir}" />
<delete dir="${webinf.dir}/lib" />
<mkdir dir="${webinf.dir}/lib" />
<delete dir="${crawler.dir}/lib" />
<mkdir dir="${crawler.dir}/lib" />
<delete dir="${suggest.dir}/lib" />
<mkdir dir="${suggest.dir}/lib" />
<delete dir="${thumbnail.dir}/lib" />
<mkdir dir="${thumbnail.dir}/lib" />
<!-- annotation-api -->
<antcall target="install.env.jar">
<param name="repo.url" value="${maven.release.repo.url}" />
<param name="jar.groupId" value="jakarta/annotation" />
<param name="jar.artifactId" value="jakarta.annotation-api" />
<param name="jar.version" value="2.1.1" />
<param name="file.version" value="2.1.1" />
</antcall>
<!-- kopf -->
<get dest="${target.dir}/kopf.zip">
<url url="https://github.com/codelibs/elasticsearch-kopf/archive/${kopf.branch}.zip" />
</get>
<delete dir="${site.dir}/kopf" />
<unzip dest="${site.dir}/kopf" src="${target.dir}/kopf.zip">
<patternset>
<include name="elasticsearch-kopf-${kopf.branch}/_site/**" />
</patternset>
<cutdirsmapper dirs="2" />
</unzip>
<delete>
<fileset dir="${webinf.dir}/plugin">
<include name="**/*.jar" />
</fileset>
</delete>
</target>
<target name="install.env.jar">
<get dest="${target.dir}">
<url url="${repo.url}/${jar.groupId}/${jar.artifactId}/${jar.version}/${jar.artifactId}-${file.version}.jar" />
</get>
<copy file="${target.dir}/${jar.artifactId}-${file.version}.jar"
todir="${crawler.dir}/lib"/>
<copy file="${target.dir}/${jar.artifactId}-${file.version}.jar"
todir="${suggest.dir}/lib"/>
<copy file="${target.dir}/${jar.artifactId}-${file.version}.jar"
todir="${thumbnail.dir}/lib"/>
</target>
</project>