Accessing editor variables from ant

Having trouble installing <oXygen/>? Got a bug to report? Post it all here.
Posts: 154
Joined: Sat Aug 28, 2010 1:23 am

Accessing editor variables from ant

Post by dcramer » Fri May 11, 2018 6:28 pm

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

Code: Select all

In my Ant file, I can also access Custom Editor Variables using env. E.g.

Code: Select all

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

Code: Select all

<property name="oxygen-install-dir" value="${env.OXY.oxygenInstallDir}"/>
to find the install dir without any extra setup from the user.


Posts: 6514
Joined: Fri Jul 09, 2004 5:18 pm

Re: Accessing editor variables from ant

Post by Radu » Mon May 14, 2018 9:41 am

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.

Radu Coravu
<oXygen/> XML Editor

Post Reply