I tried it in the REPL and it seemed to work fine:

user=> (use 'clojure.test)
nil
user=> (deftest testlogging   (System/setProperty "Test" "Test1")
   (let [ configfile (System/getProperty "Test")]
   (is (= "Test1" configfile ))
   ))
#'user/testlogging
user=> (run-tests)

Testing user

Ran 1 tests containing 1 assertions.
0 failures, 0 errors.
{:type :summary, :pass 1, :test 1, :error 0, :fail 0}

Can you provide more details on how to repro your issue?

On Wed, Apr 6, 2011 at 11:03 PM, MohanR <radhakrishnan.mo...@gmail.com> wrote:
> This is a beginner's question but I thought I might be missing
> something.
>
> I am setting a System property and testing for it like this. It
> passes.
>
>  ( deftest testlogger
>    (System/setProperty "Test" "Test1")
>
>    (let [ configfile (System/getProperty "Test")]
>    (is (= "Test1" configfile ))
>    )
>
> Bit if I try to retrieve it using Java code called from the same
> clojure function I get null. This is AOT compilation in ClojureBox.
>
> Is there something missing here ?

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to