Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Resolve relative path in custom component


Level 1

Hi all,

User have to choose xdp file to process in my component. I'm using property-editor

com.adobe.idp.dsc.propertyeditor.system.ApplicationURLPropertyEditorComponent on input parameter. The problem is that this editor return relative path inside application (e.g.:"Resources/xdp1.xdp") and when I'm trying to read documentwith following code

<code>xdpDocument = repositoryClient.readResourceContent(xdpPath);) </code> using path specified I get error - invalid path. However specifing absolute path  with hard-coded application name (e.g.:"/Applications/MyApplication/1.0/Resources/xdp1.xdp") works without any exceptions. As you understand I can't hard-code application name, because it's specified by user. So, I'll be glad to hear any suggestions how to resolve relative path to absolute or how to obtain current application name and version?

0 Replies