Page 1 of 1

Right click on build.xml to run ant build problem

Posted: Thu Jan 27, 2005 6:01 pm
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

Posted: Fri Jan 28, 2005 3:11 pm
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

Posted: Fri Jan 28, 2005 3:27 pm
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.