Package org.apache.jetspeed.serializer

Examples of org.apache.jetspeed.serializer.JetspeedSerializerApplication


    }
   
    public void execute(Log log) throws MojoExecutionException
    {
       
        JetspeedSerializerApplication app = null;
        try
        {
            Class dfClass = Class.forName(SERIALIZER_APPLICATION_CLASS_NAME, true, Thread.currentThread().getContextClassLoader());
            app = (JetspeedSerializerApplication) dfClass.newInstance();
        }
        catch (Exception e)
        {
            throw new MojoExecutionException("Cannot find or load JetspeedSerializerApplication class "+ SERIALIZER_APPLICATION_CLASS_NAME, e);
        }
       
        ToolsLogger logger = new MavenToolsLogger(log);
       
        Properties props = null;
        if (initProperties != null)
        {
            props = new Properties();
            // working around an odd Maven on MacOS issue which stored empty mapped properties actually as null values,
            // which isn't allowed for properties
            Iterator iter = initProperties.entrySet().iterator();
            while (iter.hasNext())
            {
                Map.Entry entry = (Map.Entry)iter.next();
                if (entry.getValue() == null)
                {
                    entry.setValue("");
                }
            }
            props.putAll(initProperties);
        }
       
        try
        {
            if (files != null && files.length > 0)
            {
                app.importFiles(logger, applicationRootPath, categories, filterPropertiesFileName, props, files);
            }
        }
        catch (SerializerException se)
        {
            throw new MojoExecutionException("Serializer error: ",se);
View Full Code Here

TOP

Related Classes of org.apache.jetspeed.serializer.JetspeedSerializerApplication

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.