gammagec / GinJitsu

Wrapper for Gin which allows Extensions for Injection into Generated Classes
5 stars 3 forks source link

Provide some documentation #1

Open davidecavestro opened 11 years ago

davidecavestro commented 11 years ago

Please provide some documentation: a github wiki page would be enough. I'd need some instructions on how to include and use the module(s) on a gwt project, and how to use its features/annotations. It could also be useful having a way to know if the project has been published on public maven repos and so on... I tried to build and use this project on my code with no success, and that's a pity. You could also comment on http://code.google.com/p/google-gin/issues/detail?id=176 that asks for a feature similar to @afterInject on core GIN.

Cheers Davide

gammagec commented 11 years ago

Davide,

Hi. I would be happy to try to give something in regards to GinJitsu documentation. I haven't worked on it for a bit but it's fairly simple. I will email you again when I have something.

Best Regards,

Christopher Gammage

On Fri, May 10, 2013 at 1:28 PM, Davide Cavestro notifications@github.comwrote:

Please provide some documentation: a github wiki page would be enough. I'd need some instructions on how to include and use the module(s) on a gwt project, and how to use its features/annotations. It could also be useful having a way to know if the project has been published on public maven repos and so on... I tried to build and use this project on my code with no success, and that's a pity. You could also comment on http://code.google.com/p/google-gin/issues/detail?id=176 that asks for a feature similar to @afterInject on core GIN.

Cheers Davide

— Reply to this email directly or view it on GitHubhttps://github.com/gammagec/GinJitsu/issues/1 .

Christopher Gammage Software Engineer - Digital Pathology Ventana Medical Systems, Inc.

gammagec commented 11 years ago

Also I don't have a public Repository to deploy it on. Do you know of one that allows people to deploy their own jars?

On Fri, May 10, 2013 at 1:51 PM, Christopher Gammage gammagec@gmail.comwrote:

Davide,

Hi. I would be happy to try to give something in regards to GinJitsu documentation. I haven't worked on it for a bit but it's fairly simple. I will email you again when I have something.

Best Regards,

Christopher Gammage

On Fri, May 10, 2013 at 1:28 PM, Davide Cavestro <notifications@github.com

wrote:

Please provide some documentation: a github wiki page would be enough. I'd need some instructions on how to include and use the module(s) on a gwt project, and how to use its features/annotations. It could also be useful having a way to know if the project has been published on public maven repos and so on... I tried to build and use this project on my code with no success, and that's a pity. You could also comment on http://code.google.com/p/google-gin/issues/detail?id=176 that asks for a feature similar to @afterInject on core GIN.

Cheers Davide

— Reply to this email directly or view it on GitHubhttps://github.com/gammagec/GinJitsu/issues/1 .

Christopher Gammage Software Engineer - Digital Pathology Ventana Medical Systems, Inc.

Christopher Gammage Software Engineer - Digital Pathology Ventana Medical Systems, Inc.

gammagec commented 11 years ago

Davide, I just tried to compile using maven and it compiled fine. Can you let me know what kind of issues you were having with compilation? Meanwhile like I said I will try to update the Wiki

On Fri, May 10, 2013 at 1:52 PM, Christopher Gammage gammagec@gmail.comwrote:

Also I don't have a public Repository to deploy it on. Do you know of one that allows people to deploy their own jars?

On Fri, May 10, 2013 at 1:51 PM, Christopher Gammage gammagec@gmail.comwrote:

Davide,

Hi. I would be happy to try to give something in regards to GinJitsu documentation. I haven't worked on it for a bit but it's fairly simple. I will email you again when I have something.

Best Regards,

Christopher Gammage

On Fri, May 10, 2013 at 1:28 PM, Davide Cavestro < notifications@github.com> wrote:

Please provide some documentation: a github wiki page would be enough. I'd need some instructions on how to include and use the module(s) on a gwt project, and how to use its features/annotations. It could also be useful having a way to know if the project has been published on public maven repos and so on... I tried to build and use this project on my code with no success, and that's a pity. You could also comment on http://code.google.com/p/google-gin/issues/detail?id=176 that asks for a feature similar to @afterInject on core GIN.

Cheers Davide

— Reply to this email directly or view it on GitHubhttps://github.com/gammagec/GinJitsu/issues/1 .

Christopher Gammage Software Engineer - Digital Pathology Ventana Medical Systems, Inc.

Christopher Gammage Software Engineer - Digital Pathology Ventana Medical Systems, Inc.

Christopher Gammage Software Engineer - Digital Pathology Ventana Medical Systems, Inc.

gammagec commented 11 years ago

I added this short usage wiki page

https://github.com/gammagec/GinJitsu/wiki/Usage

I didn't have a whole lot of time to spend on it, but I hope it at least helps you get started.

Please let me know the details of your compilation issues.

On Fri, May 10, 2013 at 2:24 PM, Christopher Gammage gammagec@gmail.comwrote:

Davide, I just tried to compile using maven and it compiled fine. Can you let me know what kind of issues you were having with compilation? Meanwhile like I said I will try to update the Wiki

On Fri, May 10, 2013 at 1:52 PM, Christopher Gammage gammagec@gmail.comwrote:

Also I don't have a public Repository to deploy it on. Do you know of one that allows people to deploy their own jars?

On Fri, May 10, 2013 at 1:51 PM, Christopher Gammage gammagec@gmail.comwrote:

Davide,

Hi. I would be happy to try to give something in regards to GinJitsu documentation. I haven't worked on it for a bit but it's fairly simple. I will email you again when I have something.

Best Regards,

Christopher Gammage

On Fri, May 10, 2013 at 1:28 PM, Davide Cavestro < notifications@github.com> wrote:

Please provide some documentation: a github wiki page would be enough. I'd need some instructions on how to include and use the module(s) on a gwt project, and how to use its features/annotations. It could also be useful having a way to know if the project has been published on public maven repos and so on... I tried to build and use this project on my code with no success, and that's a pity. You could also comment on http://code.google.com/p/google-gin/issues/detail?id=176 that asks for a feature similar to @afterInject on core GIN.

Cheers Davide

— Reply to this email directly or view it on GitHubhttps://github.com/gammagec/GinJitsu/issues/1 .

Christopher Gammage Software Engineer - Digital Pathology Ventana Medical Systems, Inc.

Christopher Gammage Software Engineer - Digital Pathology Ventana Medical Systems, Inc.

Christopher Gammage Software Engineer - Digital Pathology Ventana Medical Systems, Inc.

Christopher Gammage Software Engineer - Digital Pathology Ventana Medical Systems, Inc.

davidecavestro commented 11 years ago

That's simply great, many thanks for your willingness! About the compilation issue, I had problems compiling my module that uses JitsuInjector and @afterInject... the gwt compiler complained something about the missing of path/to/google/Generator from available sources, but I left the code at work... I'll try to reproduce it at home (following your new wiki page) and give you more details ASAP.

For a public maven repo I've used http://bintray.com/: it's amazing.

Cheers Davide

davidecavestro commented 11 years ago

Hi Christopher, I've just shared a fast example project at https://github.com/davidecavestro/ginjitsu-example

This is the gwt compilation error I get:

Compiling module com.acme.main.Main Validating units: [ERROR] Errors in 'jar:file:/tmp/ginjitsu-example/lib/GinJitsu.jar!/com/chrisgammage/ginjitsu/client/GinExtension.java' [ERROR] Line 13: No source code is available for type com.google.gwt.core.ext.Generator; did you forget to inherit a required module? [ERROR] Aborting compile due to errors in some input files The build is done via gradle... but I guess this is not the problem. I also locally patched GinJitsu cause I'm using GWT 2.5.0 and it seems GeneratorContextWrapper misses some methods recently added in GWT (like tryReuseTypeFromCache)... if you want I can send you a pull request... but it's really simple.

BTW the manually built jar is in the lib folder of the example project.

gammagec commented 11 years ago

I updated the Wiki page with a link to the bintray repository