My understanding is, it will deploy when the system senses if there is any change in the bytes of file that has the deployment resources., so technically if you make a change to one of the bpmn file in the resources directory, it will either increase or decrease the file size, which will be detected by the container and do a new deployment., Would be curious to know what you find.,
<code>
protected boolean deploymentsDiffer(DeploymentEntity deployment, DeploymentEntity saved) {
if(deployment.getResources() == null || saved.getResources() == null) {
return true;
}
Map<String, ResourceEntity> resources = deployment.getResources();
Map<String, ResourceEntity> savedResources = saved.getResources();
for (String resourceName: resources.keySet()) {
ResourceEntity savedResource = savedResources.get(resourceName);
if(savedResource == null) return true;
if(!savedResource.isGenerated()) {
ResourceEntity resource = resources.get(resourceName);
byte[] bytes = resource.getBytes();
byte[] savedBytes = savedResource.getBytes();
if (!Arrays.equals(bytes, savedBytes)) {
return true;
}
}
}
return false;
}
</code>