Package org.jvnet.sorcerer

Examples of org.jvnet.sorcerer.FrameSetGenerator


            a.setTabWidth(tabWidth);
            ParsedSourceSet pss = a.analyze(new DiagnosticPrinter());
            addDependencies(pss.getDependencies());

            FrameSetGenerator fsg = new FrameSetGenerator(pss);
            if(windowTitle!=null)
                fsg.setTitle(windowTitle);
            fsg.generateAll(destDir);
        } catch (IOException e) {
            throw new BuildException(e);
        }
    }
View Full Code Here


                a.setTabWidth(tabWidth);
                ParsedSourceSet pss = a.analyze(new Listener(getLog()));
                addDependencies(pss.getDependencies());

                // TODO: support i18n and use locale for HTML generation
                FrameSetGenerator fsg = new FrameSetGenerator(pss);
                fsg.setTitle(windowTitle);
                fsg.generateAll(new File(getDestinationDirectory()));
            } catch (IOException e) {
                throw new MavenReportException("Error while generating the HTML source code of the projet.", e);
            } catch (DependencyResolutionRequiredException e) {
                throw new MavenReportException("Failed to resolve dependencies",e);
            }
View Full Code Here

    public Sorcerer(final ParsedSourceSet pss) throws IOException {
        this(pss,new Date().getTime(),0);
    }

    public Sorcerer(final ParsedSourceSet pss, long timestamp, long expiration) throws IOException {
        this.fsg = new FrameSetGenerator(pss);
        this.timestamp = timestamp;
        this.expiration = expiration;

        for (final CompilationUnitTree cu : pss.getCompilationUnits()) {
            generators.put(new AstGenerator(pss,cu).getRelativePath(),
View Full Code Here

TOP

Related Classes of org.jvnet.sorcerer.FrameSetGenerator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.