Preparing for a release
- Update your local version (svn up)
- Edit editor\ modifications/src/client/scripts/Plugins/signavio.js : replace the line with the current version (eg. Version 5.0-alpha2) to the current version. Currently, that line is line 62.
- Edit explorer/src/javascript/core/repository.js : replace the line with the current version (eg. Version 5.0-alpha2) to the current version. Currently, that line is line 217.
- build the war: (on the root): ant build-activiti-war. The war file will be stored in the /dist folder
- rename the war to the current version: eg. from activiti-modeler.war to activiti-modeler-5.0.alpha3.war
Testing the war:
- Checkout the to-be-released (tag) version
- Edit distro/src/setup/build.xml : change the property 'activiti.modeler.download.url' to the war on your local system. Example:
- Comment the 'skip.deploy.activiti.modeler=true' property in the $user.home/.activiti/build.properties
- Build a new activiti distro (ant build.clean.distro) and run the demo setup.
- Verify if the modeler is correctly working.
Rebranding
Checkout
We'll be using the bpmn20 branch:
svn checkout https://signavio-oryx-initiative.googlecode.com/svn/branches/bpmn20 signavio-oryx-initiative --username joram.barrez
Build
in build.xml at the root of the project:
- add the following target:
Url changes
Edit the file platform/WebContent/WEB-INF/web.xml and change the following parameters to the following values:
Edit the file \editor modifications\src\client\scripts\config.js line 37:
ORYX.CONFIG.WEB_URL = "/activiti-modeler/explorer";
ORYX.CONFIG.WAR_PATH = "/activiti-modeler";
Edit the file \explorer\src\javascript\config.js line 46
Signavio.Config.EXPLORER_PATH = '/activiti-modeler/explorer';
Signavio.Config.EDITOR_PATH = '/activiti-modeler/editor';
Signavio.Config.BACKEND_PATH = '/activiti-modeler/p';
Signavio.Config.LIBS_PATH = '/activiti-modeler/libs';
Edit the file editor\ modifications/src/client/css/theme_norm_signavio.css
replace all urls with signavio to 'activiti-modeler'
Images
- replace explorer/src/img/signavio/smoky/logo.png with Activiti splash logo
- replace explorer/src/img/signavio/smoky/logo2.png with Activiti header logo
- edit explorer/src/css/xtheme-specific.css to the dimension of the Activiti header logo
#signavio_repository_header #signavio_repository_logo, #oryx_editor_header a {
background:transparent url(../img/signavio/smoky/logo2.png) no-repeat scroll 0 0 !important;
height:32px !important;
left:10px !important;
margin-top:4px !important;
position:absolute;
top:0 !important;
width:350px !important;
z-index:1000;
}
Delete in this file also in mask-logo the border-bottom and change
.mask-logo div img {
padding-bottom:0px;
visibility: hidden;
}
- Edit editor\ modifications/src/client/scripts/Plugins/signavio.js
- "<span class='mask-title' style='"stitle"'>Editor</span>"+
"<span class='mask-version' style='"sversion"'>Version "version"</span>"+ - Search in that file for 'mask-logo' to get to the right line
- Switch those to Activiti-Modeler and the right version
- Edit explorer/src/javascript/core/repository.js
- Same changes as the previous one, now replacing 'explorer'
- Search in that file for 'mask-logo' to get to the right line
- Replace explorer/src/img/signavio/signavio_logo.png with the Activiti splash logo
- Edit editor/src/client/css/theme_norm_signavio.css to match the settings of xtheme-specific.css (it's the same logo):
#oryx_editor_header a {
background:transparent url(/activiti-modeler/explorer/src/img/signavio/smoky/logo2.png) no-repeat scroll 0 0 !important;
height:32px !important;
left:10px !important;
margin-top:4px !important;
position:absolute;
top:0 !important;
width:350px !important;
z-index:1000;
}
- Replace explorer/src/img/signavio/header_background2.png with the image that acts as background for the header
- This will change the editor background
- Replace explorer/src/img/signavio/smoky/header_background2.png with the image that acts as background for the header
- This will change the explorer background
Exception during saving of bpmn 2.0 processes:
changed in build.xml
to
Build the war
ant build-activiti-war
