Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Eclipse Ant compiler options
Eclipse Ant compiler options [message #2431] Wed, 23 April 2003 15:08 Go to next message
Eclipse UserFriend
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 messageGo to next message
Eclipse UserFriend
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 messageGo to next message
Eclipse UserFriend
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 messageGo to next message
Eclipse UserFriend
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
Re: Eclipse Ant compiler options [message #3749 is a reply to message #2713] Wed, 23 April 2003 18:03 Go to previous message
Darin Swanson is currently offline Darin SwansonFriend
Messages: 2386
Registered: July 2009
Senior Member
FYI we are working hard to get integrated support for Ant optionally on a
separate VM coming soon...
http://bugs.eclipse.org/bugs/show_bug.cgi?id=24129

Darins

"Olivier Thomann" <Olivier_Thomann@ca.ibm.comNOSPAM> wrote in message
news:l2ldavothchqmsal07o4u2hmlavkjcfss1@4ax.com...
> 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
Previous Topic:Actions to View communication
Next Topic:How to limit number of projects showing up in navigator?
Goto Forum:
  


Current Time: Sun Jun 30 13:51:55 GMT 2024

Powered by FUDForum. Page generated in 0.02976 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top