Giter Club home page Giter Club logo

Comments (6)

ekuefler avatar ekuefler commented on May 19, 2024

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.

vasvir avatar vasvir commented on May 19, 2024

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.

tbroyer avatar tbroyer commented on May 19, 2024

@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.

vasvir avatar vasvir commented on May 19, 2024

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.

ekuefler avatar ekuefler commented on May 19, 2024

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.

tbroyer avatar tbroyer commented on May 19, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.