java - How to get GWT to compile multiple modules? -
i've set new gwt project in netbeans 6.9 , created multiple gwt modules i've tried adding them in gwt.properties file follows:
*# names of modules compile (separated space character) gwt.module=com.company.mymodule1 com.company.mymodule2 com.company.mymodule3*
i'm getting error @ compilation time saying doesn't find second module. now, can compile fine 1 module. doesn't matter one. i'm doing wrong or it's bug in gwt/nbgwt ?
i tried this:
*# names of modules compile (separated space character) gwt.module=com.company.mymodule1 gwt.module=com.company.mymodule2 gwt.module=com.company.mymodule3*
in case last module in list gets compiled.
you need create gwt.xml file per module.
then can compile of them ant task
<target name="gwtc" depends="javac" description="gwt compile javascript"> <java failonerror="true" fork="true" classname="com.google.gwt.dev.compiler"> <classpath> <pathelement location="src"/> <path refid="project.class.path"/> </classpath> <!-- additional arguments -style pretty or -loglevel debug --> <arg value="${mymodulename}"/> </java> </target>
Comments
Post a Comment