Skip to main content



      Home
Home » Modeling » Epsilon » Control-flow Feedback to Ant from Epsilon(Advanced Workflow for Epsilon)
Control-flow Feedback to Ant from Epsilon [message #1837933] Wed, 10 February 2021 21:48 Go to next message
Eclipse UserFriend
We would like to know what the idiomatic way is to pass data to Ant from Epsilon Tasks. In our case, we require the data for flow control.

We have a case in which we would like to make use of Ant flow-control using the if contribtask or the if and unless facility. For this, we would need to provide feedback from EOL tasks that is visible to ant in the form of properties or ant-level references.

We have attempted to use the export nested elements functionality, but it seems the project referred to in the documentation is not the ant project.

If we attempt the following:

<epsilon.eol src="DetermineControl.eol">
    <uses ref="ifThisInternal" as="thenThisInAnt"/>
</epsilon.eol>
<echo>${toString:thenThisInAnt}</echo>


This does not render output.

Currently we are working around using Java System properties as a byway to communicate, but this seems brittle and obscure.

Could you please let us know what you would recommend, as this is impeding our progress.
Re: Control-flow Feedback to Ant from Epsilon [message #1837942 is a reply to message #1837933] Thu, 11 February 2021 03:44 Go to previous messageGo to next message
Eclipse UserFriend
Hi Joern,

You can use the "ant" attribute of export nested elements for this, as shown below.

<project default="main">
  <target name="main">
    <epsilon.eol>
      var x = 1;
      <exports ref="x" ant="true"/>
    </epsilon.eol>
    <echo>${x}</echo> <!-- Prints  1 -->
  </target>	
</project>


Thanks,
Dimitris
Re: Control-flow Feedback to Ant from Epsilon [message #1837978 is a reply to message #1837942] Thu, 11 February 2021 17:30 Go to previous messageGo to next message
Eclipse UserFriend
Thanks! That is excellent is that part of the documentation?
Re: Control-flow Feedback to Ant from Epsilon [message #1837979 is a reply to message #1837978] Thu, 11 February 2021 17:37 Go to previous messageGo to next message
Eclipse UserFriend
It is, since this morning :)
Re: Control-flow Feedback to Ant from Epsilon [message #1837980 is a reply to message #1837979] Thu, 11 February 2021 17:45 Go to previous messageGo to next message
Eclipse UserFriend
Just relaying message from my research dev here for general consumption at your end: "You guys are awesome. What a great turn-around!"
Re: Control-flow Feedback to Ant from Epsilon [message #1837981 is a reply to message #1837980] Thu, 11 February 2021 17:50 Go to previous message
Eclipse UserFriend
Thanks a lot for sharing this feedback - it's much appreciated!
Previous Topic:Validating Excel using Epsilon Java API
Next Topic:EOL-native model instance creation
Goto Forum:
  


Current Time: Thu Nov 06 04:41:03 EST 2025

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

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

Back to the top