Export as Portable Document Format (PDF) using the Web Browser
Other Formats (1)
Export as HyperText Markup Language (HTML)
cxubrix, 2007/02/19
Release notes says, that to do upgrade you have to point xwiki to your 0.9.x database. This did not work for me. Can someone update this topic with answer?
JeroenBaten, 2010/09/15
Updated the bash script to also detect pages found in the xar but not found in the wiki:
#!/bin/bash XWIKI_BASE_URL=http://localhost:8080
if["${1}"]; then echo args is: "${1}" else echo$1 no arg supplied fi
for page in `jar tvf $1 | sed -ne "/\/.*xml/{s/.*\s\(\S\+\)\/\(\S\+\).xml/\1\/pages\/\2/ p}"`; do curltxt=`curl -s -b cookies.txt -c cookies.txt ${XWIKI_BASE_URL}/xwiki/rest/wikis/xwiki/spaces/$page` found=`echo"$curltxt" | grep "The server has not found anything matching the request"` # if $? is 0 then this page is not found in the wiki if[$? -eq 0]; then result="PAGE NOT FOUND IN WIKI" else version=`echo"$curltxt" | sed -ne "/version/{s/.*version>\(.*\)<\/version.*/\1/ p}"` if[[$version !="1.1"]]; then result="UPDATED TO VERSION: $version" fi fi echo$page$result done
Release notes says, that to do upgrade you have to point xwiki to your 0.9.x database. This did not work for me. Can someone update this topic with answer?
Updated the bash script to also detect pages found in the xar but not found in the wiki:
XWIKI_BASE_URL=http://localhost:8080
if [ "${1}" ]; then
echo args is: "${1}"
else
echo $1 no arg supplied
fi
for page in `jar tvf $1 | sed -ne "/\/.*xml/{s/.*\s\(\S\+\)\/\(\S\+\).xml/\1\/pages\/\2/ p}"`; do
curltxt=`curl -s -b cookies.txt -c cookies.txt ${XWIKI_BASE_URL}/xwiki/rest/wikis/xwiki/spaces/$page `
found=` echo "$curltxt" | grep "The server has not found anything matching the request" `
# if $? is 0 then this page is not found in the wiki
if [ $? -eq 0 ]; then
result="PAGE NOT FOUND IN WIKI"
else
version=` echo "$curltxt" | sed -ne "/version/{s/.*version>\(.*\)<\/version.*/\1/ p}"`
if [[ $version != "1.1" ]]; then
result="UPDATED TO VERSION: $version"
fi
fi
echo $page $result
done