Comments (6)
Are you using Maven? Maven should automatically generate the file with the correct name based on module.gwt.xml. It should also already be there if you download the jar directly.
It is kind of unfortunate that non-Maven users have to make the change manually. @tbroyer, what's your opinion on best practice here?
from gwteventbinder.
Hi,
Nope I am not using maven. I am building with ant. I don't get it why it is necessary for maven to move around source files?
Vassilis
from gwteventbinder.
@vasvir It's really not clear to me what your problem is, and what you're trying to do.
The JAR contains com/google/web/bindery/event/EventBinder.gwt.xml
so all you have to do is put it in your classpath and add <inherits name="com.google.web.bindery.event.EventBinder" />
to your gwt.xml
.
And if you're using Maven and the net.ltgt.gwt.maven:gwt-maven-plugin
for your own project, you actually just need to add the dependency to your pom.xml
and the plugin will automatically generate the <inherits>
line in the gwt.xml
(see the eventbinder-sample for an example).
There's no such file in the sources because it's generated from the src/main/module.gwt.xml
by the net.ltgt.gwt.maven:gwt-maven-plugin
(granted, currently and in this project it's just a copy), but I don't see what the problem is here. If you want to build the project yourself, then use Maven as that's what gwt-eventbinder uses; or if you absolutely want to build the project yourself but using another build tool (for whatever reason), then you'll have to replicate what the Maven build does within your build script, and that involves massaging the src/main/module.gwt.xml
into com/google/web/bindery/event/EventBinder.gwt.xml
(currently just a copy, but in the future the <inherits name="com.google.web.bindery.event.Event" />
line could be generated automatically by the net.ltgt.gwt.maven:gwt-maven-plugin
).
So: what are you trying to do? and what is your problem exactly?
from gwteventbinder.
Hi,
Thanks for the detailed answer.
I was trying to build it with ant. Why I didn't use directly the jar? I think it was depending on GWT 2.5 and I wanted to use 2.6. Maybe a misunderstanding of my part.
I didn't guess that producing the gwt.xml was the job of a maven plugin. I thought it was a defect or an indication that I was missing something (indeed).
Anyway it works for me (for now) from my non maven build.
Vassilis
from gwteventbinder.
Thanks for the explanation Thomas. I pushed v1.0.2 yesterday with support for GWT 2.6, so if you download the new jar you might be able to use it directly.
from gwteventbinder.
@vasvir no need to recompile just for a different dependency version (unless there are braking changes), a GWT lib is just a JAR with both compiled classes and java sources (and other resources; and possibly a META-INF/gwt/mainModule
but that's only used by the net.ltgt.gwt.maven:gwt-maven-plugin
), there's no hard/direct dependency with the dependencies used to build it, just like any other JAR.
v1.0.1 was built (and tested) against GWT 2.5.1 but works just as well as v1.0.2 with GWT 2.6 (there was no other change than updating the dependency in the pom.xml
; the small breaking change in GWT 2.6 βre. an internal APIβ was already addressed in v1.0.1)
from gwteventbinder.
Related Issues (20)
- Example is not working HOT 2
- Compilation from master failed. HOT 3
- Eventbinding in abstract classes. HOT 5
- Would be nice if example had one instance of removing handlers HOT 1
- GWT 2.6.0-rc1 : com.google.gwt.dev.util.Preconditions removed HOT 1
- Error compiling on gwt 2.6.0-rc1 HOT 2
- @EventHandler for base abstract events HOT 4
- Update to GWT 2.6 HOT 8
- How to use gwteventbinder with guice during unit test HOT 7
- Using @EventHandler in derivative classes HOT 2
- EventBinder module definition is incompatible with separate compilation landed on GWT trunk HOT 4
- GWT dependencies have wrong dependency scope? HOT 4
- Is there a way to restrict which classes can catch events?
- Support generic events
- Is GWT 2.7 supported? HOT 3
- Activity and Presenter should be in same class or in the same package HOT 2
- transitive dependency on GWT 2.6.0 HOT 6
- Safari on Mac OSX HOT 1
- event binder generator does not use canonicalname for implements type. HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gwteventbinder.