add-on frameworks location
Posted: Thu Aug 29, 2013 2:47 am
Hi,
I am deploying a framework as an add on to one of our web servers so that our clients can receive updates when we deploy new versions of the framework. This is a nice feature and works well. However, I am trying to resolve a reference to a file found in the frameworks directory (the schema) and having a hard time getting there.
The framework is deployed in the %APPDATA% directory (users.{username}.AppData.Roaming.etc) by default and all the editor variables in my framework seem to expand correctly (${frameworks}, etc). The problem occurs when I try to reference files in my ${frameworks} directory using the following code from an implementation of AuthorOperation:
The value of expandedVar is always the default value set for frameworks directory (ex: C:\ProgramFiles\OxygenAuthor\frameworks) instead of the frameworks directory my add-on is using (in the %APPDATA% directory).
Is there a way to access these files better?
I am deploying a framework as an add on to one of our web servers so that our clients can receive updates when we deploy new versions of the framework. This is a nice feature and works well. However, I am trying to resolve a reference to a file found in the frameworks directory (the schema) and having a hard time getting there.
The framework is deployed in the %APPDATA% directory (users.{username}.AppData.Roaming.etc) by default and all the editor variables in my framework seem to expand correctly (${frameworks}, etc). The problem occurs when I try to reference files in my ${frameworks} directory using the following code from an implementation of AuthorOperation:
Code: Select all
String frameworksDir = EditorVariables.expandEditorVariables("${frameworks}", aa.getDocumentController().getAuthorDocumentNode().getSystemID());
Is there a way to access these files better?