directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r374311 - /directory/trunks/daemon/installers-plugin/src/main/java/org/apache/directory/daemon/installers/rpm/RpmInstallerCommand.java
Date Thu, 02 Feb 2006 08:58:55 GMT
Author: akarasulu
Date: Thu Feb  2 00:58:53 2006
New Revision: 374311

URL: http://svn.apache.org/viewcvs?rev=374311&view=rev
Log:
including the server.init in the image for rpm builds

Modified:
    directory/trunks/daemon/installers-plugin/src/main/java/org/apache/directory/daemon/installers/rpm/RpmInstallerCommand.java

Modified: directory/trunks/daemon/installers-plugin/src/main/java/org/apache/directory/daemon/installers/rpm/RpmInstallerCommand.java
URL: http://svn.apache.org/viewcvs/directory/trunks/daemon/installers-plugin/src/main/java/org/apache/directory/daemon/installers/rpm/RpmInstallerCommand.java?rev=374311&r1=374310&r2=374311&view=diff
==============================================================================
--- directory/trunks/daemon/installers-plugin/src/main/java/org/apache/directory/daemon/installers/rpm/RpmInstallerCommand.java
(original)
+++ directory/trunks/daemon/installers-plugin/src/main/java/org/apache/directory/daemon/installers/rpm/RpmInstallerCommand.java
Thu Feb  2 00:58:53 2006
@@ -143,6 +143,18 @@
                 + " into position " + toolsTarget, e );
         }
         
+        try
+        {
+            MojoHelperUtils.copyAsciiFile( mymojo, filterProperties, 
+                getClass().getResourceAsStream( "../template.init" ), target.getLayout().getInitScript(),
true );
+        }
+        catch ( IOException e )
+        {
+            mymojo.getLog().error( "Failed to copy init script "  
+                + getClass().getResource( "../template.init" )
+                + " into position " + target.getLayout().getInitScript(), e );
+        }
+
         // check first to see if the default spec file is present in src/main/installers
         File projectRpmFile = new File( mymojo.getSourceDirectory(), "spec.template" );
         if ( target.getRpmSpecificationFile() != null && target.getRpmSpecificationFile().exists()
)



Mime
View raw message