directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r374320 - /directory/trunks/daemon/installers-plugin/src/main/java/org/apache/directory/daemon/installers/rpm/RpmInstallerCommand.java
Date Thu, 02 Feb 2006 09:18:19 GMT
Author: akarasulu
Date: Thu Feb  2 01:18:17 2006
New Revision: 374320

URL: http://svn.apache.org/viewcvs?rev=374320&view=rev
Log:
adding app.install.base substitution variable for rpm installer

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=374320&r1=374319&r2=374320&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 01:18:17 2006
@@ -219,9 +219,9 @@
         filterProperties.put( "app.release", "0" );
         filterProperties.put( "app.license.type", target.getApplication().getLicenseType()
);
 
+        String version = target.getApplication().getVersion().replace( '-', '_' );
         if ( target.getApplication().getVersion() != null )
         {
-            String version = target.getApplication().getVersion().replace( '-', '_' );
             filterProperties.put( "app.version", version );
         }
         else
@@ -276,6 +276,8 @@
         filterProperties.put( "verify.append.libs", getVerifyLibraryJars() );
         filterProperties.put( "installer.output.directory", target.getLayout().getBaseDirectory().getParent()
);
         filterProperties.put( "server.init", target.getLayout().getInitScript().getName()
);
+
+        filterProperties.put( "app.install.base", "/usr/local/" + target.getApplication().getName()
+ "-" + version );
     }
     
     



Mime
View raw message