opening a file at the command-line
Having trouble installing Oxygen? Got a bug to report? Post it all here.
opening a file at the command-line
I am trying to open Oxygen with an initial file, or open a file within Oxygen if it's already running, at the command-line. I've tried both the oxygen and the oxygen.sh shell scripts with the filename as the first argument, but this does not work. Oxygen opens successfully in either case, but the file is not opened. Perhaps there is an additional argument that I need? I didn't see anything about this in the documentation.
For example, to open foo.xsl, I would like to be able to type, where 'oxygen' is aliased to one of the shell scripts (oxygen or oxygen.sh). I'm running Gentoo Linux, with a 2.4.20 kernel and java 1.4.1.
thanks...
For example, to open foo.xsl, I would like to be able to type
Code: Select all
oxygen foo.xsl
thanks...
Indeed, the script fails to open the file because there is a problem with the working directory.
For example, if I make an alias "oxy" to the "oxygen" script, the editor starts, but searches for the file argument relative to the installation directory.
The workaround is to specify the argument with full path:
# oxy /home/dan/test.xml
We will fix this problem in a next version.
For example, if I make an alias "oxy" to the "oxygen" script, the editor starts, but searches for the file argument relative to the installation directory.
The workaround is to specify the argument with full path:
# oxy /home/dan/test.xml
We will fix this problem in a next version.
Other workaround is to modify the oxygen.sh script like this:
-------------------
#!/bin/sh
ROOT=/home/dan/Oxygen2.0.1
java -Xmx256m -Dcom.oxygenxml.classpath.relativeToOxygen.jar=true -cp $ROOT:$ROOT/lib/oxygen.jar ro.sync.exml.Oxygen $1 $2 $3
-------------------
The ROOT must be set to the installation directory. The java command must be on a single line. It is possible for the editor ask again for the license. You have to browse for it.
-------------------
#!/bin/sh
ROOT=/home/dan/Oxygen2.0.1
java -Xmx256m -Dcom.oxygenxml.classpath.relativeToOxygen.jar=true -cp $ROOT:$ROOT/lib/oxygen.jar ro.sync.exml.Oxygen $1 $2 $3
-------------------
The ROOT must be set to the installation directory. The java command must be on a single line. It is possible for the editor ask again for the license. You have to browse for it.
success -- thanks
Great. This works with just a relative path to the file. Thanks a lotDan wrote:Other workaround is to modify the oxygen.sh script like this:
-------------------
#!/bin/sh
ROOT=/home/dan/Oxygen2.0.1
java -Xmx256m -Dcom.oxygenxml.classpath.relativeToOxygen.jar=true -cp $ROOT:$ROOT/lib/oxygen.jar ro.sync.exml.Oxygen $1 $2 $3
-------------------
The ROOT must be set to the installation directory. The java command must be on a single line. It is possible for the editor ask again for the license. You have to browse for it.
one more issue
After following Dan's second post, Oxygen now opens a file with a relative path to the file, but I discovered another issue.
If Oxygen is already running, and I try to again open a file from the command line, nothing happens. The file isn't opened. So it seems that after you've opened a file, you can't open any more except from within Oxygen using the GUI Hopefully there's a workaround for this, as I am really happy with Oxygen, but I need to be able to open files at the command line when it's already running.
If Oxygen is already running, and I try to again open a file from the command line, nothing happens. The file isn't opened. So it seems that after you've opened a file, you can't open any more except from within Oxygen using the GUI Hopefully there's a workaround for this, as I am really happy with Oxygen, but I need to be able to open files at the command line when it's already running.
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ 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