[opencms-dev] OpenCms 8 deleteResource not working

Alexander Kandzior alex at opencms.org
Mon Sep 3 11:00:21 CEST 2012


Why don't you patch the CmsShellCommands class itself and send us a pull
request on GutHub? 

 

Kind Regards,

Alex.

-------------------

Alexander Kandzior

                                                              

Alkacon Software GmbH  - The OpenCms Experts                 

http://www.alkacon.com - http://www.opencms.org                  

 

 

From: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] On Behalf Of Steve Bryan
Sent: Monday, September 03, 2012 3:03 AM
To: opencms-dev at opencms.org
Subject: Re: [opencms-dev] OpenCms 8 deleteResource not working

 

My work around solution is quite clunky but is working ok until when/if
Alkacon fix up cmsshell to be backwards compatible. Christophe's solution
looks nicer.

 

1. Create a patch package in my project org.opencms.main.

2. Got the latest content for CmsShellCommands.java from github, and hacked
it to add functions I need.

3. Updated my ant task to pass through an optional classpath env variable,
which is my classes directory.

4. Edited cmsshell.sh to prefix the classpath with my optional classpath env
- because it comes first my patch class is loaded rather than the java file
from opencms.jar.

ie at the bottom:

 

echo extra_classpath=$EXTRA_CLASSPATH

java -classpath
"${EXTRA_CLASSPATH}:${OPENCMS_CLASSPATH}:${TOMCAT_CLASSPATH}"
org.opencms.main.CmsShell -base="${OPENCMS_BASE}" "$@"

 

Steve

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20120903/689c2a78/attachment.htm>


More information about the opencms-dev mailing list