I have various settings in my ccnet.config file and wish to pass them to my build file in order to keep these constants in one place.
How do I do that?!
Thanks,
Anders, Denmark
Assuming your build file is a NAnt file, you would do it like this:
<nant>
<buildFile>xx.build</buildFile>
<buildArgs>-D:foo="$(foo)" -D:bar="$(bar)"</buildArgs>
...
</nant>
You can access the variable in the build script via ${foo}
resp. ${bar}
then.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With