![JAR search and dependency download from the Maven repository](/logo.png)
net.sourceforge.openutils.mgnlmessages.setup.MessagesModuleVersionHandler Maven / Gradle / Ivy
/**
*
* Messages Module for Magnolia CMS (http://www.openmindlab.com/lab/products/messages.html)
* Copyright(C) 2008-2013, Openmind S.r.l. http://www.openmindonline.it
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
package net.sourceforge.openutils.mgnlmessages.setup;
import info.magnolia.module.InstallContext;
import info.magnolia.module.delta.Task;
import info.magnolia.repository.RepositoryConstants;
import it.openutils.mgnltasks.MoveSubnodesAndDeleteTask;
import it.openutils.mgnltasks.SimpleModuleVersionHandler;
import java.util.ArrayList;
import java.util.List;
/**
* @author manuel
* @version $Id
*/
public class MessagesModuleVersionHandler extends SimpleModuleVersionHandler
{
/**
* {@inheritDoc}
*/
@Override
protected List getStartupTasks(InstallContext installContext)
{
List tasks = new ArrayList();
tasks
.add(new MoveSubnodesAndDeleteTask(
RepositoryConstants.CONFIG,
"/modules/messages/basenames",
"/modules/messages/config/basenames",
"Basenames configuration has been migrated from /modules/messages/basenames to /modules/messages/config/basenames. Please check your configuration"));
return tasks;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy