Autosave before Ant build [message #312334] |
Wed, 07 February 2007 01:39  |
Eclipse User |
|
|
|
Is there any way to configure Eclipse to automatically save changed
resources before an Ant build rather than prompting whether I'd like tosave
them? I ALWAYS want to save changed resources, and have never once had a
false alarm in this case where I've saved something I didn't want to be
saved (and if I did I could easily correct it by restoring from local
history).
I do enough builds that this small change will save a little time and a lot
of annoyance...(really :)
How could this be done? (Surely something as configurable as Eclipse makes
this easy...)
|
|
|
|
|
Re: Autosave before Ant build [message #312440 is a reply to message #312403] |
Fri, 09 February 2007 20:55  |
Eclipse User |
|
|
|
Originally posted by: varavamu.yahoo.com
This is a multi-part message in MIME format.
--------------070802040401030805030203
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
The most likely cause of this is that your xml file editor is set to the
ant editor maybe? Try editing your xml file with a different xml plugin.
thanks,
Vijay
VK wrote:
> Thanks, that worked.
>
> Another inconvenience Ant in Eclipse has is when I type ALT+SHIFT+X, Q
> (keyboard shortcut for Ant build), if I'm in any file it'll default to
> execute build.xml. However, when I'm editing an XML document (which I am
> doing a lot of nowadays) and type the keyboard shortcut, it tries to execute
> that XML file as an Ant build. Meaning that I first have to switch to a
> non-XML file before hitting the shortcut.
>
> Is there any way to tell Eclipse/Ant only to look at build.xml as an Ant
> file?
>
> Again, a slight inconvenience but it'll end up saving me so much time.
>
> Thanks.
>
>
> "Darin Swanson" <Darin_Swanson@us.ibm.com> wrote in message
> news:eqcs2t$t6k$1@utils.eclipse.org...
>
>> Window>Preferences>Launching>Save required dirty editors before
>> launching>Always
>>
>> HTH
>> Darins
>>
>> "VK" <veerukrishnan@hotmail.com> wrote in message
>> news:eqbs68$7u4$1@utils.eclipse.org...
>>
>>> Is there any way to configure Eclipse to automatically save changed
>>> resources before an Ant build rather than prompting whether I'd like
>>> tosave them? I ALWAYS want to save changed resources, and have never once
>>> had a false alarm in this case where I've saved something I didn't want
>>> to be saved (and if I did I could easily correct it by restoring from
>>> local history).
>>>
>>> I do enough builds that this small change will save a little time and a
>>> lot of annoyance...(really :)
>>>
>>> How could this be done? (Surely something as configurable as Eclipse
>>> makes this easy...)
>>>
>>>
>>
>
>
>
--------------070802040401030805030203
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
The most likely cause of this is that your xml file editor is set to
the ant editor maybe? Try editing your xml file with a different xml
plugin.<br>
<br>
thanks,<br>
Vijay<br>
<br>
VK wrote:
<blockquote cite="mid:eqgj7j$us3$1@utils.eclipse.org" type="cite">
<pre wrap="">Thanks, that worked.
Another inconvenience Ant in Eclipse has is when I type ALT+SHIFT+X, Q
(keyboard shortcut for Ant build), if I'm in any file it'll default to
execute build.xml. However, when I'm editing an XML document (which I am
doing a lot of nowadays) and type the keyboard shortcut, it tries to execute
that XML file as an Ant build. Meaning that I first have to switch to a
non-XML file before hitting the shortcut.
Is there any way to tell Eclipse/Ant only to look at build.xml as an Ant
file?
Again, a slight inconvenience but it'll end up saving me so much time.
Thanks.
"Darin Swanson" <a class="moz-txt-link-rfc2396E" href="mailto:Darin_Swanson@us.ibm.com"><Darin_Swanson@us.ibm.com></a> wrote in message
<a class="moz-txt-link-freetext" href="news:eqcs2t$t6k$1@utils.eclipse.org">news:eqcs2t$t6k$1@utils.eclipse.org</a>...
</pre>
<blockquote type="cite">
<pre wrap="">Window>Preferences>Launching>Save required dirty editors before
launching>Always
HTH
Darins
"VK" <a class="moz-txt-link-rfc2396E" href="mailto:veerukrishnan@hotmail.com"><veerukrishnan@hotmail.com></a> wrote in message
<a class="moz-txt-link-freetext" href="news:eqbs68$7u4$1@utils.eclipse.org">news:eqbs68$7u4$1@utils.eclipse.org</a>...
</pre>
<blockquote type="cite">
<pre wrap="">Is there any way to configure Eclipse to automatically save changed
resources before an Ant build rather than prompting whether I'd like
tosave them? I ALWAYS want to save changed resources, and have never once
had a false alarm in this case where I've saved something I didn't want
to be saved (and if I did I could easily correct it by restoring from
local history).
I do enough builds that this small change will save a little time and a
lot of annoyance...(really :)
How could this be done? (Surely something as configurable as Eclipse
makes this easy...)
</pre>
</blockquote>
<pre wrap="">
</pre>
</blockquote>
<pre wrap=""><!---->
</pre>
</blockquote>
</body>
</html>
--------------070802040401030805030203--
|
|
|
Powered by
FUDForum. Page generated in 0.02422 seconds