[opencms-dev] copy a resource with CmsConfigurationCopyResource

Valerio Synclab v.vianello at synclab.it
Wed Mar 24 12:16:26 CET 2010


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/ac41217c/attachment.htm>


More information about the opencms-dev mailing list