Just creating more targets, IMO, clutters up the ant xml file. I didn't
realize how bad our xml file had gotten until I started using IntelliJ.
Once I tried to find the correct target out of 160 in that ant window, I
realized it was too big. So, creating more targets doesn't seem worth it
when you have a large project.
I was able to reduce the # down to a manageable size by splitting our xml
file into multiple files and using the ant tag...makes it easier to use in
Intellij.
What I have found to work well with intellij is to load up a second xml file
in intellij's ant workspace. Some of the developers here keep their own
build.xml file that contains those entries that they use. The entries
simply delegate to the original build.xml file, so changes to the official
build are reflected in individual developers 'personal' build file.
This also helps with those special targets like you mention below. Create
your own target in your own build.xml file that does:
<target name="myowntarget">
<ant antfile="build.xml" target="clean"/>
<ant antfile="build.xml" target="main"/>
</target>
This really helps clean up the build.xml file because each developer isn't
inclined to add all of his own personal targets to the main build. Very
helpful.
-- Rick
-----Original Message-----
From: Dmitri Colebatch [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 13, 2001 3:44 PM
To: '[EMAIL PROTECTED]'
Subject: Re: [Eap-list] ant support bugs/issues
speaking of ant support... not sure if this is available, but what I would
find useful, is a way of concatenating targets, the example of the
following command line:
# ant clean main
what I find myself doing is making a target called "clean-main", which
does this for me... obviously a low priority, but if a user could hold
down ctrl, and select mutiple targets in the ant window, and have them
executed a la above command line example it would be useful - to me anyway
(o:
just a suggestion
cheesr
dim
On Tue, 13 Nov 2001, Vestal, Rick wrote:
> - Only XML files can be selected from the 'Select Ant Build File' dialog
> (what if we use .ant as our build file extensions?)
>
> - Adding a second ant XML file to the ant tool window works fine, but
> whenever it automatically refreshes (while I'm editing the second xml
file),
> it expands the closed ant xml file and refreshes it and collapses the ant
> xml file that I am working on.
>
> -- Rick
>
> _______________________________________________
> Eap-list mailing list
> [EMAIL PROTECTED]
> http://www.intellij.com/mailman/listinfo/eap-list
>
_______________________________________________
Eap-list mailing list
[EMAIL PROTECTED]
http://www.intellij.com/mailman/listinfo/eap-list
_______________________________________________
Eap-list mailing list
[EMAIL PROTECTED]
http://www.intellij.com/mailman/listinfo/eap-list