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's component development kit (aka CDK,
link). 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 componentsAppInventor 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 CDKBefore 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).
GoalTo 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.