directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r530594 - in /directory/daemon/branches/1.0/plugin/src/main: java/org/apache/directory/daemon/installers/CreateImageCommand.java resources/org/apache/directory/daemon/installers/jsvc_linux_x86_64
Date Fri, 20 Apr 2007 00:44:35 GMT
Author: akarasulu
Date: Thu Apr 19 17:44:34 2007
New Revision: 530594

URL: http://svn.apache.org/viewvc?view=rev&rev=530594
Log:
adding support to generate an installer with jsvc compiled for x86_64: fix for DIRSERVER-751

Added:
    directory/daemon/branches/1.0/plugin/src/main/resources/org/apache/directory/daemon/installers/jsvc_linux_x86_64
      - copied unchanged from r530593, directory/daemon/trunk/plugin/src/main/resources/org/apache/directory/daemon/installers/jsvc_linux_x86_64
Modified:
    directory/daemon/branches/1.0/plugin/src/main/java/org/apache/directory/daemon/installers/CreateImageCommand.java

Modified: directory/daemon/branches/1.0/plugin/src/main/java/org/apache/directory/daemon/installers/CreateImageCommand.java
URL: http://svn.apache.org/viewvc/directory/daemon/branches/1.0/plugin/src/main/java/org/apache/directory/daemon/installers/CreateImageCommand.java?view=diff&rev=530594&r1=530593&r2=530594
==============================================================================
--- directory/daemon/branches/1.0/plugin/src/main/java/org/apache/directory/daemon/installers/CreateImageCommand.java
(original)
+++ directory/daemon/branches/1.0/plugin/src/main/java/org/apache/directory/daemon/installers/CreateImageCommand.java
Thu Apr 19 17:44:34 2007
@@ -287,6 +287,21 @@
             }
         }
 
+        // now copy over the jsvc executable renaming it to the applicationName 
+        if ( target.getOsName().equals( "linux" ) && target.getOsArch().equals( "x86_64"
) )
+        {
+            File executable = new File( layout.getBinDirectory(), target.getApplication().getName()
);
+            try
+            {
+                MojoHelperUtils.copyBinaryFile( getClass().getResourceAsStream( "jsvc_linux_x86_64"
), executable );
+            }
+            catch ( IOException e )
+            {
+                throw new MojoFailureException( "Failed to copy jsvc executable file "
+                    + getClass().getResource( "jsvc_linux_x86_64" ) + " into position " +
executable.getAbsolutePath() );
+            }
+        }
+
         // now copy over the jsvc executable renaming it to the mymojo.getApplicationName()

         if ( target.getOsName().equals( "sunos" ) && target.getOsArch().equals( "sparc"
) )
         {



Mime
View raw message