[opencms-dev] and yet another import/export question

Ruben Malchow ruben at khm.de
Wed Aug 9 20:09:14 CEST 2006



hi christian,

turns out the problem was that i removed the trailing slash.

	String[] resourcesToExport = new String[] {
		"/sites/default"	
	};

doesn't work.

	String[] resourcesToExport = new String[] {
		"/sites/default/"	
	};

however does.

.rm


> Have you checked if the current site root is set as expected?
> As you may know, opencms will always add the site root in front of the paths you specify.
> 
> try to do something like
> 
> String myPath = co.getRequestContext.removeSiteRoot( "/sites/default/" );
> 
> String[] resourcesToExport = new String[] { 
>   myPath
> };



More information about the opencms-dev mailing list