Version 4

    Imagine you just have created the theme of your dreams...

     

    But how to make it default for your nukes installation?

     

    Have a look into the jboss-service.xml file which can be found under

     

    nukes/src/resources/nukes-sar/META-INF/jboss-service.xml

     

    in the section configuring the core module marked by the lines

     

    <mbean code='org.jboss.nukes.core.modules.core.CoreModule' ...

     

    you'll find the definition of the default-theme:

     

    <attribute name='DefaultTheme'>imagic</attribute>

     

    Here you just place the name of your theme (the one which you have given it in the jboss-service.xml of your theme).

     

    But wait...

     

    You've done that and it is still not showing?

     

    There is a mechanism in nukes called JDBCPersistenceManager which stores the attributes of services to the database. Unfortunately at the time of this writing, the JDBCPersistenceManager is overwriting the values of the jboss-service.xml.

    The place where these values are found is the table 'nuke_services_attributes'. If you care, you can change the line with pn_sid='org.jboss.nukes.core.modules.core.CoreModule/core' and pn_aid='DefaultTheme'. If you don't, just delete the row or all the rows. They are recreated when you deploy your module next time. But take care if you've used nukes for some time and configured some values that way, if you clear the table you may loose your editing.