You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by Michael Singer <ja...@it-specialist.at> on 2005/07/14 16:20:58 UTC

Porting JSR-170 to .net

Hi all,

are there any proceedings in porting the JSR-170 API to c#?

Thanks for your answers

Mike

Re: Porting JSR-170 to .net

Posted by Michael Singer <ja...@it-specialist.at>.
David Nuescheler wrote:

>hi michael,
>
>  
>
>>I will report my proceedings...
>>    
>>
>any news?
>
>regards,
>david
>  
>
Hi David,

I had 2 weeks off and now I am currently catching up my work, no news yet...

Re: Porting JSR-170 to .net

Posted by David Nuescheler <da...@gmail.com>.
hi michael,

> I will report my proceedings...
any news?

regards,
david

Re: Porting JSR-170 to .net

Posted by David Nuescheler <da...@gmail.com>.
> This is already done by the conversion tool. I can replace the copyright
> statement with the Apache license and rename the package/namespace from
> javax.jcr to ncr (.net content repository) for instance. The PHP guys
> did almost the same as far as I have seen.
sounds good to me...

> I also found a SAX Port for .NET on sourceforge, I will check this when
> I have some time ;-)
is there some SAX equivalent in .NET? one would assume ;)


> >>So basically the api compiles but it is not yet tested. I am currently
> >>working on a WebDAV client in .net to be used as transport through the api.
> For the moment I can provide the quick port with the replaced copyright
> and namespace if you want.
sounds like a good starting point. thanks.

regards,
david

Re: Porting JSR-170 to .net

Posted by Jukka Zitting <ju...@zitting.name>.
Hi,

Michael Singer wrote:
> This is already done by the conversion tool. I can replace the copyright
> statement with the Apache license and rename the package/namespace from
> javax.jcr to ncr (.net content repository) for instance. The PHP guys
> did almost the same as far as I have seen.

For the record, there was some amount of confusion about the correct 
handling of the copyrights of the API javadocs. The issue was cleared 
with David so that the PHP port including the partially copied API docs 
can be distributed under the standard ASL. I don't think there should be 
any problems doing the same with a .NET port, but you should check this 
with Day unless you want to work through the PHP port. :-)

BR,

Jukka Zitting

Re: Porting JSR-170 to .net

Posted by "Roy T. Fielding" <fi...@gbiv.com>.
On Jul 19, 2005, at 7:37 AM, Walter Raboch wrote:

> as far as I unterstood Michael, the tool can't tranlate anything. He 
> has to modify the method signatures to match get/setter paradigma of 
> .net and use System.IO.Stream. Is this still automagically than or is 
> it already authoring? where is the point of crossing the frontier?

There is no fixed point in copyright law.  Basically, it is when the
derived work has sufficient original content that it is generally
recognizable as an original work of its own, at which point the new
work has two copyrights (the original owner and the derivative owner).

Some translations, particularly into human languages, require some
original interpretation.  Computer languages do not -- they can all
be automated and thus are usually considered the same as the original
and not sufficient to be derivative.

Anyway, just submit a contributors agreement to the ASF and nobody
will care who actually owns the copyright.

....Roy


Re: Porting JSR-170 to .net

Posted by Walter Raboch <wr...@ingen.at>.
so either not using a tool or day should provide the translation?

as far as I unterstood Michael, the tool can't tranlate anything. He has 
to modify the method signatures to match get/setter paradigma of .net 
and use System.IO.Stream. Is this still automagically than or is it 
already authoring? where is the point of crossing the frontier?

I think this is a discussion not specific to jackrabbit but all apache 
projects with contributions of commercial companies.

cheers,

Walter

Re: Porting JSR-170 to .net

Posted by "Roy T. Fielding" <fi...@gbiv.com>.
On Jul 19, 2005, at 7:28 AM, David Nuescheler wrote:
> is it legal to have code that this copyrighted by day in jackrabbit?

Yes, almost all of the code in jackrabbit is still owned by Day.
The only stuff that isn't is the collective work (Jackrabbit) and
stuff that non-Day contributors have added.  Apache's contributor
agreement is an irrevocable copyright *license*, not a copyright
assignment.

> would it from a legal perspective be better not to use a tool
> for conversion to be able to sign the copyright over to the asf?

Only the copyright owner can assign copyright (the exclusive right
to control reproduction).  Day can do that for anything it owns.
Apache only requires a non-exclusive license, so that is what Day
signed in the CCLA agreement.

Day changed the copyright notice to the Apache Software Foundation
because we feel it is in the best interests of the project to have
a single collective work copyright notice instead of one for every
owner of copyright.

....Roy


Re: Porting JSR-170 to .net

Posted by David Nuescheler <da...@gmail.com>.
hmmm....

> The copyright is still owned by Day.  What Day did was license
> a work to the ASF which now contains both Day's 
> copyrighted material and a collective work copyright for 
> Apache.
> Regardless, if a tool was used to translate Java code to C#,
> the copyright on the C# code must be the same as the Java code
> because tools do not author.  That is copyright law.  It is the
> same as the translation from Java source to jvm byte codes, or
> from C to binaries.
is it legal to have code that this copyrighted by day in jackrabbit?

would it from a legal perspective be better not to use a tool 
for conversion to be able to sign the copyright over to the asf?

regards,
david

Re: Porting JSR-170 to .net

Posted by "Roy T. Fielding" <fi...@gbiv.com>.
On Jul 19, 2005, at 7:03 AM, David Nuescheler wrote:
>> On Jul 19, 2005, at 6:50 AM, Michael Singer wrote:
>>> For the moment I can provide the quick port with the replaced 
>>> copyright
>>> and namespace if you want.
>> What replaced copyright?  If you used a tool to translate it,
>> the code is still under our copyright.
> i think the copyright in the source of the jsr api is day's.
> this is why we changed it to the apache license for the
> php stuff, but certainly you are the expert in those matters.
> i don't know if there is a way to use day's jcp licenses in the
> apache source repository? so far we were able to avoid that.

The copyright is still owned by Day.  What Day did was license
a work to the ASF which now contains both Day's copyrighted material
and a collective work copyright for Apache.

Regardless, if a tool was used to translate Java code to C#,
the copyright on the C# code must be the same as the Java code
because tools do not author.  That is copyright law.  It is the
same as the translation from Java source to jvm byte codes, or
from C to binaries.

....Roy


Re: Porting JSR-170 to .net

Posted by David Nuescheler <da...@gmail.com>.
hi roy,

> On Jul 19, 2005, at 6:50 AM, Michael Singer wrote:
> > For the moment I can provide the quick port with the replaced copyright
> > and namespace if you want.
> What replaced copyright?  If you used a tool to translate it,
> the code is still under our copyright.
i think the copyright in the source of the jsr api is day's. 
this is why we changed it to the apache license for the 
php stuff, but certainly you are the expert in those matters.
i don't know if there is a way to use day's jcp licenses in the
apache source repository? so far we were able to avoid that.

regards,
david

Re: Porting JSR-170 to .net

Posted by Michael Singer <ja...@it-specialist.at>.
Hi Roy,

Roy T. Fielding wrote:
> On Jul 19, 2005, at 6:50 AM, Michael Singer wrote:
> 
>> For the moment I can provide the quick port with the replaced copyright
>> and namespace if you want.
> 
> 
> What replaced copyright?  If you used a tool to translate it,
> the code is still under our copyright.

most of the conversion is done automatically but the SAX thing still
needs manual work (and also javax.jcr.lock and renaming of the
packagename javax.jcr to something like "ncr" or "netcr").

> 
> ....Roy
> 

how did you manage the copyright issues with the phpcr guys?

-- 
kind regards

Michael

Re: Porting JSR-170 to .net

Posted by "Roy T. Fielding" <fi...@gbiv.com>.
On Jul 19, 2005, at 6:50 AM, Michael Singer wrote:
> For the moment I can provide the quick port with the replaced copyright
> and namespace if you want.

What replaced copyright?  If you used a tool to translate it,
the code is still under our copyright.

....Roy


Re: Porting JSR-170 to .net

Posted by Michael Singer <ja...@it-specialist.at>.

David Nuescheler wrote:
> hi michael,
> 
> 
>>I just did a quick conversion of the api to c# with a tool from microsoft.
>>There is a problem with the package name javax.jcr.lock since lock is a
>>keyword in c# (renamed it to locking).
>>The second issue was the ContentHandler from org.xml.sax, I simply
>>replaced that with Object for the moment to get it compiled.
> 
> I think to get a "real .NET port" one could maybe spend a little
> time porting things to make them more ".NET-friendly". 
> For example something like an InputStream should probably 
> translate to something like a System.IO.Stream or maybe 
> one could consider the use of .NET-properties over 
> getters/setters?
> 
> I think this makes the API more "natural" for .NET developers.
> 

This is already done by the conversion tool. I can replace the copyright
statement with the Apache license and rename the package/namespace from
javax.jcr to ncr (.net content repository) for instance. The PHP guys
did almost the same as far as I have seen.

I also found a SAX Port for .NET on sourceforge, I will check this when
I have some time ;-)

> 
>>So basically the api compiles but it is not yet tested. I am currently
>>working on a WebDAV client in .net to be used as transport through the api.
> 
> sounds very cool, looking forward to any news.
> 
> regards,
> david


For the moment I can provide the quick port with the replaced copyright
and namespace if you want.

-- 
kind regards

Michael

Re: Porting JSR-170 to .net

Posted by David Nuescheler <da...@gmail.com>.
hi michael,

> I just did a quick conversion of the api to c# with a tool from microsoft.
> There is a problem with the package name javax.jcr.lock since lock is a
> keyword in c# (renamed it to locking).
> The second issue was the ContentHandler from org.xml.sax, I simply
> replaced that with Object for the moment to get it compiled.
I think to get a "real .NET port" one could maybe spend a little
time porting things to make them more ".NET-friendly". 
For example something like an InputStream should probably 
translate to something like a System.IO.Stream or maybe 
one could consider the use of .NET-properties over 
getters/setters?

I think this makes the API more "natural" for .NET developers.

> So basically the api compiles but it is not yet tested. I am currently
> working on a WebDAV client in .net to be used as transport through the api.
sounds very cool, looking forward to any news.

regards,
david

Re: Porting JSR-170 to .net

Posted by Michael Singer <ja...@it-specialist.at>.
Hi David

I just did a quick conversion of the api to c# with a tool from microsoft.
There is a problem with the package name javax.jcr.lock since lock is a
keyword in c# (renamed it to locking).
The second issue was the ContentHandler from org.xml.sax, I simply
replaced that with Object for the moment to get it compiled.

So basically the api compiles but it is not yet tested. I am currently
working on a WebDAV client in .net to be used as transport through the api.

I will report my proceedings...

-- 
kind regards

Michael

David Nuescheler wrote:
> hi michael,
> 
> On 7/14/05, Michael Singer <ja...@it-specialist.at> wrote:
> 
>>are there any proceedings in porting the JSR-170 API to c#?
>>Thanks for your answers
> 
> yes, there are a couple.
> 
> a while ago i saw some on sourceforge (i dont think those 
> are very far along) and i am aware of a number of 
> "closed source" ones. i hope that much like the php
> port we can soon feature a .NET api port in jackrabbit.
> 
> regards,
> david

Re: Porting JSR-170 to .net

Posted by David Nuescheler <da...@gmail.com>.
hi michael,

On 7/14/05, Michael Singer <ja...@it-specialist.at> wrote:
> are there any proceedings in porting the JSR-170 API to c#?
> Thanks for your answers
yes, there are a couple.

a while ago i saw some on sourceforge (i dont think those 
are very far along) and i am aware of a number of 
"closed source" ones. i hope that much like the php
port we can soon feature a .NET api port in jackrabbit.

regards,
david