forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rgard...@apache.org
Subject svn commit: r209318 - /forrest/trunk/tools/eclipse/plugins/org.apache.forrest/src/org/apache/forrest/eclipse/actions/Utilities.java
Date Tue, 05 Jul 2005 20:36:07 GMT
Author: rgardler
Date: Tue Jul  5 13:36:06 2005
New Revision: 209318

URL: http://svn.apache.org/viewcvs?rev=209318&view=rev
Log:
get path to XDocs (thanks to Anil Ramnanan - FOR-565)

Modified:
    forrest/trunk/tools/eclipse/plugins/org.apache.forrest/src/org/apache/forrest/eclipse/actions/Utilities.java

Modified: forrest/trunk/tools/eclipse/plugins/org.apache.forrest/src/org/apache/forrest/eclipse/actions/Utilities.java
URL: http://svn.apache.org/viewcvs/forrest/trunk/tools/eclipse/plugins/org.apache.forrest/src/org/apache/forrest/eclipse/actions/Utilities.java?rev=209318&r1=209317&r2=209318&view=diff
==============================================================================
--- forrest/trunk/tools/eclipse/plugins/org.apache.forrest/src/org/apache/forrest/eclipse/actions/Utilities.java
(original)
+++ forrest/trunk/tools/eclipse/plugins/org.apache.forrest/src/org/apache/forrest/eclipse/actions/Utilities.java
Tue Jul  5 13:36:06 2005
@@ -29,12 +29,39 @@
 import java.util.Iterator;
 import java.util.List;
 
+import org.apache.log4j.Logger;
+
+
+
 /**
  * 
  * Some handy utilities for working with plugins.
  */
 public class Utilities {
+	   
+	private static final Logger logger = Logger
+       .getLogger(Utilities.class);
+	
+    /**
+     * Retrieve the relative path to the XDocs directory.
+     * @retuen platform specific path to XDocs directory
+     */
+	public static String getPathToXDocs() {
+        if (logger.isDebugEnabled()) {
+            logger.debug("getPathToXDocs() - start");
+        }
+
+        // FIXME: get this value from the package config file (forrest.properties)
+        String path = "src" + java.io.File.separator + "documentation"
+                + java.io.File.separator + "content" + java.io.File.separator
+                + "xdocs";
 
+        if (logger.isDebugEnabled()) {
+            logger.debug("getPathToXDocs() - end");
+        }
+        return path;
+    }
+     
 	/**
 	 * @param directory
 	 * @return @throws



Mime
View raw message