Bill Michell a écrit :
> I wouldn't expect the duplicated "Documents and Settings" in the path.
Me neither.
>
> C:\D & S\MYNAME\Application Data\WOLips would be what I would expect.
I think the cleanest way to get that is the following:
System.getenv("APPDATA")+"/WOLips";
Guillaume
>
>
> --
> *Bill Michell*
> Development Team Leader, Broadcast Platforms,* BBC FM&T (Journalism).*
>
>
> *From:* Mike Schrag [mailto:mschra..dimension.com]
> *Sent:* 08 September 2008 18:31
> *To:* woproject-de..bjectstyle.org
> *Subject:* Re: Hotness library location on Windows
>
>> It was created at C:\Documents and Settings\MYNAME\Documents and
>> Settings\AppData\Local\WOLips\wobuild.properties - a rather
>> non-standard location!
> Small bug in the lookup method:
> this.wolipsPropertiesFile = new
> File(System.getProperty("user.home"), "Documents and
> Settings/Application Data/WOLips/" +
> WOVariables.WOLIPS_PROPERTIES_FILE_NAME);
> if (!isValidWOlipsPropertiesFile()) {
> this.wolipsPropertiesFile = new
> File(System.getProperty("user.home"), "Documents and
> Settings/AppData/Local/WOLips/" +
> WOVariables.WOLIPS_PROPERTIES_FILE_NAME);
> }
>
> Because it doesn't exist yet, it's considered invalid and then
> goes to the next one down ... Those ARE, by the way, standard
> Windows locations for application data :)
>
> It's also wolips.properties now instead of wobuild.properties, for
> what it's worth.
>
> ms
>
>
> http://www.bbc.co.uk
> This e-mail (and any attachments) is confidential and may contain
> personal views which are not the views of the BBC unless specifically
> stated.
> If you have received it in error, please delete it from your system.
> Do not use, copy or disclose the information in any way nor act in
> reliance on it and notify the sender immediately.
> Please note that the BBC monitors e-mails sent or received.
> Further communication will signify your consent to this.
This archive was generated by hypermail 2.0.0 : Tue Sep 09 2008 - 02:18:16 EDT