Page 1 of 1

Copying additional resources from a relative folder path

Posted: Thu Oct 06, 2022 10:37 pm
by almeim
Hello,

I want to copy additional resources to the output root directory on webhelp.

https://www.oxygenxml.com/doc/versions/ ... Cdirectory From this page, I understand that I can use the "webhelp.custom.resources" parameter to achieve this. However, this only works when the folder I want to copy is located in the directory where the opt file is located. I want to copy it from the directory where the bookmap is located.

How would I define that pathway? I tried using an absolute path but that didn't work.

Re: Copying additional resources from a relative folder path

Posted: Mon Oct 10, 2022 1:01 pm
by ionela
Hi,

You can copy additional resources to the output directory using the 'webhelp.custom.resources' parameter no matter where the resources directory is located (using the parameter there is no restriction to have the resources location to the publishing template).
This procedure is described in our user manual (second link from the page you've indicated) and you need to use absolute path for the directory that contains the files:
Copying Additional Resources to the Output Directory using a Transformation Parameter


We have tested this procedure again and all files from the directory are copied to the root of the WebHelp output directory (not also the folder itself).

I hope this helps.

Regards,
Ionela

Re: Copying additional resources from a relative folder path

Posted: Tue Oct 11, 2022 10:21 pm
by almeim
Thank you for the help! However, I wanted to know if there's a way to set a relative pathway instead of an absolute pathway? I want to set the pathway to a folder that is ALWAYS located where the bookmap is located. How would I do that?

Re: Copying additional resources from a relative folder path

Posted: Mon Oct 31, 2022 9:18 pm
by almeim
Hello, I just wanted to follow up on this?

Re: Copying additional resources from a relative folder path

Posted: Tue Nov 01, 2022 6:42 pm
by ionela
Hi,

You can use relative path only if you copy the resources using a publishing template (the first step from the above procedure)
If you use the transformation parameter, you cannot use relative path, only absolut path.

I have added your feedback as an improvement request to our issue tracking tool to be further analyzed by our development team. They we'll analyze to determine if the current procedure can be improved in a future version of Oxygen XML.

Regards,
Ionela