Skip to main content



      Home
Home » Newcomers » Newcomers » How to invoke the Ant Editor on files *not* named build.xml
How to invoke the Ant Editor on files *not* named build.xml [message #27669] Thu, 17 February 2005 03:00 Go to next message
Eclipse UserFriend
Originally posted by: no.ddress.here

Contrary to what the help files seem to say, the only time Eclipse
(3.0.1 and 3.1M3) offers to open an xml file in the Ant editor is when
the file has the exact name "build.xml". For any other <name>.xml,
3.1M3 only offers a minimal "Template" editor and 3.0.1 invokes an
external browser for editing. Choosing any of the fixed alternatives
(default, system, inplace) does not invoke the Ant editor. Makes having
more than one Ant file in a directory impossible.

How do I get Eclipse to offer the Ant editor at least as an alternate
for any <name>.xml file.
Re: How to invoke the Ant Editor on files *not* named build.xml [message #27703 is a reply to message #27669] Thu, 17 February 2005 11:23 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Chris_Laffra.ca.ibm.com

Help > Preferences > General > File Associations

Add you file name (pattern) and associate it with the Ant Editor.

--
Chris Laffra, http://eclipsefaq.org


"Gerald Rosenberg" <no@ddress.here> wrote in message
news:cv1ive$kod$1@www.eclipse.org...
> Contrary to what the help files seem to say, the only time Eclipse
> (3.0.1 and 3.1M3) offers to open an xml file in the Ant editor is when
> the file has the exact name "build.xml". For any other <name>.xml,
> 3.1M3 only offers a minimal "Template" editor and 3.0.1 invokes an
> external browser for editing. Choosing any of the fixed alternatives
> (default, system, inplace) does not invoke the Ant editor. Makes having
> more than one Ant file in a directory impossible.
>
> How do I get Eclipse to offer the Ant editor at least as an alternate
> for any <name>.xml file.
Re: How to invoke the Ant Editor on files *not* named build.xml [message #27711 is a reply to message #27703] Thu, 17 February 2005 12:17 Go to previous messageGo to next message
Eclipse UserFriend
And please note that the Eclipse Ant basics tutorial in the Eclipse help
does outline this detail.
See Editing Ant buildfiles.

HTH
Darins

"Chris Laffra" <Chris_Laffra@ca.ibm.com> wrote in message
news:cv2ge1$5ot$1@www.eclipse.org...
> Help > Preferences > General > File Associations
>
> Add you file name (pattern) and associate it with the Ant Editor.
>
> --
> Chris Laffra, http://eclipsefaq.org
>
>
> "Gerald Rosenberg" <no@ddress.here> wrote in message
> news:cv1ive$kod$1@www.eclipse.org...
>> Contrary to what the help files seem to say, the only time Eclipse
>> (3.0.1 and 3.1M3) offers to open an xml file in the Ant editor is when
>> the file has the exact name "build.xml". For any other <name>.xml,
>> 3.1M3 only offers a minimal "Template" editor and 3.0.1 invokes an
>> external browser for editing. Choosing any of the fixed alternatives
>> (default, system, inplace) does not invoke the Ant editor. Makes having
>> more than one Ant file in a directory impossible.
>>
>> How do I get Eclipse to offer the Ant editor at least as an alternate
>> for any <name>.xml file.
>
>
Re: How to invoke the Ant Editor on files *not* named build.xml [message #27722 is a reply to message #27703] Thu, 17 February 2005 14:18 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: no.ddress.here

In article <cv2ge1$5ot$1@www.eclipse.org>, Chris_Laffra@ca.ibm.com
says...
> Help > Preferences > General > File Associations
>
> Add you file name (pattern) and associate it with the Ant Editor.
>
>

Got it. Thanks.
Re: How to invoke the Ant Editor on files *not* named build.xml [message #27725 is a reply to message #27711] Thu, 17 February 2005 15:07 Go to previous message
Eclipse UserFriend
Originally posted by: no.ddress.here

In article <cv2jj0$lvt$1@www.eclipse.org>, Darin_Swanson@us.ibm.com
says...
> And please note that the Eclipse Ant basics tutorial in the Eclipse help
> does outline this detail.
> See Editing Ant buildfiles.
>
> HTH
> Darins

Do appreciate the help. But, please note that I did search for it.
FWIW (trying to figure out why I missed it), searching for "ant" lists
"Editing Ant buildfiles" at only 49% relevancy and, in any event, the
page title suggests editing file contents not tool configurations. That
page is not even listed in a search for "xml". Nothing in either search
list references the concept of file associations or changing default
editors.

The only explanation I have for not noticing that Eclipse had its own
general file assocication preference page is that it is just too well
hidden in plain sight.
Previous Topic:plug-in development
Next Topic:Adding LWJGL
Goto Forum:
  


Current Time: Sun Apr 27 02:53:27 EDT 2025

Powered by FUDForum. Page generated in 0.06871 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top