[opencms-dev] Importing modules on commandline

Michael Moossen m.moossen at alkacon.com
Mon Sep 12 13:47:07 CEST 2005


Hi, Jeff

   use the OpenCms Shell:

in the ${OPENCMS_HOME}\WEB-INF folder you will find a cmsshell.bat (or
.sh) file, may be you will have to modify this file to extend the
classpath to your jdbc driver (if it is not located in the
${OPENCMS_HOME}\WEB-INF\lib folder) and execute following instructions:
 
loginUser "Admin" "your_pwd"
setCurrentProject "Offline"
setSiteRoot "/sites/default/"  (or the site you need, for core modules this does
not matter) 
importModule "packages/modules/${module.name}_${module_version}.zip"
exit

-- 
Regards
Michael Moossen
Alkacon Software GmbH - The OpenCms Experts

http://www.alkacon.com



Quoting Jeff White <jeff.white at jvolution.co.uk>:

> 
> Hi
> 
> We have corrupted the OpenCms workplace during a conversion from OC5 to OC6
> by importing the OC5 workplace over the OC6 workplace and now the workplace
> will not operate for us to reload the OC6 workplace!
> 
> Is there a command line OpenCms command to import a module and will it work
> with the workplace corrupted ?
> 
> Regards
> 
> Jeff White
> JVolution Ltd.
> Tel : (+44) 0208 714 4488
> Mob: 07951 764806
> This email and any attachments or links are confidential and intended only
> for the individual to whom it is addressed. If you are not the intended
> recipient, any use or dissemination of this communication is strictly
> prohibited and you are requested to notify the sender immediately and then
> delete this email.
> 
> JVolution does not accept liability for any data corruption, unauthorised
> amendment, viruses and unforeseen delays to which this email may be subject.
> This email and any attachments or links are opened at your own risk.
> JVolution can take no responsibility for the consequences of actions carried
> out as a result of this e-mail.
> 
> 
> 
> _______________________________________________
> This mail is send to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://mail.opencms.org/mailman/listinfo/opencms-dev
> 


----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.




More information about the opencms-dev mailing list