Merge changes I19e5238f,Iebf10771

* changes:
  ProtoGen: Don't include version in output
  ProtoGen: Don't output anything on success
This commit is contained in:
Patrick Hiesel
2018-02-15 07:35:15 +00:00
committed by Gerrit Code Review
2 changed files with 1 additions and 5 deletions

View File

@@ -58,8 +58,7 @@ public class ProtoGen extends AbstractProgram {
header = new String(buf.array(), ptr, len, UTF_8);
}
String version = com.google.gerrit.common.Version.getVersion();
out.write(header.replace("@@VERSION@@", version));
out.write(header);
jsm.generateProto(out);
out.flush();
}
@@ -69,7 +68,6 @@ public class ProtoGen extends AbstractProgram {
} finally {
lock.unlock();
}
System.out.println("Created " + file.getPath());
return 0;
}
}