Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » Control-flow Feedback to Ant from Epsilon(Advanced Workflow for Epsilon)
Control-flow Feedback to Ant from Epsilon [message #1837933] Thu, 11 February 2021 02:48 Go to next message
Jörn Guy Süß is currently offline Jörn Guy SüßFriend
Messages: 320
Registered: July 2009
Location: Anstead, Brisbane, Queens...
Senior Member

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 08:44 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 2163
Registered: July 2009
Location: York, UK
Senior Member

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 22:30 Go to previous messageGo to next message
Jörn Guy Süß is currently offline Jörn Guy SüßFriend
Messages: 320
Registered: July 2009
Location: Anstead, Brisbane, Queens...
Senior Member

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 22:37 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 2163
Registered: July 2009
Location: York, UK
Senior Member

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 22:45 Go to previous messageGo to next message
Jörn Guy Süß is currently offline Jörn Guy SüßFriend
Messages: 320
Registered: July 2009
Location: Anstead, Brisbane, Queens...
Senior Member

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 22:50 Go to previous message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 2163
Registered: July 2009
Location: York, UK
Senior Member

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: Wed Apr 24 15:06:11 GMT 2024

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

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

Back to the top