我有Eclipse Ganymede,並且想要使用ant
的自動內容輔助功能。我有我的ant-contrib-1.0b3.jar
。如何在eclipse中使用ant-contrib任務auto content assist
在eclipse中需要什麼配置才能使用自動內容輔助功能,其中也可以包含ant-contrib
的任務?
當我使用以下ant
可以識別ant-contrib的任務,但內容幫助不起作用?
<!-- Define classpath for ant-contrib tasks -->
<path id="ant.contrib.classpath">
<fileset dir="/path/to/lib/">
<include name="ant-contrib-1.0b3.jar" />
</fileset>
</path>
<!-- Task definition -->
<taskdef resource="net/sf/antcontrib/antcontrib.properties">
<classpath refid="ant.contrib.classpath" />
</taskdef>
似乎不適合我。如果我寫'if'或'var'否'content-assist'出現。 – SiB 2012-08-08 09:34:08
然後必須與你的Eclipse版本有關。我假定你什麼時候什麼都沒有出現,你的意思是甚至在使用XML文件之後?在新的工作區中嘗試此操作。如果您使用Eclipse Indigo SR2嘗試此操作,會發生什麼情況? – 2012-08-08 09:43:43
這不適用於我使用eclipse 4.2。 – prolink007 2012-10-01 18:02:50