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/02/21 19:01:17 UTC
svn commit: r510123 -
/directory/daemon/branches/1.0/plugin/src/main/java/org/apache/directory/daemon/installers/CreateImageCommand.java
Author: akarasulu
Date: Wed Feb 21 10:01:16 2007
New Revision: 510123
URL: http://svn.apache.org/viewvc?view=rev&rev=510123
Log:
adding support for macosx intel version
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=510123&r1=510122&r2=510123
==============================================================================
--- 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 Wed Feb 21 10:01:16 2007
@@ -331,6 +331,21 @@
}
}
+ // now copy over the jsvc executable renaming it to the mymojo.getApplicationName()
+ if ( target.getOsName().equals( "macosx" ) && target.getOsArch().equals( "i386" ) )
+ {
+ File executable = new File( layout.getBinDirectory(), target.getApplication().getName() );
+ try
+ {
+ MojoHelperUtils.copyBinaryFile( getClass().getResourceAsStream( "jsvc_macosx_i386" ), executable );
+ }
+ catch ( IOException e )
+ {
+ throw new MojoFailureException( "Failed to copy jsvc executable file "
+ + getClass().getResource( "jsvc_macosx_i386" ) + " into position " + executable.getAbsolutePath() );
+ }
+ }
+
target.setLibArtifacts( MojoHelperUtils.copyDependencies( mymojo, layout ) );
// -- copy sources if set --