Hi guys, 

Without any background, the question is how can I add a compiler option so 
that the source inside a module is compiled without resolving its 
dependency? For example, a module as simple as below

<module>
  <inherits name="com.google.gwt.user.User" />
  <source path="utils"/>
</module>

Only the .java files inside utils folder are translated into javascript.


*Background*I am working on supporting mock components for AppInventor 
<http://ai2.appinventor.mit.edu/>'s component development kit (aka CDK, link 
<http://ai2.appinventor.mit.edu/reference/other/extensions.html>). 
Basically, I need to inject javascript representing a mock on-the-fly. But 
before injecting, I need to get hold of what to inject. 

*AppInventor and components*
AppInventor is written with GWT enabling users to edit their apps on the 
web before running on android. What they edit on the web is actually mock 
components, mocking the genuine visible components (e.g. TextBox, Spinner, 
etc) on android. So the mocks are developed with GWT.

*AppInventor and CDK*
Before CDK, all components are developed by the team. CDK allows other 
developers to make and use components. This requires loading necessary code 
at runtime. Currently, only the code of the component on the android side 
can be done so but not the code for the mock. In other word, it now only 
supports components without a mock (aka non-visible components).

*Goal*
To support mocks, we need to know the part of the GWT code that is written 
by the author which will then be injected on-the-fly. So I need to only 
compile those specific files but not all files. That's why I post this 
question. And I want to make use of GWT's compiler for this purpose.

The info above may be over-simplified but it may take very long to explain 
every detail. Let's see if it's already enough.

Thank you very much. Any direction or advice would be appreciated. I am 
running out of solutions. Hope this is the right one.

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Contributors" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit-contributors/abdde01f-8c0e-45fd-909d-eaa4ae419fcb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to