eclipse / epsilon

Epsilon is a family of Java-based scripting languages for automating common model-based software engineering tasks, such as code generation, model-to-model transformation and model validation, that work out of the box with EMF (including Xtext and Sirius), UML (including Cameo/MagicDraw), Simulink, XML and other types of models.
https://eclipse.org/epsilon
Eclipse Public License 2.0
55 stars 11 forks source link

Bug: workflow ForTask will execute children one time even if there are no matching files #16

Closed Arkaedan closed 1 year ago

Arkaedan commented 1 year ago

Bug

The epsilon.for Ant task will execute once with the it property set to empty string when the fileset has no matching files.

Desired behaviour

The epsilon.for Ant task should not execute if the fileset has no matching files

Cause

If the fileset has no matching files, the task's getFiles() method returns a string array with one element, an empty string, instead of return an empty array

kolovos commented 1 year ago

Thanks for taking the time to report this issue and submit a PR! Fixed in https://github.com/eclipse/epsilon/commit/68f9570fd9a400e54ba6aa98e6fbe6392be01e40.