On Tue, Jun 21, 2011 at 11:39 PM, Fabrizio Giudici <
[email protected]> wrote:

> On 06/22/2011 12:00 AM, Xavier Ducrohet wrote:
>
>> (I don't think this is the right mailing list for this, but since I'm
>> reading it...)
>>
>> This is in preparation of better Library Project support. Right now
>> they are used in source form and I'd like to be able to have library
>> as a jar file and a set of resources instead.
>>
>> Generating non constant id for R.*.* will make these values not
>> inlined when compiled, so that only the final id value (generated from
>> the full set of resources coming from the project and libraries) is
>> used.
>>
>> This is not used anywhere are this time though. We're still working on it.
>>
> Thanks. Yes, the constant inlining is the problem I was facing yesterday
> and it's for reusing stuff. I could be blogging on the experimental work I'm
> doing soon (but not sure, it's a hard week), in any case at the moment I've
> solved it by patching the R.java generated in this way (I'm using Maven, so
> I'm patching the code after it is generated by aapt):
>
> public static final int view_news= (null != null) ? 0 :0x7f030001;


Does this work? It looks like the compiler should be able to optimize this.

-- 
Cédric

-- 
You received this message because you are subscribed to the Google Groups "The 
Java Posse" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/javaposse?hl=en.

Reply via email to