Я пытаюсь использовать: http://code.google.com/p/jspf/ в рамках GWT.Я знаю, что GWT нужен источник включенных классов.Я поместил код для jspf в мой {SRC_DIR}, и мой build.xml содержит эту запись:
<path id="project.class.path">
<pathelement location="${basedir}/src" />
<fileset dir="${war_lib_dir}" includes="**/*.jar" />
<pathelement location="${javac_precompile_classes_dir}" />
</path>
Но когда я запускаю задачу ant, она завершается неудачно с:
[echo] Starting GWTC
[java] Compiling module com.x.y.z
[java] Validating newly compiled units
[java] [ERROR] Errors in 'file:/u/v/XyzClass.java'
[java] [ERROR] Line 201: No source code is available for type net.xeoh.plugins.base.util.JSPFProperties; did you forget to inherit a required module?
[java] [ERROR] Line 203: No source code is available for type net.xeoh.plugins.base.PluginManager; did you forget to inherit a required module?
[java] [ERROR] Line 208: No source code is available for type net.xeoh.plugins.base.impl.PluginManagerFactory; did you forget to inherit a required module?
[java] [ERROR] Line 209: No source code is available for type net.xeoh.plugins.base.util.uri.ClassURI; did you forget to inherit a required module?
[java] [ERROR] Line 211: No source code is available for type com.netapp.sysmgr.plugin.SysmgrPlugin; did you forget to inherit a required module?
[java] Finding entry point classes
Фрагмент из build.xml
<target name="javac" depends="libs" description="Compile server java source and any other required files">
<echo>Compiling server source</echo>
<mkdir dir="${war_classes_dir}" />
<javac srcdir="${basedir}/src" includes="**/server/**/*.java" encoding="utf-8" destdir="${war_classes_dir}"
source="1.5" target="1.5" nowarn="true" debug="true" debuglevel="lines,vars,source">
<classpath>
<path refid="project.class.path" />
</classpath>
</javac>
<echo>Pre-compiling vendor specific source</echo>
<mkdir dir="${javac_precompile_classes_dir}" />
<javac srcdir="${basedir}/src" includes="**/vendor/**/*.java" encoding="utf-8" destdir="${javac_precompile_classes_dir}"
source="1.5" target="1.5" nowarn="true" debug="true" debuglevel="lines,vars,source">
<classpath refid="project.class.path" />
</javac>