Hi Ajay
I just looked at the code in UiDataReader.java and the casting to new
Object is needed . So the ant's groovyc task seems to be fine. Let me know
if I am missing something . BTW I always do a clean build (not sure if maven
does that)
- i18nManager.translate("UIDataReader.ReadDataException" ,
e.getMessage());
+ i18nManager.translate("UIDataReader.ReadDataException" , new
Object[]{e.getMessage()});
Regards
Hari
On Tue, Oct 27, 2009 at 11:26 AM, Harihara Vinayakaram <[email protected]>wrote:
> Hi Ajay
> That worked. I have not used var args so never had a chance to test it.
> I am using ant 1.7.1 and am using Java 1.6 and Groovy 1.4 . The javac task
> does not have any 1.4 compatibility also set. Strange. Let me see if I can
> find more
>
> Regards
> Hari
>
>
> On Tue, Oct 27, 2009 at 10:43 AM, AJ R <[email protected]>wrote:
>
>> Hey Hari
>>
>> I have made checked in changes to the code. I believe the code should
>> compile fine through ant now. Let me know if you have any issues. It is very
>> strange though, Java 1.5 and above should recognize variable arguments but
>> for some reason the javac task that ant provides does not understand this,
>> which is quite strange.
>>
>> Anyways let me know if you have any issues
>>
>> Regards
>>
>> Ajay Ravichandran
>>
>>
>> On Mon, Oct 26, 2009 at 10:53 PM, AJ R <[email protected]>wrote:
>>
>>> Hmmm, very strange it seems like ant's groovyc task task is not able to
>>> recognize variable argument parameters which is an integral part of Java
>>> after 1.5.
>>>
>>> This works perfectly in maven....quite strange. Let me look into this a
>>> bit more and find out why this might be happening.
>>>
>>> Regards
>>>
>>> Ajay Ravichandran
>>>
>>>
>>> On Mon, Oct 26, 2009 at 9:48 PM, Harihara Vinayakaram
>>> <[email protected]>wrote:
>>>
>>>> Yes I have the POI dependency
>>>>
>>>> Also yes I have the method public String translate(String messageKey ,
>>>> Object... arguments) [line 86 ]
>>>>
>>>> My svn info says
>>>> Path:
>>>> src/main/groovy/org/tellurium/i18n/InternationalizationManager.groovy
>>>> Name: InternationalizationManager.groovy
>>>> URL:
>>>> http://aost.googlecode.com/svn/trunk/core/src/main/groovy/org/tellurium/i18n/InternationalizationManager.groovy
>>>> Repository Root: http://aost.googlecode.com/svn
>>>> Repository UUID: 0ac36b16-8950-0410-81ec-99a1d3d0ea3c
>>>> Revision: 2488
>>>> Node Kind: file
>>>> Schedule: normal
>>>> Last Changed Author: [email protected]
>>>> Last Changed Rev: 2488
>>>> Last Changed Date: 2009-10-25 01:58:34 +0530 (Sun, 25 Oct 2009)
>>>> Text Last Updated: 2009-10-26 21:23:30 +0530 (Mon, 26 Oct 2009)
>>>> Checksum: 17f678dd4629a0977a77dbc7678ab961
>>>>
>>>> Regards
>>>> Hari
>>>>
>>>>
>>>> On Tue, Oct 27, 2009 at 2:08 AM, AJ R <[email protected]>wrote:
>>>>
>>>>> Hey Hari
>>>>>
>>>>> Have you taken latest as of yesterday. I have made some changes to the
>>>>> code. If so check the file InternationalizationManager.groovy which should
>>>>> have a function called *translate(String string , Object ...
>>>>> arguments)*.
>>>>>
>>>>> Please let me know if you do have this, if so I will need to look at
>>>>> this problem in more detail
>>>>>
>>>>> Thanks & Regards
>>>>>
>>>>> Ajay Ravichandran
>>>>>
>>>>>
>>>>> On Mon, Oct 26, 2009 at 11:10 AM, Jian Fang
>>>>> <[email protected]>wrote:
>>>>>
>>>>>> Have you added the new dependency of Apache POI for the excel reader?
>>>>>> Ajay, could you provide the link for Hari in case he does not have one.
>>>>>>
>>>>>> Thanks,
>>>>>>
>>>>>> Jian
>>>>>>
>>>>>>
>>>>>> On Mon, Oct 26, 2009 at 11:55 AM, Harihara Vinayakaram <
>>>>>> [email protected]> wrote:
>>>>>>
>>>>>>> /mnt/old/home/hvram/aost/aost-read-only/core/src/main/groovy/org/tellurium/tool/UiDataReader.java:83:
>>>>>>> cannot find symbol
>>>>>>> [groovyc] symbol : method
>>>>>>> translate(java.lang.String,java.lang.String)
>>>>>>> [groovyc] location: class
>>>>>>> org.tellurium.i18n.InternationalizationManager
>>>>>>> [groovyc]
>>>>>>> i18nManager.translate("UIDataReader.ReadDataException" ,
>>>>>>> e.getMessage());
>>>>>>>
>>>>>>> I know I am slightly behind the times and am building with ant
>>>>>>> instead of maven . But can somebody tell me the methods and where to
>>>>>>> find it
>>>>>>>
>>>>>>> Regards
>>>>>>> Hari
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>
>>
>> >>
>>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"tellurium-users" 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/tellurium-users?hl=en
-~----------~----~----~----~------~----~------~--~---