[opencms-dev] R: copy a resource with CmsConfigurationCopyResource
Valerio Synclab
v.vianello at synclab.it
Wed Mar 24 15:03:16 CET 2010
Hi again,
I solved my problem adding a new resource-path to my module pointing to the
folder that I need.. in this way I do not need copying anything
Br
Valerio
Da: opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org]
Per conto di Valerio Synclab
Inviato: mercoledì 24 marzo 2010 12.16
A: 'The OpenCms mailing list'
Oggetto: [opencms-dev] copy a resource with CmsConfigurationCopyResource
Hi list,
I need to copy a resource from my module to another directory ( for example
/sites/default ).
I thought to use this instruction into the initialize method of the action
class belonging to my module:
CmsConfigurationCopyResource config = new
CmsConfigurationCopyResource(source,target,CmsConfigurationCopyResource.COPY
_AS_NEW);
But nothing happen, the resource is not created and no exception is risen
Any suggestion?
Best regards
Valerio
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20100324/d549bf6b/attachment.htm>
More information about the opencms-dev
mailing list