Repository: polygene-java
Updated Branches:
  refs/heads/develop 744a07df2 -> c340f1f00


build, minor: stricter type declaration in DocumentationTask


Project: http://git-wip-us.apache.org/repos/asf/polygene-java/repo
Commit: http://git-wip-us.apache.org/repos/asf/polygene-java/commit/8c3ca57a
Tree: http://git-wip-us.apache.org/repos/asf/polygene-java/tree/8c3ca57a
Diff: http://git-wip-us.apache.org/repos/asf/polygene-java/diff/8c3ca57a

Branch: refs/heads/develop
Commit: 8c3ca57a9e8f660e188bda624c6267b47d76b788
Parents: 744a07d
Author: Paul Merlin <[email protected]>
Authored: Sat May 13 15:07:30 2017 +0200
Committer: Paul Merlin <[email protected]>
Committed: Sat May 13 15:07:30 2017 +0200

----------------------------------------------------------------------
 .../structure/manual/DocumentationTask.groovy   | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/polygene-java/blob/8c3ca57a/buildSrc/src/main/groovy/org/apache/polygene/gradle/structure/manual/DocumentationTask.groovy
----------------------------------------------------------------------
diff --git 
a/buildSrc/src/main/groovy/org/apache/polygene/gradle/structure/manual/DocumentationTask.groovy
 
b/buildSrc/src/main/groovy/org/apache/polygene/gradle/structure/manual/DocumentationTask.groovy
index 1ed7ee7..7a58a14 100644
--- 
a/buildSrc/src/main/groovy/org/apache/polygene/gradle/structure/manual/DocumentationTask.groovy
+++ 
b/buildSrc/src/main/groovy/org/apache/polygene/gradle/structure/manual/DocumentationTask.groovy
@@ -217,7 +217,7 @@ class DocumentationTask extends DefaultTask
       def asciidocIndexPath = relativePath( project.rootDir, new File( 
tempAsciidocDir, "$docName/index.txt" ) )
       spec.args = [
         '--verbose',
-        '--attribute', 'revnumber=' + project.version,
+        '--attribute', 'revnumber=' + project.version.toString(),
         '--attribute', 'level1=' + ( docType == 'article' ? 1 : 0 ),
         '--attribute', 'level2=' + ( docType == 'article' ? 2 : 1 ),
         '--attribute', 'level3=' + ( docType == 'article' ? 3 : 2 ),
@@ -257,8 +257,8 @@ class DocumentationTask extends DefaultTask
         '--nonet',
         '--noout',
         '--output', outputPath,
-        xsltFile,
-        "$tempDir/xdoc-temp.xml"
+        xsltFile.toString(),
+        "$tempDir/xdoc-temp.xml".toString()
       ]
     } as Action<? super ExecSpec> )
   }
@@ -274,9 +274,9 @@ class DocumentationTask extends DefaultTask
       spec.args = [
         '--nonet',
         '--noout',
-        '--output', "$outputDir/${ docName }.html",
-        xsltFile,
-        "$tempDir/xdoc-temp.xml"
+        '--output', "$outputDir/${ docName }.html".toString(),
+        xsltFile.toString(),
+        "$tempDir/xdoc-temp.xml".toString()
       ]
     } as Action<? super ExecSpec> )
   }
@@ -291,9 +291,9 @@ class DocumentationTask extends DefaultTask
       spec.executable = 'xsltproc'
       spec.args = [
         '--nonet',
-        '--output', "$tempDir/${ docName }.fo",
+        '--output', "$tempDir/${ docName }.fo".toString(),
         xsltFile,
-        "$tempDir/xdoc-temp.xml"
+        "$tempDir/xdoc-temp.xml".toString()
       ]
     } as Action<? super ExecSpec> )
 
@@ -303,8 +303,8 @@ class DocumentationTask extends DefaultTask
     ExecLogged.execLogged( project, outLog, errLog, { ExecSpec spec ->
       spec.executable = 'fop'
       spec.args = [
-        "$tempDir/${ docName }.fo",
-        "$outputDir/${ docName }.pdf"
+        "$tempDir/${ docName }.fo".toString(),
+        "$outputDir/${ docName }.pdf".toString()
       ]
     } as Action<? super ExecSpec> )
   }

Reply via email to