Eclipse Ant compiler options [message #2431] |
Wed, 23 April 2003 15:08 ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: scottresnik.hotmail.com
Hello:
I'm using the eclipse ant compiler(org.eclipse.jdt.core.JDTCompilerAdapter),
and I was wondering if there was a way to make that compiler use all the
same settings that I have configured in the Eclipse IDE
(under Window->Preferences->Java->Compiler).
Basically what is happening, is that my project compiles fine, but when I
run ant, I'm getting warning about unused imports and such, I have those
warnings disabled in eclipse, but ant isn't recognizing them when I run ant
through eclipse. Any ideas?
|
|
|
Re: Eclipse Ant compiler options [message #2636 is a reply to message #2431] |
Wed, 23 April 2003 16:43 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: Olivier_Thomann.ca.ibm.comNOSPAM
On Wed, 23 Apr 2003 10:08:32 -0500, "Scott Resnik"
<scottresnik@hotmail.com> wrote:
>I'm using the eclipse ant compiler(org.eclipse.jdt.core.JDTCompilerAdapter),
>and I was wondering if there was a way to make that compiler use all the
>same settings that I have configured in the Eclipse IDE
>(under Window->Preferences->Java->Compiler).
>Basically what is happening, is that my project compiles fine, but when I
>run ant, I'm getting warning about unused imports and such, I have those
>warnings disabled in eclipse, but ant isn't recognizing them when I run ant
>through eclipse. Any ideas?
This is under investigation.
http://bugs.eclipse.org/bugs/show_bug.cgi?id=25510
The current issue are when the ant task is not running on the same VM
and getting the project's settings instead of the global settings.
--
Olivier
|
|
|
Re: Eclipse Ant compiler options [message #2693 is a reply to message #2636] |
Wed, 23 April 2003 17:48 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: scottresnik.hotmail.com
Well, how bout this then, can I just replicate the same settings that I have
in the compiler preferences screen in a seperate properites file, or command
line options. Is there a source for the full complement of command line
arguments, and properties that can be set on the eclipse compiler? To me
having all that that would be just as effective as ant getting the IDE's
compiler settings.
Thanks,
Scott
"Olivier Thomann" <Olivier_Thomann@ca.ibm.comNOSPAM> wrote in message
news:6jgdavspd5k5eeeocjo8oai10jt5e20iib@4ax.com...
> On Wed, 23 Apr 2003 10:08:32 -0500, "Scott Resnik"
> <scottresnik@hotmail.com> wrote:
> >I'm using the eclipse ant
compiler(org.eclipse.jdt.core.JDTCompilerAdapter),
> >and I was wondering if there was a way to make that compiler use all the
> >same settings that I have configured in the Eclipse IDE
> >(under Window->Preferences->Java->Compiler).
> >Basically what is happening, is that my project compiles fine, but when I
> >run ant, I'm getting warning about unused imports and such, I have those
> >warnings disabled in eclipse, but ant isn't recognizing them when I run
ant
> >through eclipse. Any ideas?
> This is under investigation.
> http://bugs.eclipse.org/bugs/show_bug.cgi?id=25510
> The current issue are when the ant task is not running on the same VM
> and getting the project's settings instead of the global settings.
> --
> Olivier
|
|
|
Re: Eclipse Ant compiler options [message #2713 is a reply to message #2693] |
Wed, 23 April 2003 17:59 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: Olivier_Thomann.ca.ibm.comNOSPAM
On Wed, 23 Apr 2003 12:48:34 -0500, "Scott Resnik"
<scottresnik@hotmail.com> wrote:
>Well, how bout this then, can I just replicate the same settings that I have
>in the compiler preferences screen in a seperate properites file, or command
>line options. Is there a source for the full complement of command line
>arguments, and properties that can be set on the eclipse compiler? To me
>having all that that would be just as effective as ant getting the IDE's
>compiler settings.
You can patch the source. This is trivial. But using a property file
can be a good idea as long as we don't have a good solution for ant
scripts that run on a separate VM.
I will investigate it.
--
Olivier
|
|
|
|
Powered by
FUDForum. Page generated in 0.04305 seconds