Right click on build.xml to run ant build problem

Having trouble installing Oxygen? Got a bug to report? Post it all here.
FredP

Right click on build.xml to run ant build problem

Post by FredP »

Hello,
When i right click on build.xml file to start ant build (by clicking on RUN...) the 1. Ant Run Build and 2 Ant Run Build options disapeared!
Eclipse 3.1M2 and Oxygen 5.1.0
When i switch from 5.1 to 5.0 options are back ?


Kings Regards
george
Site Admin
Posts: 2095
Joined: Thu Jan 09, 2003 2:58 pm

Post by george »

Hi,

In version 5.1 oXygen adds the following extension:

Code: Select all


  <extension point="org.eclipse.core.runtime.contentTypes">
<content-type
base-type="org.eclipse.core.runtime.xml"
priority="high"
file-extensions="xml,vxml,xtm,xhtml,fo,mathml,jspx,svg,wssr,wssc,rng,nrl,xsl,xslt,xsd,dtd,mod,ent,wsdl,sch"
id="com.oxygenxml.editor.OxygenFile" name="oXygen XML">
<describer class="com.oxygenxml.editor.editors.xml.XMLContentDescriber"/>
</content-type>
</extension>
in order to provide XML encoding detection for XML files in Eclipse.
Removing this from oXygen's pluging.xml brings back those ant plugin contributions but may cause encoding problems if you will use encodings other than URF-8 and UTF-16 fro your XML files.

Best Regards,
George
Mircea
Posts: 131
Joined: Tue Mar 25, 2003 11:21 am

Post by Mircea »

Hi Fred,

It seems to be an Ant plugin problem since it does not specify any file-extensions or file-names.

After editing the plugin.xml located in the plugins\org.eclipse.ant.core_3.0.0 everything works perfect now.

My modification was:
<extension
point="org.eclipse.core.runtime.contentTypes">
<content-type
id="antBuildFile"
name="%antBuildFileContentType.name"
base-type="org.eclipse.core.runtime.xml"
-------------- Start of modification ---------------
file-names="build.xml"
-------------- End of modification -----------------
priority="high">
<describer class="org.eclipse.core.runtime.content.XMLRootElementContentDescriber">
<parameter name="element" value="project" />
</describer>
</content-type>
</extension>

Best regards,
Mircea.
Post Reply