directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r510123 - /directory/daemon/branches/1.0/plugin/src/main/java/org/apache/directory/daemon/installers/CreateImageCommand.java
Date Wed, 21 Feb 2007 18:01:17 GMT
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 --



Mime
View raw message