Package de.hunsicker.jalopy.storage

Examples of de.hunsicker.jalopy.storage.Environment


        if (jalopySettings == null) {
            jalopySettings = new HashMap<String, Object>();
        }

        Environment env = Environment.getInstance();

        // Author

        author = GetterUtil.getString(
                (String)jalopySettings.get("author"), author);

        env.set("author", author);

        // File name

        env.set("fileName", file.getName());

        Convention convention = Convention.getInstance();

        String classMask = "/**\n * @author $author$\n*/";

        convention.put(
                ConventionKeys.COMMENT_JAVADOC_TEMPLATE_CLASS,
                env.interpolate(classMask));

        convention.put(
                ConventionKeys.COMMENT_JAVADOC_TEMPLATE_INTERFACE,
                env.interpolate(classMask));

        jalopy.format();

        String newContent = sb.toString();

View Full Code Here

TOP

Related Classes of de.hunsicker.jalopy.storage.Environment

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.