Package com.liferay.maven.plugins.util

Examples of com.liferay.maven.plugins.util.ContextReplace.replace()


    themeContextReplace.addValue("themes-path", null);

    String rootPath = GetterUtil.getString(
      themeElement.elementText("root-path"), "/");

    rootPath = themeContextReplace.replace(rootPath);

    themeContextReplace.addValue("root-path", rootPath);

    theme.setRootPath(rootPath);
View Full Code Here


    String templatesPath = GetterUtil.getString(
      themeElement.elementText("templates-path"),
      rootPath.concat("/templates"));

    templatesPath = themeContextReplace.replace(templatesPath);
    templatesPath = StringUtil.safePath(templatesPath);

    themeContextReplace.addValue("templates-path", templatesPath);

    theme.setTemplatesPath(templatesPath);
View Full Code Here

    theme.setTemplatesPath(templatesPath);

    String cssPath = GetterUtil.getString(
      themeElement.elementText("css-path"), rootPath.concat("/css"));

    cssPath = themeContextReplace.replace(cssPath);
    cssPath = StringUtil.safePath(cssPath);

    themeContextReplace.addValue("css-path", cssPath);

    theme.setCssPath(cssPath);
View Full Code Here

    String imagesPath = GetterUtil.getString(
      themeElement.elementText("images-path"),
      rootPath.concat("/images"));

    imagesPath = themeContextReplace.replace(imagesPath);
    imagesPath = StringUtil.safePath(imagesPath);

    themeContextReplace.addValue("images-path", imagesPath);

    theme.setImagesPath(imagesPath);
View Full Code Here

    String javaScriptPath = GetterUtil.getString(
      themeElement.elementText("javascript-path"),
      rootPath.concat("/js"));

    javaScriptPath = themeContextReplace.replace(javaScriptPath);
    javaScriptPath = StringUtil.safePath(javaScriptPath);

    themeContextReplace.addValue("javascript-path", javaScriptPath);

    theme.setJavaScriptPath(javaScriptPath);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.