jvanzyl     2002/06/27 19:26:08

  Modified:    src/plugins/xdoc plugin.jelly
  Log:
  Putting the deploy-site goodies into its own plugin.
  
  Revision  Changes    Path
  1.4       +0 -65     jakarta-turbine-maven/src/plugins/xdoc/plugin.jelly
  
  Index: plugin.jelly
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine-maven/src/plugins/xdoc/plugin.jelly,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- plugin.jelly      28 Jun 2002 02:19:03 -0000      1.3
  +++ plugin.jelly      28 Jun 2002 02:26:08 -0000      1.4
  @@ -177,69 +177,4 @@
   
     </goal>
   
  -  <!-- ================================================================== -->
  -  <!-- D E P L O Y  S I T E                                               -->
  -  <!-- ================================================================== -->
  -
  -  <goal
  -    name="check-maven-username">
  -    
  -    <!--
  -    unless="maven.username">
  -    
  -    Not sure if there's an unless jelly tag or what syntax I need
  -    to test for null.
  -    
  -    -->
  -
  -    <fail>
  -      +------------------------------------------------------------------
  -      | ERROR!
  -      |
  -      | You must specify a maven username in order to deploy the site!
  -      | You can either set this property in your ~/build.properties
  -      | or specify one on the command line:
  -      |
  -      | ant -Dmaven.username=${user.name} maven:deploy-site
  -      +------------------------------------------------------------------
  -    </fail>
  -  </goal>
  -
  -  <goal
  -    name="deploy-site"
  -    prereqs="check-maven-username, site,do-deploy-site"
  -  />
  -
  -  <goal
  -    name="do-deploy-site">
  -    
  -    <j:if test="${flags.mavenUserName}">
  -    
  -    <echo>
  -      siteAddress = ${maven.siteAddress}
  -      siteDirectory = ${maven.siteDirectory}
  -    </echo>
  -
  -    <!-- This needs to taken from the project properties -->
  -    <property name="maven.homepage" value="${maven.siteDirectory}"/>
  -
  -    <tar tarfile="${maven.final.name}-site.tar" basedir="${maven.docs.dest}"/>
  -    <gzip zipfile="${maven.final.name}-site.tar.gz" 
src="${maven.final.name}-site.tar"/>
  -    <delete file="${maven.final.name}-site.tar"/>
  -
  -    <exec dir="." executable="${maven.scp.executable}">
  -      <arg value="${maven.final.name}-site.tar.gz"/>
  -      <arg value="${maven.username}@${maven.siteAddress}:${maven.homepage}"/>
  -    </exec>
  -
  -    <exec dir="." executable="${maven.ssh.executable}">
  -      <arg line="${maven.siteAddress} -l ${maven.username} 'mkdir -p 
${maven.homepage};cd ${maven.homepage};gunzip ${maven.final.name}-site.tar.gz;tar xUvf 
${maven.final.name}-site.tar;chmod -R g+u *;rm ${maven.final.name}-site.tar'"/>
  -    </exec>
  -
  -    <delete file="${maven.final.name}-site.tar.gz"/>
  -    
  -    </j:if>
  -    
  -  </goal>
  -
   </project>
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to