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 2006/12/19 18:54:01 UTC
svn commit: r488743 - in /directory/branches/daemon/1.0/plugin/src/main:
java/org/apache/directory/daemon/installers/CreateImageCommand.java
resources/org/apache/directory/daemon/installers/jsvc_linux_ppc
Author: akarasulu
Date: Tue Dec 19 09:54:00 2006
New Revision: 488743
URL: http://svn.apache.org/viewvc?view=rev&rev=488743
Log:
adding new linux ppc installer generation for izpack
Added:
directory/branches/daemon/1.0/plugin/src/main/resources/org/apache/directory/daemon/installers/jsvc_linux_ppc (with props)
Modified:
directory/branches/daemon/1.0/plugin/src/main/java/org/apache/directory/daemon/installers/CreateImageCommand.java
Modified: directory/branches/daemon/1.0/plugin/src/main/java/org/apache/directory/daemon/installers/CreateImageCommand.java
URL: http://svn.apache.org/viewvc/directory/branches/daemon/1.0/plugin/src/main/java/org/apache/directory/daemon/installers/CreateImageCommand.java?view=diff&rev=488743&r1=488742&r2=488743
==============================================================================
--- directory/branches/daemon/1.0/plugin/src/main/java/org/apache/directory/daemon/installers/CreateImageCommand.java (original)
+++ directory/branches/daemon/1.0/plugin/src/main/java/org/apache/directory/daemon/installers/CreateImageCommand.java Tue Dec 19 09:54:00 2006
@@ -272,6 +272,21 @@
}
}
+ // now copy over the jsvc executable renaming it to the applicationName
+ if ( target.getOsName().equals( "linux" ) && target.getOsArch().equals( "ppc" ) )
+ {
+ File executable = new File( layout.getBinDirectory(), target.getApplication().getName() );
+ try
+ {
+ MojoHelperUtils.copyBinaryFile( getClass().getResourceAsStream( "jsvc_linux_ppc" ), executable );
+ }
+ catch ( IOException e )
+ {
+ throw new MojoFailureException( "Failed to copy jsvc executable file "
+ + getClass().getResource( "jsvc_linux_ppc" ) + " 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/branches/daemon/1.0/plugin/src/main/resources/org/apache/directory/daemon/installers/jsvc_linux_ppc
URL: http://svn.apache.org/viewvc/directory/branches/daemon/1.0/plugin/src/main/resources/org/apache/directory/daemon/installers/jsvc_linux_ppc?view=auto&rev=488743
==============================================================================
Binary file - no diff available.
Propchange: directory/branches/daemon/1.0/plugin/src/main/resources/org/apache/directory/daemon/installers/jsvc_linux_ppc
------------------------------------------------------------------------------
svn:executable = *
Propchange: directory/branches/daemon/1.0/plugin/src/main/resources/org/apache/directory/daemon/installers/jsvc_linux_ppc
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream