2012-08-24 24 views
0

我正在嘗試編寫用於移動,桌面&平板電腦的GWTP + MGWT項目的build.xml。GWTP ant build.xml - 沒有處理器聲稱這些註釋

<property name="in.src.folder" location="src" /> 
<property name="apt_generated" location=".apt_generated" /> 
<property name="out.classes.folder" location="war/WEB-INF/classes" /> 
<property name="warlib.folder" location="war/WEB-INF/lib" /> 

<target name="javac" depends="cleanwar,libs" description="Compile java source to bytecode"> 
     <mkdir dir="war/WEB-INF/classes" /> 

     <javac srcdir="${apt_generated}" destdir="${out.classes.folder}" includeantruntime="true" source="1.6" target="1.6" nowarn="false" debug="true" debuglevel="lines,vars,source" > 
      <classpath refid="project.class.path" /> 
      <compilerarg value="-Xlint"/> 
     </javac> 
     <javac srcdir="${in.src.folder}" includes="**" encoding="utf-8" destdir="${out.classes.folder}" source="1.6" target="1.6" nowarn="false" debug="true" debuglevel="lines,vars,source" includeantruntime="true"> 
      <classpath refid="project.class.path" /> 
      <compilerarg value="-Xlint"/> 
     </javac>  
     <copy todir="${out.classes.folder}"> 
      <fileset dir="${in.src.folder}" includes="**/*.class" /> 
     </copy> 
     <delete dir="${in.src.folder}" includes="**/*.class" failonerror="false" /> 
</target> 

應用程序運行在開發模式很好,到現在爲止,我可以建立它高達javac的目標,但我看到這些警告 -

沒有處理器聲稱這些註釋:

com.gwtplatform .mvp.client.annotations.RequestTabs,com.gwtplatform.mvp.client.annotations.NameToken,com.gwtplatform.mvp.client.annotations.ChangeTab,com.google.gwt.safehtml.client.SafeHtmlTemplates.Template,com.google .inject.Inject,com.gwtplatform.mvp.client.annotations.TabInfo,com.gwtplatform.mvp.client.annotations.ProxyCodeSplit,com.gwtplatform.mvp.client.annotations.C ontentSlot,com.google.inject.BindingAnnotation,com.google.gwt.uibinder.client.UiHandler,com.google.gwt.user.client.rpc.RemoteServiceRelativePath,com.google.gwt.inject.client.GinModules,com。 gwtplatform.mvp.client.annotations.ProxyEvent,com.gwtplatform.mvp.client.annotations.UseGatekeeper,com.synopsys.iims.fe.client.place.DefaultPlace,com.google.gwt.uibinder.client.UiField,com。 gwtplatform.mvp.client.annotations.ProxyStandard

我該如何解決這些問題?我相信這可能會導致gwtc target的問題。

回答

1

這些註釋沒有處理器(它們由GWT生成器處理),因此您可以放心地忽略警告。