[Mono-bugs] [Bug 643958] Resource directory in the project solution should be lowercase

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Jan 11 09:55:25 EST 2011


https://bugzilla.novell.com/show_bug.cgi?id=643958

https://bugzilla.novell.com/show_bug.cgi?id=643958#c9


--- Comment #9 from Jonathan Pryor <jpryor at novell.com> 2011-01-11 14:55:23 UTC ---
To which I say, "eep!"

The problem, specifically, is how we currently generate the Resource file,
which is:

 1. Copy the contents of Resources into obj/{Debug,Release}/android/res
 2. Run `aapt package` on the above `res` directory.  Among the output is a
Java source file.
 3. Parse the .java source into a System.CodeDom representation, and generate
the code.

Implicit in the above is that `aapt package` will be reading the lowercased
filenames, and thus generate fields with lowercase names, which are then read
back in (3).  The only way I can think of to fix this is to do an additional
directory lookup /for each field generated/ to determine the "proper" case
sensitivity.

(Though if I cache the directory information, it would be only one directory
traversal, so this shouldn't slow things down too much...)

I'll need to try this, it might not be as difficult to support as I feared.

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list