Skip to content

Commit

Permalink
Remove sigar completely
Browse files Browse the repository at this point in the history
  • Loading branch information
tlrx committed Jul 3, 2015
1 parent ac32f3d commit 9495816
Show file tree
Hide file tree
Showing 27 changed files with 20 additions and 1,042 deletions.
2 changes: 1 addition & 1 deletion core/bin/elasticsearch.in.bat
Expand Up @@ -88,7 +88,7 @@ set JAVA_OPTS=%JAVA_OPTS% -Dfile.encoding=UTF-8
REM Use our provided JNA always versus the system one
set JAVA_OPTS=%JAVA_OPTS% -Djna.nosys=true

set CORE_CLASSPATH=%ES_HOME%/lib/${project.build.finalName}.jar;%ES_HOME%/lib/*;%ES_HOME%/lib/sigar/*
set CORE_CLASSPATH=%ES_HOME%/lib/${project.build.finalName}.jar;%ES_HOME%/lib/*
if "%ES_CLASSPATH%" == "" (
set ES_CLASSPATH=%CORE_CLASSPATH%
) else (
Expand Down
2 changes: 1 addition & 1 deletion core/bin/elasticsearch.in.sh
@@ -1,6 +1,6 @@
#!/bin/sh

CORE_CLASSPATH="$ES_HOME/lib/${project.build.finalName}.jar:$ES_HOME/lib/*:$ES_HOME/lib/sigar/*"
CORE_CLASSPATH="$ES_HOME/lib/${project.build.finalName}.jar:$ES_HOME/lib/*"

if [ "x$ES_CLASSPATH" = "x" ]; then
ES_CLASSPATH="$CORE_CLASSPATH"
Expand Down
1 change: 0 additions & 1 deletion core/licenses/sigar-1.6.4.jar.sha1

This file was deleted.

201 changes: 0 additions & 201 deletions core/licenses/sigar-LICENSE.txt

This file was deleted.

117 changes: 0 additions & 117 deletions core/licenses/sigar-NOTICE.txt

This file was deleted.

31 changes: 1 addition & 30 deletions core/pom.xml
Expand Up @@ -214,11 +214,6 @@
<artifactId>jna</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.fusesource</groupId>
<artifactId>sigar</artifactId>
<optional>true</optional>
</dependency>

<!-- remove this for java 8 -->
<dependency>
Expand Down Expand Up @@ -708,20 +703,9 @@
<group>root</group>
</mapper>
</data>
<data>
<src>${project.basedir}/lib/sigar/</src>
<includes>sigar-*.jar, libsigar-*-linux.*</includes>
<type>directory</type>
<mapper>
<type>perm</type>
<prefix>${packaging.elasticsearch.home.dir}/lib/sigar</prefix>
<user>root</user>
<group>root</group>
</mapper>
</data>
<data>
<src>${project.build.directory}/lib</src>
<excludes>${project.build.finalName}-shaded.jar,${project.build.finalName}-sources.jar,${project.build.finalName}-tests.jar,${project.build.finalName}-test-sources.jar,slf4j-api-*.jar,sigar-*.jar</excludes>
<excludes>${project.build.finalName}-shaded.jar,${project.build.finalName}-sources.jar,${project.build.finalName}-tests.jar,${project.build.finalName}-test-sources.jar,slf4j-api-*.jar</excludes>
<type>directory</type>
<mapper>
<type>perm</type>
Expand Down Expand Up @@ -889,7 +873,6 @@
<exclude>${project.build.finalName}-tests.jar</exclude>
<exclude>${project.build.finalName}-test-sources.jar</exclude>
<exclude>slf4j-api-*.jar</exclude>
<exclude>sigar-*.jar</exclude>
</excludes>
</source>
<source>
Expand All @@ -900,18 +883,6 @@
</source>
</sources>
</mapping>
<mapping>
<directory>${packaging.elasticsearch.home.dir}/lib/sigar</directory>
<sources>
<source>
<location>lib/sigar</location>
<includes>
<include>sigar*.jar</include>
<include>libsigar-*-linux.*</include>
</includes>
</source>
</sources>
</mapping>
<!-- Add init.d files -->
<mapping>
<directory>/etc/init.d</directory>
Expand Down

0 comments on commit 9495816

Please sign in to comment.