1.

How To Let Auto-detect Platform And Use Platform Specific Properties?

Answer»

Tell you a GREAT trick, it WORKS excellent.
In your major build-include.xml, put in this line

<property file="${antutil.includes}/${os.name}-${os.arch}.properties" />

This will auto-detect your PLATFORM, and you write ONE file for each environment specific variables. For example: HP-UX-PA_RISC2.0.properties SunOS-sparc.properties Windows XP-x86.properties ... They work great!!! 

Tell you a great trick, it works excellent.
In your major build-include.xml, put in this line

<property file="${antutil.includes}/${os.name}-${os.arch}.properties" />

This will auto-detect your platform, and you write one file for each environment specific variables. For example: HP-UX-PA_RISC2.0.properties SunOS-sparc.properties Windows XP-x86.properties ... They work great!!! 



Discussion

No Comment Found