Thursday 12 February 2015

PrimeFaces theme converter

I've created PrimeFaces theme converter library as an aik-theme-converter.jar.

Dependencies:

- org.apache.commons.io.FileUtils;
- org.apache.log4j.Logger;

Usage. Create custom theme on JQuery web page. Download theme to local folder, for instance: c:\test. Create ThemeConverter object and call convert(...) method.  This method creates PrimeFaces theme jar in given folder.
 ThemeConverter converter = new ThemeConverter();
  
  try
  {
   converter.convert("c:\test\jquery-ui-1.11.2.custom.zip", "theme_name", "c:\test");
  }
  catch (IOException e)
  {
   logger.error(e.getMessage());
  }
theme_name.jar will be created in test directory.