Accessing editor variables from ant
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 163
- Joined: Sat Aug 28, 2010 1:23 am
Accessing editor variables from ant
Hi there,
I know that I can pass in editor variables from a parameter in my transformation scenario. E.g. I can create a parameter foo and pass in
In my Ant file, I can also access Custom Editor Variables using env. E.g.
Is there a way I can access non-custom editor variables without passing them in or assigning them to a custom editor variable?
I'm imaging being able to do something like to find the install dir without any extra setup from the user.
Thanks,
David
I know that I can pass in editor variables from a parameter in my transformation scenario. E.g. I can create a parameter foo and pass in
Code: Select all
${oxygenInstallDir}
Code: Select all
${env.MY_CUSTOM_EDITOR_VAR}
I'm imaging being able to do something like
Code: Select all
<property name="oxygen-install-dir" value="${env.OXY.oxygenInstallDir}"/>
Thanks,
David
-
- Posts: 9451
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Accessing editor variables from ant
Hi David,
ANT transformations are started as standalone Java processes, so whatever is passed by the Oxygen process either as a parameter or as an environmental variable can be accessed in the child ANT process. Whatever is not passed by the parent Oxygen process cannot be accessed by the child process.
Regards,
Radu
ANT transformations are started as standalone Java processes, so whatever is passed by the Oxygen process either as a parameter or as an environmental variable can be accessed in the child ANT process. Whatever is not passed by the parent Oxygen process cannot be accessed by the child process.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
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