@Override public void init() throws BuildException { // Append N-1 empty lines, to match Gosu line numbers with build.xml. Location loc = getLocation(); if (loc != null) { for (int i = 0; i < getLocation().getLineNumber() - 1; i++) { _expression.append('\n'); } } }
public MessageBean setLocation(final Location location) { final MessageBean ret = new MessageBean(this); ret.srcFile = toURI(location.getFileName()); ret.srcLine = location.getLineNumber(); ret.srcColumn = location.getColumnNumber(); return ret; }
while ( ( line = reader.readLine() ) != null ) if ( reader.getLineNumber() == buildException.getLocation().getLineNumber() ) return "around Ant part ..." + line.trim() + "... @ " + buildException.getLocation().getLineNumber() + ":" + buildException.getLocation().getColumnNumber() + " in " + antFile.getAbsolutePath();
length = node.getLength(); } else { line = location.getLineNumber(); if (line == 0) { AntProjectNode projectNode = getProjectNode();