Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » Passing Parameters into ETL from Ant
Passing Parameters into ETL from Ant [message #588231] Mon, 12 April 2010 08:51
Eclipse UserFriend
Originally posted by: c.k.holmes.lboro.ac.uk

Hi,
I can pass model references from Ant into ETL via:
<epsilon.etl src="${EtlFile}">
<model ref="${SourceName}" as="Source"/>
<model ref="${TargetName}" as="Target"/>
</epsilon.etl>

What's the syntax required to allow me to pass in variables (constants
as far as ETL is concerned) from Ant?

e.g. I could enable/disable logging from ETL via a Boolean declared in Ant:

in Ant:
<property name="LoggingEnabled" value="true"/>
<epsilon.etl src="${EtlFile}">
<model ref="${SourceName}" as="Source"/>
<model ref="${TargetName}" as="Target"/>
<!-- pass in property LoggingEnabled -->
</epsilon.etl>


in ETL:
rule Blah
transform sourceThing : Source!Thing
to targetThing : Target!Thing {
if (LoggingEnabled) {
'rule: Blah invoked'.println();
}
}

How do I declare 'LoggingEnabled' in Ant? How do I pass 'LoggingEnabled'
into to ETL? And how do I access 'LoggingEnabled' from within ETL?

Regards
Chris
Previous Topic:Accessing Enum Literals from ETL
Next Topic:Problem resolving object slots from ECL
Goto Forum:
  


Current Time: Tue Apr 23 06:52:33 GMT 2024

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

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

Back to the top