Package org.xtext.builddsl.build

Examples of org.xtext.builddsl.build.Task


        }
      };
      final Integer last = IterableExtensions.<Integer>findFirst(_upTo_1, _function_1);
      ILeafNode _get = list.get((first).intValue());
      EObject _semanticElement = _get.getSemanticElement();
      final Task task1 = EcoreUtil2.<Task>getContainerOfType(_semanticElement, Task.class);
      ILeafNode _get_1 = list.get((last).intValue());
      EObject _semanticElement_1 = _get_1.getSemanticElement();
      final Task task2 = EcoreUtil2.<Task>getContainerOfType(_semanticElement_1, Task.class);
      boolean _equals = Objects.equal(task1, task2);
      if (_equals) {
        return task1.getName();
      }
    } else {
      EObject _semanticElement_2 = start.getSemanticElement();
      Task _containerOfType = EcoreUtil2.<Task>getContainerOfType(_semanticElement_2, Task.class);
      return _containerOfType.getName();
    }
    return null;
  }
View Full Code Here


          StringConcatenation _builder = new StringConcatenation();
          _builder.append("The task \'");
          String _name = task.getName();
          _builder.append(_name, "");
          _builder.append("\' cannot depend on itself.");
          Task _head = IterableExtensions.<Task>head(cycle);
          BuildDSLValidator.this.error(_builder.toString(), _head, BuildPackage.Literals.DECLARATION__NAME, BuildDSLValidator.CYCLIC_DEPENDENCY);
        } else {
          StringConcatenation _builder_1 = new StringConcatenation();
          _builder_1.append("There is a cyclic dependency that involves tasks ");
          final Function1<Task, String> _function = new Function1<Task, String>() {
            public String apply(final Task it) {
              return it.getName();
            }
          };
          Iterable<String> _map = IterableExtensions.<Task, String>map(cycle, _function);
          String _join = IterableExtensions.join(_map, ", ");
          _builder_1.append(_join, "");
          Task _head_1 = IterableExtensions.<Task>head(cycle);
          BuildDSLValidator.this.error(_builder_1.toString(), _head_1, BuildPackage.Literals.DECLARATION__NAME, BuildDSLValidator.CYCLIC_DEPENDENCY);
        }
      }
    };
    this.findDependentTasks(task, _function);
View Full Code Here

TOP

Related Classes of org.xtext.builddsl.build.Task

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.