mirror of
https://github.com/apache/struts.git
synced 2026-08-11 01:27:14 +00:00
making wget download docs from the site, requires wget, but removes other dependencies WW-2958
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@735051 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
+14
-6
@@ -248,16 +248,24 @@
|
||||
<configuration>
|
||||
<tasks>
|
||||
<mkdir dir="${project.build.directory}/cwiki" />
|
||||
<!--
|
||||
<exec executable="ssh" failonerror="true" >
|
||||
<arg line="${username}@people.apache.org /www/struts.apache.org/2.x/docs-zip2.sh" />
|
||||
</exec>
|
||||
<exec executable="wget">
|
||||
<arg value="--progress=dot:mega" />
|
||||
<arg value="-nc" />
|
||||
<arg value="--output-document=${project.build.directory}/docs.zip" />
|
||||
<arg value="http://struts.apache.org/2.x/docs.zip" />
|
||||
</exec>
|
||||
<unzip src="${project.build.directory}/docs.zip" dest="${project.build.directory}/cwiki" />
|
||||
-->
|
||||
<exec executable="wget">
|
||||
<arg value="-erobots=off" />
|
||||
<arg value="-nH" />
|
||||
<arg value="-nv" />
|
||||
<arg value="-E" />
|
||||
<arg value="-L" />
|
||||
<arg value="-r" />
|
||||
<arg value="http://struts.apache.org/2.x/docs/" />
|
||||
</exec>
|
||||
<move todir="${project.build.directory}/cwiki">
|
||||
<fileset dir="2.x/docs"/>
|
||||
</move>
|
||||
</tasks>
|
||||
</configuration>
|
||||
<goals>
|
||||
|
||||
Reference in New Issue
Block a user