Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the code to reflect the new language plugin changes #339

Merged
merged 1 commit into from
Mar 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ mySqlDriverVersion=8.0.29
mssqlDriverVersion=11.2.3.jre17
postgresqlDriverVersion=42.6.0

ballerinaLangVersion=2201.9.0-20240229-103900-a949e6d4
ballerinaLangVersion=2201.9.0-20240319-094400-0453ecf0

# Level 01
stdlibIoVersion=1.6.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import io.ballerina.persist.nodegenerator.syntax.utils.TomlSyntaxUtils;
import io.ballerina.persist.utils.BalProjectUtils;
import io.ballerina.projects.buildtools.CodeGeneratorTool;
import io.ballerina.projects.buildtools.ToolConfig;
import io.ballerina.projects.buildtools.ToolContext;
import io.ballerina.projects.util.ProjectUtils;

Expand All @@ -45,6 +46,7 @@
import static io.ballerina.persist.PersistToolsConstants.TARGET_MODULE;
import static io.ballerina.projects.util.ProjectConstants.BALLERINA_TOML;

@ToolConfig(name = "persist")
public class PersistCodeGeneratorTool implements CodeGeneratorTool {

private static final PrintStream errStream = System.err;
Expand Down Expand Up @@ -155,11 +157,6 @@ public static String readFileToString(Path filePath) throws IOException {
return new String(fileContent, StandardCharsets.UTF_8);
}

@Override
public String toolName() {
return "persist";
}

private void validateDatastore(String datastore) throws BalException {
if (!PersistToolsConstants.SUPPORTED_DB_PROVIDERS.contains(datastore)) {
throw new BalException(String.format("the persist layer supports one of data stores: %s" +
Expand Down
Loading