Hi there,
i've a simple problem with my module version handler.

There are default install tasks in my module bootstrap 
(mgnl-bootstrap.my-module-name) folder, executed on first install - right? 

In my version handler there is also a DeltaBuilder for Version 1.0.1 with one 
bootstrap. This bootstraps changes my initial configuration:

public class MyModVersionHandler extends ThemeVersionHandler {

    public MyModVersionHandler() {

        register(DeltaBuilder.update("1.0.1", "")
              

                .addTask(new BootstrapSingleResource("Bootstrap", "Installs 
Menu configuration",
                        
"/mgnl-bootstrap/my-module/1/0/1/config.modules.standard-templating-kit.config.themes.bla.lala.xml")));

    }

    @Override
    protected List getBasicInstallTasks(InstallContext installContext) {
        final List<Task> installTasks = new ArrayList<Task>();
        // make sure we register the type before doing anything else
        installTasks.add(new RegisterNodeTypeTask("theme-i-d-theme-home"));

        installTasks.add(new RemoveNodeTask("Remove Template", "", 
RepositoryConstants.CONFIG, 
"/modules/standard-templating-kit/config/site/templates/availability/templates/stkHome"));



        installTasks.addAll(super.getBasicInstallTasks(installContext));
        return installTasks;
    }
}

My delta executes(tested with a new node - not a config change) so I think the 
delta is executed before getBasicInstallTasks in an new startup with empty repo?

What Im doing wrong? What i need is 1. init bootstraps 2. update bootstraps - 
executed after init ...


Thank you!!

-- 
Context is everything: 
http://forum.magnolia-cms.com/forum/thread.html?threadId=bb029a96-8f79-459f-9cf7-f36c0abcebfe


----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to