Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » [JET2] Ant properties being treated as XPath(Creating an Ant properties template)
[JET2] Ant properties being treated as XPath [message #632867] Thu, 14 October 2010 14:21 Go to next message
No real name is currently offline No real nameFriend
Messages: 2
Registered: October 2010
Junior Member
We are moving a set of templates from DPTK to JET2. One of these templates is for generating an Ant properties file and contains ant variables, e.g. ${dir.home}. These are being parsed as XPath queries, causing the process to fail.

How do I indicate that these statements should not be processed, or is there another approach?
Re: [JET2] Ant properties being treated as XPath [message #632917 is a reply to message #632867] Thu, 14 October 2010 16:21 Go to previous messageGo to next message
Paul Elder is currently offline Paul ElderFriend
Messages: 849
Registered: July 2009
Senior Member
You have two choices:

1) Escape ${ by using this expression:

${ '${' }

I have added spaces so you can see better - you don't need them.
(That is, evaluate the XPath literal string '${' )

2) Turn off embedded expressions in the entire JET transformation:

a) Open plugin.xml in the Plugin Editor
b) Switch to the Extensions tab
c) Expand org.eclipse.jet.transform and select (transform)
d) Set the 'enableEmbeddedExpressions to 'false'

Paul
Re: [JET2] Ant properties being treated as XPath [message #633606 is a reply to message #632917] Mon, 18 October 2010 14:30 Go to previous message
No real name is currently offline No real nameFriend
Messages: 2
Registered: October 2010
Junior Member
Thanks Paul,

I really appreciate your help on that.

Stewart
Previous Topic:[Xpand] problem to launch a workflow from another one
Next Topic:[xpand] Xpand/MWE execution in runtime
Goto Forum:
  


Current Time: Thu Apr 25 00:51:23 GMT 2024

Powered by FUDForum. Page generated in 0.03152 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top