Author: nbubna Date: Tue Feb 20 17:08:40 2007 New Revision: 509846 URL: http://svn.apache.org/viewvc?view=rev&rev=509846 Log: add target to easily upload docs to website
Modified: velocity/tools/trunk/build.properties velocity/tools/trunk/build.xml Modified: velocity/tools/trunk/build.properties URL: http://svn.apache.org/viewvc/velocity/tools/trunk/build.properties?view=diff&rev=509846&r1=509845&r2=509846 ============================================================================== --- velocity/tools/trunk/build.properties (original) +++ velocity/tools/trunk/build.properties Tue Feb 20 17:08:40 2007 @@ -68,6 +68,7 @@ # distribution properties publish.server=people.apache.org publish.dir=/www/www.apache.org/dist/velocity/tools/${project.version} +publish.docs.dir=/www/velocity.apache.org/tools/ # javadoc properties javadoc.dir=${docs.dir}/javadoc Modified: velocity/tools/trunk/build.xml URL: http://svn.apache.org/viewvc/velocity/tools/trunk/build.xml?view=diff&rev=509846&r1=509845&r2=509846 ============================================================================== --- velocity/tools/trunk/build.xml (original) +++ velocity/tools/trunk/build.xml Tue Feb 20 17:08:40 2007 @@ -556,6 +556,24 @@ </scp> </target> + <target name="publish.docs" depends="docs,publish.auth" if="have.auth" + description="Updates development documentation on the website"> + <zip zipfile="${dist.dir}/docs.zip" + basedir="${docs.dir}"/> + <echo> + Zips documentation files from + ${docs.dir} + and uploads them to + ${username}:[EMAIL PROTECTED]:${publish.docs.dir} + </echo> + <scp todir="${username}:[EMAIL PROTECTED]:${publish.docs.dir}" + verbose="true" failonerror="true" trust="yes"> + <fileset dir="${dist.dir}"> + <include name="docs.zip"/> + </fileset> + </scp> + </target> + <!-- ========== Test Targets ======================================== -->