You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by ml...@apache.org on 2011/09/01 22:29:15 UTC

svn commit: r1164263 - /tapestry/tapestry5/trunk/quickstart/build.gradle

Author: mlusetti
Date: Thu Sep  1 20:29:14 2011
New Revision: 1164263

URL: http://svn.apache.org/viewvc?rev=1164263&view=rev
Log:
TAP5-1609 Example task to publish newly generate archetype catalog to people.apache.org

Modified:
    tapestry/tapestry5/trunk/quickstart/build.gradle

Modified: tapestry/tapestry5/trunk/quickstart/build.gradle
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/quickstart/build.gradle?rev=1164263&r1=1164262&r2=1164263&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/quickstart/build.gradle (original)
+++ tapestry/tapestry5/trunk/quickstart/build.gradle Thu Sep  1 20:29:14 2011
@@ -17,6 +17,47 @@ import org.apache.tools.ant.filters.Repl
 
 generatedDir = new File(buildDir, 'quickstart-generated')
 
+/*
+ * An example on how to scp the generated archetype-catalog.xml to the tapestry.apache.org
+ * site, we need a nice way to hook it in the right place
+ */
+//configurations {
+//    scpTask
+//}
+//
+//dependencies {
+//    scpTask 'org.apache.ant:ant-jsch:1.8.2', 'com.jcraft:jsch:0.1.42'
+//}
+//
+//
+//task publishArchetypeCatalog(dependsOn: 'archetype') {
+//    description = 'Update archetype on minotaur'
+//
+//    // As with properties to deploy to the maven repositories (staging or central)
+//    // minotaurDeployUsername and minotaurDeployPassword should be specified in
+//    // ~/.gradle/gradle.properties
+//    // "minotaurDeployUsername"
+//    // "minotaurDeployPassword"
+//    // "minotaurSshPassphrase"
+//
+//    scpToDir = minotaurDeployUserName + "@people.apache.org:/tmp"
+//
+//    println scpToDir
+//
+//    ant.taskdef(name: 'scp', classname: 'org.apache.tools.ant.taskdefs.optional.ssh.Scp',
+//            classpath: configurations.scpTask.asPath)
+//
+//    ant.scp(todir: scpToDir,
+//            keyfile: '${user.home}/.ssh/id_rsa',
+//            // passphrase: minotaurSshPassphrase,
+//            // password: minotaurDeployPassword,
+//            verbose: 'true') {
+//        fileset(dir: generatedDir) {
+//            include(name: '**/archetype-catalog.xml')
+//        }
+//    }
+//}
+
 task generateArchetype(type: Copy) {
     srcDir = file('prototypes')
 
@@ -52,4 +93,4 @@ task archetype(type: Jar, dependsOn: 'ge
     exclude '**/archetype-catalog.xml'
 
     from generatedDir
-}
\ No newline at end of file
+}