This repository has been archived by the owner on Dec 10, 2020. It is now read-only.
forked from pantsbuild/pants
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed errors in how arguments are passed to wire_gen.
Arguments such as 'roots' and 'enum_options' are expected to be comma-delimited when multiple arguments exist, not added by repeated specifications of the --roots or --enum_options flags. Testing Done: Wire_integration tests (including new test for --roots) pass. CI went green here: https://travis-ci.org/pantsbuild/pants/builds/66615227 Bugs closed: 1664 Reviewed at https://rbcommons.com/s/twitter/r/2354/
- Loading branch information
1 parent
37b41b7
commit 29b44b8
Showing
9 changed files
with
101 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Copyright 2015 Pants project contributors (see CONTRIBUTORS.md). | ||
# Licensed under the Apache License, Version 2.0 (see LICENSE). | ||
|
||
jvm_binary(name='roots', | ||
basename='wire-roots-example', | ||
dependencies=[ | ||
'examples/src/wire/org/pantsbuild/example/roots', | ||
], | ||
source='WireRootsExample.java', | ||
main='org.pantsbuild.example.wire.roots.WireRootsExample', | ||
) | ||
|
10 changes: 10 additions & 0 deletions
10
examples/src/java/org/pantsbuild/example/wire/roots/WireRootsExample.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// Copyright 2015 Pants project contributors (see CONTRIBUTORS.md). | ||
// Licensed under the Apache License, Version 2.0 (see LICENSE). | ||
|
||
package org.pantsbuild.example.wire.roots; | ||
|
||
class WireRootsExample { | ||
|
||
public static void main(String[] args) { | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Copyright 2015 Pants project contributors (see CONTRIBUTORS.md). | ||
# Licensed under the Apache License, Version 2.0 (see LICENSE). | ||
|
||
java_wire_library(name='roots', | ||
sources=[ | ||
'foo.proto', | ||
'bar.proto', | ||
'foobar.proto', | ||
], | ||
dependencies=[], | ||
roots = [ | ||
'org.pantsbuild.example.roots.Bar', | ||
'org.pantsbuild.example.roots.Foobar', | ||
'org.pantsbuild.example.roots.Fooboo', | ||
], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// Copyright 2015 Pants project contributors (see CONTRIBUTORS.md). | ||
// Licensed under the Apache License, Version 2.0 (see LICENSE). | ||
|
||
package org.pantsbuild.example.roots; | ||
|
||
message Bar { | ||
optional string param1 = 1; | ||
optional string param2 = 2; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// Copyright 2015 Pants project contributors (see CONTRIBUTORS.md). | ||
// Licensed under the Apache License, Version 2.0 (see LICENSE). | ||
|
||
package org.pantsbuild.example.roots; | ||
|
||
message Foo { | ||
optional string param1 = 1; | ||
optional string param2 = 2; | ||
} |
20 changes: 20 additions & 0 deletions
20
examples/src/wire/org/pantsbuild/example/roots/foobar.proto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// Copyright 2015 Pants project contributors (see CONTRIBUTORS.md). | ||
// Licensed under the Apache License, Version 2.0 (see LICENSE). | ||
|
||
package org.pantsbuild.example.roots; | ||
|
||
message Foobar { | ||
optional string param = 1; | ||
} | ||
|
||
message Barfoo { | ||
optional string param = 1; | ||
} | ||
|
||
message Fooboo { | ||
optional string param = 1; | ||
} | ||
|
||
message Farbar { | ||
required string param = 1; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters