|
I agree it will be a bit of a hack and this enhancement with a 'basedir' attribute will be best.
But, it does not resolve my problem, because the directory path name is dynamic and i know it only at execution via servletContext.getRealPath("WEB-INF/config/workflows.xml");. So, i create a protected method for getting the base dir which i could redefine in the inherited class for setting my base dir. Beside this, i respect your idea, and now a basedir attribute could be used for file type. If the location is absolute, the base dir will not be used. If the locaction is relative, it will be appended to the base dir. And finally, if the base dir is not absolute, it will be appended to the current working directory. The behavior is the same if no basedir attribute is defined. By the way, i also extract the search of the workflows.xml in a protected method in order to be more flexible, like in DefaultConfiguration. Thanks for the patch and sorry for the delay!
|
|||||||||||||||||||||||||||||||||||||||||||||
I'll try and implement this soon. Alternatively if you do it then please do submit a patch and I'll commit it. Thanks!