ANT does not load my environment variables correctly -
i have problem ant script added echos finde source of error. guesed might environemt variable android sdk added
<echo level="info"> sdk.dir= ${sdk.dir} </echo>
and prints
[echo] sdk.dir= c:usersspongedocumentsmy dropboxandroid sdk
i set environment variable (i user win7):
name: android_home value: c:\users\sponge\documents\my dropbox\android sdk
i dont have much experience ant maybe behaviour of echo command backslashes removed , path correct, or problem why script can't find resource anttasks.properties example, in sdk folder.
in properties file, backslashes must escaped (using backslash):
name: android_home value: c:\\users\\sponge\\documents\\my dropbox\\android sdk
i wouldn't bother backslashes, , utilize clashes instead, ant (and java in general) supports fine, on windows:
name: android_home value: c:/users/sponge/documents/my dropbox/android sdk
ant environment-variables backslash
No comments:
Post a Comment