Synchronizing with Ant
From OpenCms Wiki
(Difference between revisions)
(Warning about synchronize) |
|||
(One intermediate revision by one user not shown) | |||
Line 1: | Line 1: | ||
+ | <pre style="color:red"> | ||
+ | Caution: This page needs to be checked as the call "synchronize" does not seem to be available for the cmsshell in standard OpenCms. | ||
+ | </pre> | ||
+ | |||
Here's the ant target I use for synchronizing with OpenCMS. | Here's the ant target I use for synchronizing with OpenCMS. | ||
Line 29: | Line 33: | ||
</project> | </project> | ||
− | To see which commands are available from the command line using the CmsShell, you can run help * | + | To see which commands are available from the command line using the CmsShell, you can run help *. |
Latest revision as of 15:15, 18 August 2010
Caution: This page needs to be checked as the call "synchronize" does not seem to be available for the cmsshell in standard OpenCms.
Here's the ant target I use for synchronizing with OpenCMS.
<project name="OpenCms Build Script" basedir="." default="synchronize"> <property name="opencms.username" value="username" /> <property name="opencms.password" value="password" /> <property name="opencms.project" value="Offline" /> <target name="synchronize" description="Synchronize with the OpenCms VFS"> <echo file="shell.input"> login ${opencms.username} ${opencms.password} synchronize ${opencms.project} exit </echo> <java classname="org.opencms.main.CmsShell" fork="true" input="shell.input"> <classpath> ... </classpath> <arg value="-base=${tomcat.path}/webapps/opencms/WEB-INF" /> <arg value="-defaultWebApp=opencms" /> <arg value="-servletMapping=opencms" /> </java> <delete file="shell.input" quiet="true" /> </target> </project>
To see which commands are available from the command line using the CmsShell, you can run help *.