ProtoGen: Don't include version in output
Google is the only user of this, and we no longer need this file to change every time we import Gerrit. Change-Id: I19e5238f236ec47c9893b74780cfe9768a1b5d78
This commit is contained in:
@@ -58,8 +58,7 @@ public class ProtoGen extends AbstractProgram {
|
|||||||
header = new String(buf.array(), ptr, len, UTF_8);
|
header = new String(buf.array(), ptr, len, UTF_8);
|
||||||
}
|
}
|
||||||
|
|
||||||
String version = com.google.gerrit.common.Version.getVersion();
|
out.write(header);
|
||||||
out.write(header.replace("@@VERSION@@", version));
|
|
||||||
jsm.generateProto(out);
|
jsm.generateProto(out);
|
||||||
out.flush();
|
out.flush();
|
||||||
}
|
}
|
||||||
|
@@ -11,8 +11,6 @@
|
|||||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
//
|
|
||||||
// Gerrit Code Review (version @@VERSION@@)
|
|
||||||
|
|
||||||
syntax = "proto2";
|
syntax = "proto2";
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user