Skip to content

Commit

Permalink
Add tool package
Browse files Browse the repository at this point in the history
  • Loading branch information
aneeshafedo committed Jul 11, 2023
1 parent 6db22d6 commit ed28359
Show file tree
Hide file tree
Showing 9 changed files with 406 additions and 2 deletions.
6 changes: 6 additions & 0 deletions openapi-cli/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,14 @@ dependencies {
}
}

task copyDependencies(type: Copy) {
from configurations.runtimeClasspath
into 'libs'
}

def bDistribution = file("$project.buildDir/extracted-distribution/jballerina-tools-${ballerinaLangVersion}")
task jBallerinaPack {
dependsOn(copyDependencies)
doLast {
configurations.balTools.resolvedConfiguration.resolvedArtifacts.each { artifact ->
copy {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@
* generation.
*/
@CommandLine.Command(
name = "openapi",
name = "test_openapi",
description = "Generate the Ballerina sources for a given OpenAPI definition and vice versa."
)
public class OpenApiCmd implements BLauncherCmd {
private static final String CMD_NAME = "openapi";
private static final String CMD_NAME = "test_openapi";
private PrintStream outStream;
private Path executionPath = Paths.get(System.getProperty("user.dir"));
private Path targetOutputPath;
Expand Down
4 changes: 4 additions & 0 deletions tool-openapi/.devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"image": "ballerina/ballerina-devcontainer:2201.6.0",
"extensions": ["WSO2.ballerina"],
}
3 changes: 3 additions & 0 deletions tool-openapi/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
target
generated
Config.toml
Loading

0 comments on commit ed28359

Please sign in to comment.