polygene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From paulmer...@apache.org
Subject [1/7] polygene-java git commit: build: fix paths to website repository for release
Date Sat, 31 Dec 2016 13:29:47 GMT
Repository: polygene-java
Updated Branches:
  refs/heads/develop 0984d0ba9 -> 6f23e5549


build: fix paths to website repository for release


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

Branch: refs/heads/develop
Commit: b21b38a07951732d459ebdc3faf82f10c9247556
Parents: 0984d0b
Author: Paul Merlin <paulmerlin@apache.org>
Authored: Sat Dec 31 14:23:28 2016 +0100
Committer: Paul Merlin <paulmerlin@apache.org>
Committed: Sat Dec 31 14:23:28 2016 +0100

----------------------------------------------------------------------
 .../gradle/structure/release/ReleasePlugin.groovy   | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/polygene-java/blob/b21b38a0/buildSrc/src/main/groovy/org/apache/polygene/gradle/structure/release/ReleasePlugin.groovy
----------------------------------------------------------------------
diff --git a/buildSrc/src/main/groovy/org/apache/polygene/gradle/structure/release/ReleasePlugin.groovy
b/buildSrc/src/main/groovy/org/apache/polygene/gradle/structure/release/ReleasePlugin.groovy
index b36a967..076a6b5 100644
--- a/buildSrc/src/main/groovy/org/apache/polygene/gradle/structure/release/ReleasePlugin.groovy
+++ b/buildSrc/src/main/groovy/org/apache/polygene/gradle/structure/release/ReleasePlugin.groovy
@@ -85,11 +85,11 @@ class ReleasePlugin implements Plugin<Project>
       throw new InvalidUserDataException(
         'Development version is unreleasable, please clean and retry with a -Dversion=' )
     }
-    def polygeneWeb = new File( project.rootProject.projectDir.parentFile, 'polygene-web'
)
+    def polygeneWeb = new File( project.rootProject.projectDir.parentFile, 'polygene-website'
)
     if( !polygeneWeb.exists() )
     {
       throw new InvalidUserDataException(
-        'To perform ASF releases you need to checkout the SVN web site directory under ../polygene-web'
)
+        'To perform ASF releases you need to clone the `polygene-website` repository under
../polygene-website' )
     }
     def polygeneDist = new File( project.rootProject.projectDir.parentFile, 'polygene-dist'
)
     if( !polygeneDist.exists() )
@@ -241,20 +241,20 @@ class ReleasePlugin implements Plugin<Project>
       // TODO Consume documentation and reports through configurations
       task.dependsOn "${ manual.path }:${ ManualPlugin.TaskNames.WEBSITE }"
       task.dependsOn "${ reports.path }:${ ReportsPlugin.TaskNames.JAVADOCS }"
-      def webRoot = new File( project.rootProject.projectDir.parentFile, 'polygene-web' )
+      def webRoot = new File( project.rootProject.projectDir.parentFile, 'polygene-website'
)
       def dirName = releaseSpec.releaseVersion ? project.version : 'develop'
       task.destinationDir = webRoot
       task.from( new File( manual.buildDir, 'docs/website' ) ) { CopySpec spec ->
-        spec.into "site/content/java/$dirName"
+        spec.into "content/java/$dirName"
       }
       task.from( new File( reports.buildDir, 'docs/javadocs' ) ) { CopySpec spec ->
-        spec.into "site/content/java/$dirName/javadocs"
+        spec.into "content/java/$dirName/javadocs"
       }
     }
     project.tasks.create( TaskNames.COPY_ASF_DOC_LATEST, Copy ) { Copy task ->
-      def webRoot = new File( project.rootProject.projectDir.parentFile, 'polygene-web' )
-      task.from new File( webRoot, "site/content/java/$project.version" )
-      task.into new File( webRoot, "site/content/java/latest" )
+      def webRoot = new File( project.rootProject.projectDir.parentFile, 'polygene-website'
)
+      task.from new File( webRoot, "content/java/$project.version" )
+      task.into new File( webRoot, "content/java/latest" )
       task.doFirst {
         if( !releaseSpec.releaseVersion )
         {


Mime
View raw message