Generated tomcat folder names
Hi,
In order to be able to 'automatically' generate tomcat configuration, I'd like to know how the Tomcat servers folders name are generated. I already know they follow the pattern:
tomcat_[name of Tomcat server configuration]_[some hash]
What I don't know is how the hash is generated? What algorithm is used? What is used to create the hash, is this the name of the module for example?
Thanks for your help,
SaM
请先登录再写评论。
Hello sleberrig,
project.getLocationHash()
Hi Nikolay,
thank for your. Unfortunately I forgot to mention that I am not running inside of IDEA.
By the way I couldn't find that in the API at http://www.jetbrains.com/idea/openapi/5.0/, is there another API somewhere for 6.0? I couldn't find it...
Thanks,
SaM
Hello sleberrig,
In that case use Integer.toHexString(iprFilePath.hashCode()).
Method Project.getLocationHash() is available only in Selena EAP builds.
Thanks Nikolay.