-
Notifications
You must be signed in to change notification settings - Fork 758
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #42018 from ShammiL/new-tool-build-integration
Improve tool integration with build implementation
- Loading branch information
Showing
42 changed files
with
595 additions
and
329 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
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
9 changes: 9 additions & 0 deletions
9
cli/ballerina-cli/src/test/resources/test-resources/build-tool-not-found/Ballerina.toml
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 @@ | ||
[package] | ||
org = "foo" | ||
name = "winery" | ||
version = "0.1.0" | ||
|
||
[[tool.grpc]] | ||
id = "generate-grpc-client" | ||
filePath = "delivery_grpc.json" | ||
targetModule = "delivery" |
Empty file.
3 changes: 3 additions & 0 deletions
3
cli/ballerina-cli/src/test/resources/test-resources/build-tool-not-found/main.bal
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,3 @@ | ||
public function main() { | ||
return; | ||
} |
6 changes: 2 additions & 4 deletions
6
cli/ballerina-cli/src/test/resources/test-resources/build-tool-with-diagnostics/main.bal
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 |
---|---|---|
@@ -1,5 +1,3 @@ | ||
import ballerina/io; | ||
|
||
public function main() { | ||
io:println("Hello, World!"); | ||
public function hello() returns string { | ||
return "Hello, World!"; | ||
} |
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
6 changes: 2 additions & 4 deletions
6
...esources/test-resources/build-tool-with-invalid-missing-optional-toml-properties/main.bal
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 |
---|---|---|
@@ -1,5 +1,3 @@ | ||
import ballerina/io; | ||
|
||
public function main() { | ||
io:println("Hello, World!"); | ||
public function hello() returns string { | ||
return "Hello, World!"; | ||
} |
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
6 changes: 2 additions & 4 deletions
6
...rc/test/resources/test-resources/build-tool-with-invalid-missing-toml-properties/main.bal
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 |
---|---|---|
@@ -1,5 +1,3 @@ | ||
import ballerina/io; | ||
|
||
public function main() { | ||
io:println("Hello, World!"); | ||
public function hello() returns string { | ||
return "Hello, World!"; | ||
} |
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
Empty file.
Empty file.
2 changes: 1 addition & 1 deletion
2
...-cli/src/test/resources/test-resources/build-tool-with-recurring-tool-properties/main.bal
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
public function main() { | ||
public function hello() returns string { | ||
return "Hello, World!"; | ||
} |
6 changes: 6 additions & 0 deletions
6
...urces/test-resources/command-outputs/unix/build-bal-project-with-build-tool-not-found.txt
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,6 @@ | ||
|
||
Executing Build Tools | ||
WARNING: Skipping validation of tool options for tool grpc(generate-grpc-client) due to: Schema file not found: grpc-options-schema.json | ||
ERROR [grpc] Build tool 'grpc' not found | ||
Compiling source | ||
foo/winery:0.1.0 |
9 changes: 9 additions & 0 deletions
9
.../test/resources/test-resources/command-outputs/unix/build-bal-project-with-build-tool.txt
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 @@ | ||
|
||
Executing Build Tools | ||
openapi(generate-delivery-client) | ||
|
||
Compiling source | ||
foo/winery:0.1.0 | ||
|
||
Generating executable | ||
target/bin/winery.jar |
8 changes: 7 additions & 1 deletion
8
...li/src/test/resources/test-resources/command-outputs/unix/build-tool-with-diagnostics.txt
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 |
---|---|---|
@@ -1 +1,7 @@ | ||
ERROR [openAPI sample build tool:(1:1,1:1)] The provided filePath does not exist | ||
|
||
Executing Build Tools | ||
openapi(generate-delivery-client) | ||
|
||
ERROR [generate-delivery-client] The provided filePath does not exist | ||
Compiling source | ||
foo/winery:0.1.0 |
Oops, something went wrong.