You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by Haibo Zhao <zh...@cs.uga.edu> on 2008/07/08 21:43:45 UTC

Luciano, the patch including code for three GData operations

Hi Luciano,

    It turned out to be some problem with the TortoiseSVN I am using;
it somehow generates the patch with duplicated files.

    I switched to SVN command line and created the patch......double
checked the patch and found no problem with it.

    The remaining issue is that I am not sure how I should put the
four jar files I am using from GData APIs:

    They are:

    gdata-client-1.0.jar
    gdata-client-meta-1.0.jar
    gdata-core-1.0.jar
    gdata-media-1.0.jar

    I currently put them in the local project classpath, and I guess
they should be placed the same as other jars being used in Tuscany.
Luciano, do you have any suggestions?

    Please let me know if you have any questions or find any problems
with the patch, I will fix it and get back to you ASAP.

    Thanks,
    Haibo

Re: Luciano, the patch including code for three GData operations

Posted by Luciano Resende <lu...@gmail.com>.
On Sat, Jul 12, 2008 at 3:39 PM, Haibo Zhao <zh...@cs.uga.edu> wrote:
> Luciano,
>
>    A mid-term evaluation has been send to you and submitted to the
> Tuscany Dev list. Regarding your comments, please see my inline reply
> below:
>
> On Fri, Jul 11, 2008 at 2:17 AM, Luciano Resende <lu...@gmail.com> wrote:
>> I have applied your patch for TUSCANY-2458 and TUSCANY-2460 under
>> revision #675836 and #675837. I'd suggest couple things :
>
> Thanks, I can see and check out them now.
>
>> 1.Looks like you have your gdata binding based on the atom binding,
>> maybe would be a good approach to have it using the atom binding
>> model, and just have this as another atom binding like
>> atom-binding-gdata. Then, if we add the support for RSS, we could
>> still follow the same pattern and have rss-binding-gdata.
>
> I am using Atom binding as an example, and modify the Atom binding
> code directly, some of the Atom code and comments are not cleared
> completely. But eventually, I will remove all abdera related
> code/comments from my code. I am not sure I will have a binding like
> atom-binding-gdata and rss-binding-gdata because GData supports both
> Atom and Rss, and what data representation(Atom/RSS) will be
> transparent for users. Users of Gdata binding in Tuscany will not have
> to care or know what data representing format the service is using.
>
> I will leave it as it is for now, and carefully think about your
> suggestion. What do you think?
>

Ok.

>> 2.You are defining your own collection interfaces, could we use the
>> existent collection from data-api ?
>
> I am not sure which collection interface you are referring, could you
> give me a little bit more details. What is data-api? or maybe
> gdata-api?
>
>

We have a collection interface in modules/data-api.

https://svn.apache.org/repos/asf/tuscany/java/sca/modules/data-api/
https://svn.apache.org/repos/asf/tuscany/java/sca/modules/data-api/src/main/java/org/apache/tuscany/sca/data/collection/Collection.java

>> 3.You have couple test cases under src/test that runs successfully. It
>> would be great if we could automate them using jUnit.
>
> I have implemented the support for two more Gdata operations(Put and
> Delete) and created a test cases for the testing of all 5 implemented
> GData operations.... I am clearing the added code right now and will
> be sending you another patch during this weekend or so.
>

Ok, great.

>> 4.Do you have any tests that actually consumes some Google Services ?
>
> Not yet, I am testing the Gdata ServiceBinding and ReferenceBinding in
> a single test case. I am working on a test case consuming Google Blog
> Service.
>

Ok.

>
>> I'll continue to review your code and provide more feedback.
>> BTW, I have updated the deployGdataToMaven.sh script to deploy the
>> other dependency you require.
>
> Thanks for adding the dependencies.
>

Try adding the changes on your pom.xml to make a clean build to work via maven.
You can see the necessary changes in :

https://svn.apache.org/repos/asf/tuscany/java/sca/modules/binding-gdata-runtime/pom.xml

>>
>> On Tue, Jul 8, 2008 at 12:52 PM, Luciano Resende <lu...@gmail.com> wrote:
>>> Thanks Haibo, I'll take a look at them sometime today and see if they
>>> apply better now.
>>>
>>> As for the jars, we have been discussing this on the ML for a
>>> definitive solution, in the meantime, Douglas have sent a shell script
>>> [1] that add two of these files to a maven repo defined in my
>>> people.a.o account, you could provide a jira/patch to add the other
>>> jars that you need.
>>>
>>> [1] https://svn.apache.org/repos/asf/tuscany/java/sca/modules/binding-gdata-runtime/deployGdataToMaven.sh
>>>
>>> On Tue, Jul 8, 2008 at 12:43 PM, Haibo Zhao <zh...@cs.uga.edu> wrote:
>>>> Hi Luciano,
>>>>
>>>>    It turned out to be some problem with the TortoiseSVN I am using;
>>>> it somehow generates the patch with duplicated files.
>>>>
>>>>    I switched to SVN command line and created the patch......double
>>>> checked the patch and found no problem with it.
>>>>
>>>>    The remaining issue is that I am not sure how I should put the
>>>> four jar files I am using from GData APIs:
>>>>
>>>>    They are:
>>>>
>>>>    gdata-client-1.0.jar
>>>>    gdata-client-meta-1.0.jar
>>>>    gdata-core-1.0.jar
>>>>    gdata-media-1.0.jar
>>>>
>>>>    I currently put them in the local project classpath, and I guess
>>>> they should be placed the same as other jars being used in Tuscany.
>>>> Luciano, do you have any suggestions?
>>>>
>>>>    Please let me know if you have any questions or find any problems
>>>> with the patch, I will fix it and get back to you ASAP.
>>>>
>>>>    Thanks,
>>>>    Haibo
>>>>
>>>
>>>
>>>
>>> --
>>> Luciano Resende
>>> Apache Tuscany Committer
>>> http://people.apache.org/~lresende
>>> http://lresende.blogspot.com/
>>>
>>
>>
>>
>> --
>> Luciano Resende
>> Apache Tuscany Committer
>> http://people.apache.org/~lresende
>> http://lresende.blogspot.com/
>>
>



-- 
Luciano Resende
Apache Tuscany Committer
http://people.apache.org/~lresende
http://lresende.blogspot.com/

Re: Luciano, the patch including code for three GData operations

Posted by Haibo Zhao <zh...@cs.uga.edu>.
Luciano,

    A mid-term evaluation has been send to you and submitted to the
Tuscany Dev list. Regarding your comments, please see my inline reply
below:

On Fri, Jul 11, 2008 at 2:17 AM, Luciano Resende <lu...@gmail.com> wrote:
> I have applied your patch for TUSCANY-2458 and TUSCANY-2460 under
> revision #675836 and #675837. I'd suggest couple things :

Thanks, I can see and check out them now.

> 1.Looks like you have your gdata binding based on the atom binding,
> maybe would be a good approach to have it using the atom binding
> model, and just have this as another atom binding like
> atom-binding-gdata. Then, if we add the support for RSS, we could
> still follow the same pattern and have rss-binding-gdata.

I am using Atom binding as an example, and modify the Atom binding
code directly, some of the Atom code and comments are not cleared
completely. But eventually, I will remove all abdera related
code/comments from my code. I am not sure I will have a binding like
atom-binding-gdata and rss-binding-gdata because GData supports both
Atom and Rss, and what data representation(Atom/RSS) will be
transparent for users. Users of Gdata binding in Tuscany will not have
to care or know what data representing format the service is using.

I will leave it as it is for now, and carefully think about your
suggestion. What do you think?

> 2.You are defining your own collection interfaces, could we use the
> existent collection from data-api ?

I am not sure which collection interface you are referring, could you
give me a little bit more details. What is data-api? or maybe
gdata-api?


> 3.You have couple test cases under src/test that runs successfully. It
> would be great if we could automate them using jUnit.

I have implemented the support for two more Gdata operations(Put and
Delete) and created a test cases for the testing of all 5 implemented
GData operations.... I am clearing the added code right now and will
be sending you another patch during this weekend or so.

> 4.Do you have any tests that actually consumes some Google Services ?

Not yet, I am testing the Gdata ServiceBinding and ReferenceBinding in
a single test case. I am working on a test case consuming Google Blog
Service.


> I'll continue to review your code and provide more feedback.
> BTW, I have updated the deployGdataToMaven.sh script to deploy the
> other dependency you require.

Thanks for adding the dependencies.

>
> On Tue, Jul 8, 2008 at 12:52 PM, Luciano Resende <lu...@gmail.com> wrote:
>> Thanks Haibo, I'll take a look at them sometime today and see if they
>> apply better now.
>>
>> As for the jars, we have been discussing this on the ML for a
>> definitive solution, in the meantime, Douglas have sent a shell script
>> [1] that add two of these files to a maven repo defined in my
>> people.a.o account, you could provide a jira/patch to add the other
>> jars that you need.
>>
>> [1] https://svn.apache.org/repos/asf/tuscany/java/sca/modules/binding-gdata-runtime/deployGdataToMaven.sh
>>
>> On Tue, Jul 8, 2008 at 12:43 PM, Haibo Zhao <zh...@cs.uga.edu> wrote:
>>> Hi Luciano,
>>>
>>>    It turned out to be some problem with the TortoiseSVN I am using;
>>> it somehow generates the patch with duplicated files.
>>>
>>>    I switched to SVN command line and created the patch......double
>>> checked the patch and found no problem with it.
>>>
>>>    The remaining issue is that I am not sure how I should put the
>>> four jar files I am using from GData APIs:
>>>
>>>    They are:
>>>
>>>    gdata-client-1.0.jar
>>>    gdata-client-meta-1.0.jar
>>>    gdata-core-1.0.jar
>>>    gdata-media-1.0.jar
>>>
>>>    I currently put them in the local project classpath, and I guess
>>> they should be placed the same as other jars being used in Tuscany.
>>> Luciano, do you have any suggestions?
>>>
>>>    Please let me know if you have any questions or find any problems
>>> with the patch, I will fix it and get back to you ASAP.
>>>
>>>    Thanks,
>>>    Haibo
>>>
>>
>>
>>
>> --
>> Luciano Resende
>> Apache Tuscany Committer
>> http://people.apache.org/~lresende
>> http://lresende.blogspot.com/
>>
>
>
>
> --
> Luciano Resende
> Apache Tuscany Committer
> http://people.apache.org/~lresende
> http://lresende.blogspot.com/
>

Re: Luciano, the patch including code for three GData operations

Posted by Luciano Resende <lu...@gmail.com>.
I have applied your patch for TUSCANY-2458 and TUSCANY-2460 under
revision #675836 and #675837. I'd suggest couple things :

1.Looks like you have your gdata binding based on the atom binding,
maybe would be a good approach to have it using the atom binding
model, and just have this as another atom binding like
atom-binding-gdata. Then, if we add the support for RSS, we could
still follow the same pattern and have rss-binding-gdata.

2.You are defining your own collection interfaces, could we use the
existent collection from data-api ?

3.You have couple test cases under src/test that runs successfully. It
would be great if we could automate them using jUnit.

4.Do you have any tests that actually consumes some Google Services ?

I'll continue to review your code and provide more feedback.
BTW, I have updated the deployGdataToMaven.sh script to deploy the
other dependency you require.


On Tue, Jul 8, 2008 at 12:52 PM, Luciano Resende <lu...@gmail.com> wrote:
> Thanks Haibo, I'll take a look at them sometime today and see if they
> apply better now.
>
> As for the jars, we have been discussing this on the ML for a
> definitive solution, in the meantime, Douglas have sent a shell script
> [1] that add two of these files to a maven repo defined in my
> people.a.o account, you could provide a jira/patch to add the other
> jars that you need.
>
> [1] https://svn.apache.org/repos/asf/tuscany/java/sca/modules/binding-gdata-runtime/deployGdataToMaven.sh
>
> On Tue, Jul 8, 2008 at 12:43 PM, Haibo Zhao <zh...@cs.uga.edu> wrote:
>> Hi Luciano,
>>
>>    It turned out to be some problem with the TortoiseSVN I am using;
>> it somehow generates the patch with duplicated files.
>>
>>    I switched to SVN command line and created the patch......double
>> checked the patch and found no problem with it.
>>
>>    The remaining issue is that I am not sure how I should put the
>> four jar files I am using from GData APIs:
>>
>>    They are:
>>
>>    gdata-client-1.0.jar
>>    gdata-client-meta-1.0.jar
>>    gdata-core-1.0.jar
>>    gdata-media-1.0.jar
>>
>>    I currently put them in the local project classpath, and I guess
>> they should be placed the same as other jars being used in Tuscany.
>> Luciano, do you have any suggestions?
>>
>>    Please let me know if you have any questions or find any problems
>> with the patch, I will fix it and get back to you ASAP.
>>
>>    Thanks,
>>    Haibo
>>
>
>
>
> --
> Luciano Resende
> Apache Tuscany Committer
> http://people.apache.org/~lresende
> http://lresende.blogspot.com/
>



-- 
Luciano Resende
Apache Tuscany Committer
http://people.apache.org/~lresende
http://lresende.blogspot.com/

Re: Luciano, the patch including code for three GData operations

Posted by Luciano Resende <lu...@gmail.com>.
Thanks Haibo, I'll take a look at them sometime today and see if they
apply better now.

As for the jars, we have been discussing this on the ML for a
definitive solution, in the meantime, Douglas have sent a shell script
[1] that add two of these files to a maven repo defined in my
people.a.o account, you could provide a jira/patch to add the other
jars that you need.

[1] https://svn.apache.org/repos/asf/tuscany/java/sca/modules/binding-gdata-runtime/deployGdataToMaven.sh

On Tue, Jul 8, 2008 at 12:43 PM, Haibo Zhao <zh...@cs.uga.edu> wrote:
> Hi Luciano,
>
>    It turned out to be some problem with the TortoiseSVN I am using;
> it somehow generates the patch with duplicated files.
>
>    I switched to SVN command line and created the patch......double
> checked the patch and found no problem with it.
>
>    The remaining issue is that I am not sure how I should put the
> four jar files I am using from GData APIs:
>
>    They are:
>
>    gdata-client-1.0.jar
>    gdata-client-meta-1.0.jar
>    gdata-core-1.0.jar
>    gdata-media-1.0.jar
>
>    I currently put them in the local project classpath, and I guess
> they should be placed the same as other jars being used in Tuscany.
> Luciano, do you have any suggestions?
>
>    Please let me know if you have any questions or find any problems
> with the patch, I will fix it and get back to you ASAP.
>
>    Thanks,
>    Haibo
>



-- 
Luciano Resende
Apache Tuscany Committer
http://people.apache.org/~lresende
http://lresende.blogspot.com/