Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Specifying compilerArg in build.properties for plugins and product build
Specifying compilerArg in build.properties for plugins and product build [message #328443] Sun, 25 May 2008 10:05 Go to next message
Ravi Roy is currently offline Ravi RoyFriend
Messages: 47
Registered: July 2009
Member
Hi,

My product consists of serveral eclipse plugins and RCP applications,
I want to build my product using eclipse compiler (I was able to
configure the compiler), but problem is that I want to pass additional
compiler arguments to the compiler for configured warnings in eclipse
IDE, some of them I want suppress and some I want to see in the
automated build.

I pass the warning levels as per below as compilerArg in build.properties :

compilerArg=-warn:+indirectStatic +constructorName +serial
+noEffectAssign +finally +charConcat +maskedCatchBlock +varargsCast
+nullDereference +typeHiding -discouraged +deprecation +forbidden
+unusedLocal +unusedImport +unusedPrivate +unnecessaryElse
+uselessTypeCheck fallthrough +unchecked +raw +finalBound +over-ann
+dep-ann +intfAnnotation +warningToken +suppress +allJavadoc

but it does not work, other compiler arguments works fine, like
javacTarget=1.6 and javacSource=1.6.

Can somebody give a clue if I am doing something wrong ? or how it can
be configured..

Thanks for pointers in advance.

Regards,
Ravi
Re: Specifying compilerArg in build.properties for plugins and product build [message #328555 is a reply to message #328443] Tue, 27 May 2008 16:31 Go to previous messageGo to next message
Ravi Roy is currently offline Ravi RoyFriend
Messages: 47
Registered: July 2009
Member
I have figured out how to specify compilerArg in build.properties, but it
works only one way either disable warnings constructs or enable warnings
constructs in compilerArg but not both on the same line.

compilerArg="-warn:+javaDoc,unused..more warning types" works fine but
what if I want to specify to disable some warning types specifying
-warn:-forbidden,discourged.

Since in build.properties only one compilerArg can be given which is read
by PDE build..

Does somebody knows how this can be achieved?
Thanks for pointers in advance.

Regards,
Ravi
Re: Specifying compilerArg in build.properties for plugins and product build [message #328825 is a reply to message #328555] Wed, 04 June 2008 14:57 Go to previous message
Ravi Roy is currently offline Ravi RoyFriend
Messages: 47
Registered: July 2009
Member
Just to inform the group it works like the following :

compilerArg="-warn:+warning to enable seperated by Comma -warn:-warning
types to disable / suppress seperated by comma"

Thanks.
Regards,
Ravi.
Previous Topic:Select All enabled in Variables View when no items are in the view?
Next Topic:Problem with FormText and focus
Goto Forum:
  


Current Time: Thu Dec 26 11:30:01 GMT 2024

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

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

Back to the top