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

foo.stg that imports bar.stg, both from jar, doesn't work from top level dir. #124

Closed
parrt opened this issue Nov 23, 2015 · 0 comments
Closed
Labels
Milestone

Comments

@parrt
Copy link
Member

parrt commented Nov 23, 2015

This method strips foo.stg but then looks up parent as jar:file:/.../my.jar!.

    @Override
    public URL getRootDirURL() {
        //System.out.println("url of "+fileName+" is "+url.toString());
        String parent = Misc.stripLastPathElement(url.toString());
        try {
            return new URL(parent);
        }
        catch (MalformedURLException mue) {
            errMgr.runTimeError(null, null, ErrorType.INVALID_TEMPLATE_NAME,
                                mue, parent);
        }
        return null;
    }
@parrt parrt added the type:bug label Nov 23, 2015
parrt added a commit to parrt/stringtemplate4 that referenced this issue Dec 3, 2015
@parrt parrt changed the title foo.stg that imports bar.stg, both from jar, doesn't work. foo.stg that imports bar.stg, both from jar, doesn't work from top level dir. Dec 4, 2015
@parrt parrt added this to the 4.0.9 milestone Dec 4, 2015
@parrt parrt closed this as completed in 26d02fd Dec 4, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant