Owd-Larrd / gwt-google-apis

Automatically exported from code.google.com/p/gwt-google-apis
0 stars 0 forks source link

.gadget.xml with actual source is generated in Lexicographical order #422

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Found in Release:
gwt-gadgets-1.2.0
Detailed description:
.gadget.xml with actual source is generated in Lexicographical order from all 
gadget definitions that are present on the class path, i.e. if I include 
utilities jar with <module>.gadget.xml - then the xml with gadget definitions 
and the source code will be generated for the utilities gadget and not for the 
main gadget I work on if the package name of the utilties gadget is first in 
ascending order

Workaround if you have one:
rename the package name of your project so it will precede all other 

Original issue reported on code.google.com by vega113 on 4 Oct 2010 at 12:39

GoogleCodeExporter commented 9 years ago
Another solution is to move your code around so that you don't include any 
other Gadget subclasses in the source path other than the one you want to build.

Original comment by zundel@google.com on 4 Oct 2010 at 6:35

GoogleCodeExporter commented 9 years ago
But I need those utilities gadgets jars - so it's not an option

Original comment by vega113 on 5 Oct 2010 at 6:48

GoogleCodeExporter commented 9 years ago
What I mean is to put your main Gadget class that currently lives in the 
Utilities module under a different module.

com.example.Utilities.gadget.UtilitiesGadget.gwt.xml:
  <inherits name="com.example.Utilities">

com.example.MyGadget.MyGadget.gwt.xml
  <inherits name="com.example.Utilities">

com.example.Utilities.gwt.xml:

Original comment by zundel@google.com on 5 Oct 2010 at 11:57