Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Eclipse and ANT
Eclipse and ANT [message #485751] Mon, 14 September 2009 15:13 Go to next message
Anna  is currently offline Anna
Messages: 24
Registered: July 2009
Junior Member
Hi!

I got ANT recently installed in Eclipse, and it overrides my formatting
preferences for all .java files, if these files belong to web projects.
It doesn't happen for .java files from non-web projects.

Please help me to fix it.

Thanks.
Re: Eclipse and ANT [message #485972 is a reply to message #485751] Tue, 15 September 2009 14:05 Go to previous messageGo to next message
David Williams is currently offline David Williams
Messages: 176
Registered: July 2009
Senior Member
Anna wrote:
> I got ANT recently installed in Eclipse, and it overrides my formatting
> preferences for all .java files, if these files belong to web projects.
> It doesn't happen for .java files from non-web projects.

This sounds mysterious. Can you be more specific about what you mean by
"installing ANT"? Ant normally "comes with" every Eclipse installation,
so I'm wondering if you mean something other than what normally comes
with Eclipse?
Re: Eclipse and ANT [message #486417 is a reply to message #485972] Thu, 17 September 2009 10:41 Go to previous messageGo to next message
Anna  is currently offline Anna
Messages: 24
Registered: July 2009
Junior Member
Hi David!

When I installed Eclipse there was no ANT.
I installed ANT later by using somebody's link.
Now all my .java files under web projects that were created prior to
installing ANT, are not being formatted when I press ctrl+shift+F.
Newly created files are OK.
All files under non-web projects are OK.

Where can I find a brief source of information about Eclipse and ANT?

Thank you very much,
Anna
Re: Eclipse and ANT [message #486856 is a reply to message #486417] Sun, 20 September 2009 01:04 Go to previous messageGo to next message
David Williams is currently offline David Williams
Messages: 176
Registered: July 2009
Senior Member
Anna wrote:
> Hi David!
>
> When I installed Eclipse there was no ANT.
> I installed ANT later by using somebody's link.
> Now all my .java files under web projects that were created prior to
> installing ANT, are not being formatted when I press ctrl+shift+F.
> Newly created files are OK.
> All files under non-web projects are OK.
>
> Where can I find a brief source of information about Eclipse and ANT?
>
>

The eclipse Help would be one good place to get information.

http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.user/concepts/concepts-antsupport.htm

I've never heard of any problem similar to what you are having, so I
think that "ant" you installed was something pretty special. Not the
ordinary ant support. There is a concept of "stored launcher" and I know
some people have written those so that, for example, when code is
checked out from cvs, the launcher is executed and, depending on the
launcher, may do something to modify your code ... perhaps reformattng
some in this case that it things it should. But, keep in mind, I'm just
guessing. Without knowing what you really have installed, I've no idea
what's going on (well, I probably wouldn't even if I did know, since I
have only used the standard ant that comes with Eclipse SDK).

One approach, I'd advise, is for you to start over, with a clean install
of Eclipse SDK or Java EE IDE, skip the link somebody sent, and then
read the help links about the ant that is there, and see if you can
wrestle it to do what you want.

HTH
Re: Eclipse and ANT [message #486858 is a reply to message #485751] Sun, 20 September 2009 02:55 Go to previous message
Anna  is currently offline Anna
Messages: 24
Registered: July 2009
Junior Member
David, thank you very much!
Previous Topic:Re: HELP installing org.eclipse.wst.common.emf
Next Topic:Error when parsing wsdk with extn caps WSDL
Goto Forum:
  


Current Time: Wed Aug 27 07:08:04 EDT 2014

Powered by FUDForum. Page generated in 0.02146 seconds