Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

Commit

Permalink
Preserve permissions for jboss/bin/ in server gem [TORQUE-766]
Browse files Browse the repository at this point in the history
maven-resources-plugin doesn't preserve permissions, so we
punt to jruby.
  • Loading branch information
tobias committed Apr 13, 2012
1 parent 408231e commit 7bd3025
Showing 1 changed file with 21 additions and 35 deletions.
56 changes: 21 additions & 35 deletions build/server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -70,41 +70,6 @@
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<id>copy-assembly-jboss-for-gem</id>
<phase>process-sources</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${basedir}/target/torquebox-server/jboss</outputDirectory>
<resources>
<resource>
<directory>${basedir}/../assembly/target/stage/torquebox/jboss</directory>
</resource>
</resources>
</configuration>
</execution>
<execution>
<id>copy-assembly-share-for-gem</id>
<phase>process-sources</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${basedir}/target/torquebox-server/share</outputDirectory>
<resources>
<resource>
<directory>${basedir}/../assembly/target/stage/torquebox/share</directory>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>de.saumya.mojo</groupId>
<artifactId>gem-maven-plugin</artifactId>
Expand All @@ -117,6 +82,27 @@
<groupId>de.saumya.mojo</groupId>
<artifactId>jruby-maven-plugin</artifactId>
<executions>
<execution>
<id>copy-jboss-and-share</id>
<phase>process-sources</phase>
<goals>
<goal>jruby</goal>
</goals>
<configuration>
<script>
require 'fileutils'
def cp( src, dest )
puts %Q(copying #{src} to #{dest})
FileUtils.mkdir_p( dest )
FileUtils.cp_r( src, dest )
end
cp( %Q(${basedir}/../assembly/target/stage/torquebox/jboss),
%Q(${basedir}/target/torquebox-server) )
cp( %Q(${basedir}/../assembly/target/stage/torquebox/share),
%Q(${basedir}/target/torquebox-server) )
</script>
</configuration>
</execution>
<execution>
<id>copy-gem</id>
<inherited>true</inherited>
Expand Down

0 comments on commit 7bd3025

Please sign in to comment.