Ant editor

I really like the ant editor that comes with IDEA. My question is, is this
ant editor hard coded to ant version 1.5.1, or is the editor flexible to
whatever version of ant I want to use? Cause currently ant 1.5.2 has been
released (though I don't know if they added any new properties, or
attributes in it), and there will also be a ant 1.6 comming out soon.

Thanks

Saumendra


0
9 comments
Avatar
Permanently deleted user

which ant-editor??? have i missed something??? do you mean the editor where you can write your xml file???

0

Once you set an .xml file to be your project's ant build file, when you edit it, IDEA will automatically use a dtd for ant build files (giving you tag completion) and will also do variable name completion. It even loads properties from external property files and includes those in the completion lists. It's pretty neat.

0
Avatar
Permanently deleted user

Saumendra,

IDEA uses reflection mechanism for ant editing. So, if main Ant classes
(e.g. Project) were not moved/renamed it should work.

--
Best regards,
Mike Aizatsky.
-


JetBrains, Inc / IntelliJ Software
http://www.intellij.com
"Develop with pleasure!"


0
Avatar
Permanently deleted user

Do not forget renaming of target/property names (S-F6) and navigation to
target/property definition (C-click or C-B)

Jacques
"Russell Egan" <russegan@email.com> wrote in message
news:33291950.1047568272158.JavaMail.jrun@is.intellij.net...

Once you set an .xml file to be your project's ant build file, when you

edit it, IDEA will automatically use a dtd for ant build files (giving you
tag completion) and will also do variable name completion. It even loads
properties from external property files and includes those in the completion
lists. It's pretty neat.


0
Avatar
Permanently deleted user

where can i set an .xml file to my project's ant build file???

0
Avatar
Permanently deleted user

If you don't already have an Ant file:
- open the Project tool window
- right click on the appropriate directory
- choose New -> File
- create a .xml file

To set the .xml file as Ant file:
- open the Ant Build tool window
- press the Add icon
- choose the .xml in the file chooser

0
Avatar
Permanently deleted user

thats how i make it! and then IDEA automatically use a dtd for these ant build files??? thats pretty cool!!!

0
Avatar
Permanently deleted user

IDEA is in general pretty cool :)

There are two things to consider:

1.) The file is only detected as an ant build file after setting it in the Ant Build tool window. So first create an empty file, set it as ant build file, then edit it.

2.) The root element (]]>) of the ant build file is not offered by completion. So if you have an empty file and type '<' then Ctrl+Space, you get 'No suggestions' (is this a bug?). But after having typed '<project ' the completion feature works pretty well.

0
Avatar
Permanently deleted user

You can also find good info there http://www.intellij.com/docs/AntIdea.pdf

Jacques
"Michael Seele" <jiveadmin@jetbrains.com> wrote in message
news:31987789.1047628587789.JavaMail.jrun@is.intellij.net...

thats how i make it! and then IDEA automatically use a dtd for these ant

build files??? thats pretty cool!!!


0

Please sign in to leave a comment.