You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by ak...@apache.org on 2007/04/20 02:41:44 UTC
svn commit: r530593 - in /directory/daemon/trunk/plugin/src/main:
java/org/apache/directory/daemon/installers/CreateImageCommand.java
resources/org/apache/directory/daemon/installers/jsvc_linux_x86_64
Author: akarasulu
Date: Thu Apr 19 17:41:43 2007
New Revision: 530593
URL: http://svn.apache.org/viewvc?view=rev&rev=530593
Log:
adding support to generate an installer with jsvc compiled for x86_64: fix for DIRSERVER-751
Added:
directory/daemon/trunk/plugin/src/main/resources/org/apache/directory/daemon/installers/jsvc_linux_x86_64 (with props)
Modified:
directory/daemon/trunk/plugin/src/main/java/org/apache/directory/daemon/installers/CreateImageCommand.java
Modified: directory/daemon/trunk/plugin/src/main/java/org/apache/directory/daemon/installers/CreateImageCommand.java
URL: http://svn.apache.org/viewvc/directory/daemon/trunk/plugin/src/main/java/org/apache/directory/daemon/installers/CreateImageCommand.java?view=diff&rev=530593&r1=530592&r2=530593
==============================================================================
--- directory/daemon/trunk/plugin/src/main/java/org/apache/directory/daemon/installers/CreateImageCommand.java (original)
+++ directory/daemon/trunk/plugin/src/main/java/org/apache/directory/daemon/installers/CreateImageCommand.java Thu Apr 19 17:41:43 2007
@@ -272,6 +272,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" ) )
{
Added: directory/daemon/trunk/plugin/src/main/resources/org/apache/directory/daemon/installers/jsvc_linux_x86_64
URL: http://svn.apache.org/viewvc/directory/daemon/trunk/plugin/src/main/resources/org/apache/directory/daemon/installers/jsvc_linux_x86_64?view=auto&rev=530593
==============================================================================
Binary file - no diff available.
Propchange: directory/daemon/trunk/plugin/src/main/resources/org/apache/directory/daemon/installers/jsvc_linux_x86_64
------------------------------------------------------------------------------
svn:executable = *
Propchange: directory/daemon/trunk/plugin/src/main/resources/org/apache/directory/daemon/installers/jsvc_linux_x86_64
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream