简体   繁体   中英

Determine Websphere version dynamically during build time

I am working on a product which needs to be supported by different version of web-sphere(7.X,8.X and 9.X). I have to perform different build tasks(like copying different properties) based on WebSphere version. How can I determine the WebSphere version dynamically while running any build script.

Assuming you have the ability to run a script from your build environment, you can run the versionInfo.sh|bat file in the WAS_HOME/bin directory. That'll provide way more information than you need, but you should be able to parse the output for the build level (in the output, it's labeled as "Version").

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM