Permalink
Browse files

Issue #1: Fix linux file separator issue.

  • Loading branch information...
1 parent d194bc3 commit 324519519804835ebf66151903029e5d707e01a8 @srinathanantha srinathanantha committed Jun 22, 2012
@@ -1,6 +1,6 @@
class GrailsRuntimeDocsGrailsPlugin {
// the plugin version
- def version = "1.0.0-M1"
+ def version = "1.0.0-M2"
// the version or versions of Grails the plugin is designed for
def grailsVersion = "1.3.x > *"
// the other plugins this plugin depends on
View
@@ -1,4 +1,4 @@
-<plugin name='grails-runtime-docs' version='1.0.0-M1' grailsVersion='1.3.x &gt; *'>
+<plugin name='grails-runtime-docs' version='1.0.0-M2' grailsVersion='1.3.x &gt; *'>
<author>Srinath Anantha</author>
<authorEmail>srinath.anantha@gmail.com</authorEmail>
<title>Grails Runtime Docs</title>
@@ -13,8 +13,8 @@ import org.codehaus.groovy.tools.groovydoc.OutputTool
includeTargets << grailsScript("_GrailsBootstrap")
includeTargets << grailsScript("_GrailsRun")
-javaDocDir = "${grailsSettings.docsOutputDir}\\api"
-groovyDocDir = "${grailsSettings.docsOutputDir}\\gapi"
+javaDocDir = "${grailsSettings.docsOutputDir}/api"
+groovyDocDir = "${grailsSettings.docsOutputDir}/gapi"
docEncoding = "UTF-8"
docSourceLevel = "1.5"
links = ['http://java.sun.com/j2se/1.5.0/docs/api/']
@@ -13,7 +13,6 @@
private OutputTool output;
private GroovyRuntimeDocTemplateEngine templateEngine;
private static final String FS = "/";
- private static final String BSS = "\\";
private Properties properties;
public GroovyRuntimeDocWriter(OutputTool output, GroovyRuntimeDocTemplateEngine templateEngine, Properties properties) {
@@ -29,7 +28,7 @@ public void writeClasses(RootDoc rootDoc, String destDir) throws Exception {
}
public void writeClassToOutput(ClassDoc classDoc, String destDir) throws Exception {
- String destFileName = destDir + BSS + classDoc.getFullPathName() + ".html";
+ String destFileName = destDir + FS + classDoc.getFullPathName() + ".html";
System.out.println("Generating " + destFileName);
String renderedSrc = templateEngine.applyClassTemplates(classDoc);
output.writeToOutput(destFileName, renderedSrc);

0 comments on commit 3245195

Please sign in to comment.