[patch] Kawac ant task FileNameMapper name mangling

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[patch] Kawac ant task FileNameMapper name mangling

Jamison Hope
The attached patch fixes the expected class file name for source files
with hyphenated names by mangling "-" to "$Mn".

Previously, the simple glob mapped *.scm to *.class, which meant that
for string-cursors.scm it was looking for "string-cursors.class", not
finding it, and always concluding that it was out-of-date.  (Likewise
for case-lambda.scm and process-context.scm.)

--
Jamison Hope
The PTR Group
www.theptrgroup.com



gnu-kawa-ant-Kawac-name-mangling.patch (2K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [patch] Kawac ant task FileNameMapper name mangling

Per Bothner
On 06/02/2015 08:59 PM, Jamison Hope wrote:
> The attached patch fixes the expected class file name for source files
> with hyphenated names by mangling "-" to "$Mn".

Thanks - I checked this in.

(One option I've considered is to *not* mangle class names, at least
ones that are valid JVM names - which includes ones with hyphens.
The disadvantage is you wouldn't be able to refer to these classes
from Java, except by using reflection.)
--
        --Per Bothner
[hidden email]   http://per.bothner.com/