Try specifying the environment variable as all lowercase. (See this thread: http://groups.google.com.ag/group/ccnet-user/browse_thread/thread/fa38e1796f4bca04/ff34476e8b94bdde)
Arieh. On Jul 28, 6:41 pm, Ruben Willems <[email protected]> wrote: > Hi > > thanks for the info Jeremy, > I must have overlooked this in the docs > > now the question remains : why doesn't it work ? > maybe the casing is a problem? > > need to check this out, and add a test > > with kind regards > Ruben Willems > > On Tue, Jul 27, 2010 at 3:32 PM, Jeremy Lew <[email protected]> wrote: > > See the last example of "Expanding Preprocessor Constant Values" in > > the preprocessor documentation[1]. > > > [1] > >http://ccnetlive.thoughtworks.com/ccnet/doc/CCNET/Configuration%20Pre... > > > On Jul 27, 9:30 am, Jeremy Lew <[email protected]> wrote: > > > Ruben, I don't think that's correct. > > > When evaluating a symbol like $(SystemRoot), the preprocessor first > > > looks at any symbols defined in the current scope (i.e. in the config > > > file before the evaluation occurred). If no definition exists, it > > > will look for an environment variable with the same name and use its > > > value. If neither exist, an error is thrown. > > > > So, Ido's example should work just fin, except he doesn't need to > > > define WindowsDir. Just use $(SystemRoot) (or whatever environment > > > variable name) as if it had been declared. > > > > -Jeremy > > > > On Jul 26, 2:09 am, Ruben Willems <[email protected]> wrote: > > > > > Hi > > > > > if you want the value to be something like c:\windows\system32, this is > > not > > > > going to work > > > > the pre-processor does not look at environment variables. > > > > > with kind regards > > > > Ruben Willems > > > > > On Sun, Jul 25, 2010 at 12:20 PM, idoy <[email protected]> wrote: > > > > > Hi, > > > > > > I have a question about defining a constant in my ccnet.config. > > > > > > I defined an environment variable constant:<env WindwosDir="$ > > > > > (SystemRoot)"/> > > > > > How can I define a constant using that WindwosDir ? > > > > > I tried: > > > > > <env WindowsDir="$(SystemRoot)"/> > > > > > <cb:define SourceDir="$(WindowsDir)\System32"/> > > > > > > but it throws an error. > > > > > thanks, Ido
