configuration - compile time properties passed to runtime client side GWT? -
i have gwt project set multiple module files (they inherit base module override logging , compression settings , like) use maven profiles control staging/production/development config... able add runtime configuration (like web service/rpc endpoints , other stuff need swapped out various environments) in same way, doesn't there smart way @ properties... there right way gwt or should roll myself maven/ant , property files?
if need hook gwt compilation process, check out generators , linkers. gwt build process divided 2 phases. compilation , linking. generators tab compilation phase, linkers linking phase.
generators called during gwt compilation , can used create additional resources, things classes, properties files , forth. generator called withing gwt compiler context, can access environment information available during compile time in generator:
http://google-web-toolkit.googlecode.com/svn/javadoc/2.3/com/google/gwt/core/ext/generator.html
linkers responsible packages resources. linker can include in build process create custom package of compiler output:
http://google-web-toolkit.googlecode.com/svn/javadoc/2.3/com/google/gwt/core/ext/linker.html
Comments
Post a Comment