distributing Framework
Oxygen general issues.
-
- Posts: 10
- Joined: Fri Oct 02, 2009 12:24 am
distributing Framework
Post by mveerasamy »
Hi,
In our organisation we want to store the framework file and CSS files in a centralized repository and distribute to the end users when they want to update.
Now when the user update these by invoking a custom action we are downloading files from the server and we can able to load the CSS file using AuthorEditorAccess.refresh().
But the problem is with the framework file. We couldn't able to load the framework file at the run time. Is there any API available to load the framework file?
And the worst part is we cannot even ask the user to restart Oxygen. Because when the user closing the oxygen it will overwrite the framework file if there is any modification. Is there any way to avoid this overwriting?
In our organisation we want to store the framework file and CSS files in a centralized repository and distribute to the end users when they want to update.
Now when the user update these by invoking a custom action we are downloading files from the server and we can able to load the CSS file using AuthorEditorAccess.refresh().
But the problem is with the framework file. We couldn't able to load the framework file at the run time. Is there any API available to load the framework file?
And the worst part is we cannot even ask the user to restart Oxygen. Because when the user closing the oxygen it will overwrite the framework file if there is any modification. Is there any way to avoid this overwriting?
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Re: distributing Framework
Post by sorin_ristache »
Hello,
In the current version (11.0) you cannot reload the framework file at runtime. We will consider adding this feature in a future version of Oxygen Author.
We will consider also saving the framework file on closing only if the framework was modified in Author. You can avoid overwriting the framework file by setting the file as read-only. Oxygen Author writes the framework file on closing only if it is not read-only. That means after the framework file is modified by updating from repository you set the framework file as read-only and you can restart Author without overwriting the file on closing.
Regards,
Sorin
In the current version (11.0) you cannot reload the framework file at runtime. We will consider adding this feature in a future version of Oxygen Author.
We will consider also saving the framework file on closing only if the framework was modified in Author. You can avoid overwriting the framework file by setting the file as read-only. Oxygen Author writes the framework file on closing only if it is not read-only. That means after the framework file is modified by updating from repository you set the framework file as read-only and you can restart Author without overwriting the file on closing.
Regards,
Sorin
-
- Posts: 9472
- Joined: Fri Jul 09, 2004 5:18 pm
Re: distributing Framework
Hi,
The other issue (API for reloading frameworks) will be discussed for a future version.
Regards,
Radu
We'll try to fix this issue (not overwriting externally modified framework files) in time for Oxygen 11.1 (available in a couple of weeks).mveerasamy wrote:Hi,
And the worst part is we cannot even ask the user to restart Oxygen. Because when the user closing the oxygen it will overwrite the framework file if there is any modification. Is there any way to avoid this overwriting?
The other issue (API for reloading frameworks) will be discussed for a future version.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 10
- Joined: Fri Oct 02, 2009 12:24 am
Re: distributing Framework
Post by mveerasamy »
Sorry this is not working. I tried with javaYou can avoid overwriting the framework file by setting the file as read-only. Oxygen Author writes the framework file on closing only if it is not read-only
File.setReadOnly();
and File.setWritable(false, false);
Even i manually checked it before closing oxygen. The framework file set to read-only. And when i tried to modify with other editors like notepad and editplus those editors failed to save and warn me that the file was a read-only file.
But the same read-only file was modified by Oxygen while closing (which completely wipedout all my changes).
Please let me know if there is any other way to stop Oxygen to modify this. This is affecting our workflow a lot.
Thanks in advance,
Muthu
-
- Posts: 9472
- Joined: Fri Jul 09, 2004 5:18 pm
Re: distributing Framework
Dear Muthu,
Indeed the workaround does not work because Oxygen first saves the framework to a temporary file in the same directory and then renames the temporary file to the ".framework" final file.
You can try to create a file as a sibling of the "name.framework" file called "name.framework.tmp" and make it read-only. Oxygen will fail to write to it on exit so the framework will not get re-written.
As I said, you will no longer have this problem in Oxygen 11.1 (available in a couple of weeks). If you contact us on the support address we can try to provide you with a beta test link for Oxygen 11.1.
docbook4.framework.tmp
Regards,
Radu
Indeed the workaround does not work because Oxygen first saves the framework to a temporary file in the same directory and then renames the temporary file to the ".framework" final file.
You can try to create a file as a sibling of the "name.framework" file called "name.framework.tmp" and make it read-only. Oxygen will fail to write to it on exit so the framework will not get re-written.
As I said, you will no longer have this problem in Oxygen 11.1 (available in a couple of weeks). If you contact us on the support address we can try to provide you with a beta test link for Oxygen 11.1.
docbook4.framework.tmp
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 10
- Joined: Fri Oct 02, 2009 12:24 am
Re: distributing Framework
Post by mveerasamy »
Thanks for the quick help.
Hmm... i think its better to wait for 11.1.
-Muthu
EBSCO
Hmm... i think its better to wait for 11.1.
-Muthu
EBSCO
-
- Posts: 10
- Joined: Fri Oct 02, 2009 12:24 am
Re: distributing Framework
Post by mveerasamy »
Thanks for the update in 11.1. My requirement is working now.
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service