Skip to content

Get rid of direct org.jruby.embed.ScriptingContainer use #11

@dmikurube

Description

@dmikurube

The Embulk core is going to make JRuby optional in next major versions (expected to be v0.10). Then, org.jruby.embed.ScriptingContainer will be no longer available.

// Parse like "table_%Y_%m"(include pattern or not) format using Java is difficult. So use jRuby.
public String generateTableName(String tableName)
{
ScriptingContainer jruby = new ScriptingContainer();
return jruby.runScriptlet("Time.now.strftime('" + tableName + "')").toString();
}

We'll need to consider an alternative against this...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions