directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1649511 - /directory/apacheds/trunk/service/src/main/java/org/apache/directory/server/InstallationLayout.java
Date Mon, 05 Jan 2015 12:10:47 GMT
Author: elecharny
Date: Mon Jan  5 12:10:47 2015
New Revision: 1649511

URL: http://svn.apache.org/r1649511
Log:
Added a toString() method

Modified:
    directory/apacheds/trunk/service/src/main/java/org/apache/directory/server/InstallationLayout.java

Modified: directory/apacheds/trunk/service/src/main/java/org/apache/directory/server/InstallationLayout.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/service/src/main/java/org/apache/directory/server/InstallationLayout.java?rev=1649511&r1=1649510&r2=1649511&view=diff
==============================================================================
--- directory/apacheds/trunk/service/src/main/java/org/apache/directory/server/InstallationLayout.java
(original)
+++ directory/apacheds/trunk/service/src/main/java/org/apache/directory/server/InstallationLayout.java
Mon Jan  5 12:10:47 2015
@@ -200,4 +200,27 @@ public class InstallationLayout extends
     {
         return new File( getBinDirectory(), "wrapper" );
     }
+
+
+    /**
+     * @see Object#toString()
+     */
+    public String toString()
+    {
+        StringBuilder sb = new StringBuilder();
+
+        sb.append( "Installation layout\n" );
+        sb.append( "  Root dir          : " ).append( getDirectory() ).append( '\n' );
+        sb.append( "  Installation dir  : " ).append( getInstallationDirectory() ).append(
'\n' );
+        sb.append( "  bin dir           : " ).append( getBinDirectory() ).append( '\n' );
+        sb.append( "  conf dir          : " ).append( getConfDirectory() ).append( '\n' );
+        sb.append( "Copied files\n" );
+        sb.append( "  License file      : " ).append( getLicenseFile() ).append( '\n' );
+        sb.append( "  Notice file       : " ).append( getNoticeFile() ).append( '\n' );
+        sb.append( "  Script file       : " ).append( getScriptFile() ).append( '\n' );
+        sb.append( "  Wrapper file      : " ).append( getWrapperFile() ).append( '\n' );
+        sb.append( "  Wrapper Conf file : " ).append( getWrapperConfigurationFile() ).append(
'\n' );
+
+        return sb.toString();
+    }
 }



Mime
View raw message