Skip to content

Commit

Permalink
pack jni/* native libraries only in lib/jruby.jar
Browse files Browse the repository at this point in the history
  • Loading branch information
mkristian committed Jan 23, 2015
1 parent 2990190 commit ec3e503
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 61 deletions.
22 changes: 0 additions & 22 deletions core/pom.rb
Expand Up @@ -299,28 +299,6 @@

end

profile 'native' do

activation do
file( :missing => '../lib/jni' )
end

plugin :dependency do
execute_goals( 'unpack',
:id => 'unzip native',
:phase => 'process-classes',
'excludes' => 'META-INF,META-INF/*',
'artifactItems' => [ { 'groupId' => 'com.github.jnr',
'artifactId' => 'jffi',
'version' => '${jffi.version}',
'type' => 'jar',
'classifier' => 'native',
'overWrite' => 'false',
'outputDirectory' => '${jruby.basedir}/lib' } ] )
end

end

profile 'test' do

properties( 'maven.test.skip' => 'false' )
Expand Down
38 changes: 0 additions & 38 deletions core/pom.xml
Expand Up @@ -1019,44 +1019,6 @@
</plugins>
</build>
</profile>
<profile>
<id>native</id>
<activation>
<file>
<missing>../lib/jni</missing>
</file>
</activation>
<build>
<plugins>
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>unzip native</id>
<phase>process-classes</phase>
<goals>
<goal>unpack</goal>
</goals>
<configuration>
<excludes>META-INF,META-INF/*</excludes>
<artifactItems>
<artifactItem>
<groupId>com.github.jnr</groupId>
<artifactId>jffi</artifactId>
<version>${jffi.version}</version>
<type>jar</type>
<classifier>native</classifier>
<overWrite>false</overWrite>
<outputDirectory>${jruby.basedir}/lib</outputDirectory>
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>test</id>
<properties>
Expand Down
8 changes: 7 additions & 1 deletion maven/jruby-dist/src/main/assembly/jruby.xml
Expand Up @@ -23,6 +23,13 @@
<include>specifications/*</include>
<include>gems/**/*</include>
</includes>
<excludes>
<exclude>gems/*/spec</exclude>
<exclude>gems/*/specs</exclude>
<exclude>gems/*/test</exclude>
<exclude>gems/*/tests</exclude>
<exclude>gems/*/features</exclude>
</excludes>
</fileSet>
<fileSet>
<directory>${project.parent.parent.basedir}</directory>
Expand All @@ -31,7 +38,6 @@
<include>LICENSE*</include>
<include>COPYING*</include>
<include>lib/jruby.jar</include>
<include>lib/jni/**/*</include>
<include>samples/**/*</include>
<include>docs/**/*</include>
<include>tool/nailgun/*</include>
Expand Down

0 comments on commit ec3e503

Please sign in to comment.