Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I know which part of the code is client side code and which part is server side code? #2

Closed
porst17 opened this issue Jun 30, 2014 · 2 comments
Assignees

Comments

@porst17
Copy link
Owner

porst17 commented Jun 30, 2014

E.g. the parser is implemented as a server side module and hence we don't need to add the sources of the ANTLR library. How did you do this separation?

@fpetrola
Copy link
Collaborator

fpetrola commented Jul 3, 2014

GWT use different folders for client and server side, if you take a look at surfer.js/src/org/test you will see "client" and "server" folders.
In this particular case server folder holds the class that calls ANTLR for parsing equation.
This is the entry point for server side service, but there are several classes which are dependencies of this service that are automatically solved by GWT Eclipse plugin.
In case of client side classes they are also solved by the plugin, and it will compile only the classes that are used by the client side entry point in depth, this entry point is GwtSurferExperiment class.

@porst17
Copy link
Owner Author

porst17 commented Jul 3, 2014

Ok. I think I can use the sourceSets approach in gradle as documented here to compile server and client code separately. Still, it seems necessary to find out all the dependent classes. I think that's doable for me.

@porst17 porst17 closed this as completed Jul 3, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants