@Override
  public String getEcoreModelFolder() {
    boolean _startsWith = this.ecoreModel.getPath().startsWith(this.getRoot().getPath());
    if (_startsWith) {
      final String relativePath = this.ecoreModel.getPath().substring(this.getRoot().getPath().length()).replace("\\", "/");
      return CharMatcher.is('/').trimFrom(relativePath);
    }
    StringConcatenation _builder = new StringConcatenation();
    _builder.append("Could not derive the Ecore model folder from the project configuration. ");
    _builder.newLine();
    _builder.append("Please make sure that \'root\' is a prefix of \'ecoreModel\'.");
    _builder.newLine();
    _builder.append("was (root=\'");
    String _path = this.getRoot().getPath();
    _builder.append(_path);
    _builder.append("\', ecoreModel=\'");
    String _path_1 = this.ecoreModel.getPath();
    _builder.append(_path_1);
    _builder.append("\')");
    _builder.newLineIfNotEmpty();
    _builder.newLine();
    throw new RuntimeException(_builder.toString());
  }
@ Override public String getEcoreModelFolder ( ) { boolean _startsWith = this . ecoreModel . getPath ( ) . startsWith ( this . getRoot ( ) . getPath ( ) ) ; if ( _startsWith ) { final String relativePath = this . ecoreModel . getPath ( ) . substring ( this . getRoot ( ) . getPath ( ) . length ( ) ) . replace ( "\\" , "/" ) ; return CharMatcher . is ( '/' ) . trimFrom ( relativePath ) ; } StringConcatenation _builder = new StringConcatenation ( ) ; _builder . append ( "Could not derive the Ecore model folder from the project configuration. " ) ; _builder . newLine ( ) ; _builder . append ( "Please make sure that \'root\' is a prefix of \'ecoreModel\'." ) ; _builder . newLine ( ) ; _builder . append ( "was (root=\'" ) ; String _path = this . getRoot ( ) . getPath ( ) ; _builder . append ( _path ) ; _builder . append ( "\', ecoreModel=\'" ) ; String _path_1 = this . ecoreModel . getPath ( ) ; _builder . append ( _path_1 ) ; _builder . append ( "\')" ) ; _builder . newLineIfNotEmpty ( ) ; _builder . newLine ( ) ; throw new RuntimeException ( _builder . toString ( ) ) ; }
Returns the root-relative path of the folder where the generated .ecore and .genmodel can be found.
The path is delimited by '/', but does not begin or end with a separator.