-auxclasspath question

View: New views
5 Messages — Rating Filter:   Alert me  

-auxclasspath question

by Tim.Kelly :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

-auxclasspath question

Hi - I'm running the following command to run findbugs on eclipse plugins:

C:\temp\findbugs-1.3.4\findbugs-1.3.4\bin\findbugs.bat -textui -high -auxclasspath c:\temp\findBugs_test\Product_Layout\eclipse\plugins -html -include c:\temp\findBugs_test\plugins\findBugsFilterRules.xml c:\temp\findBugs_test\plugins\ > results.html

Where:

1) -auxclasspath - Is the location of my full completed build (a fully eclipse installation)
And
2) c:\temp\findBugs_test\plugins\

Is the workspace location with all my sources and build .class files from a PDE build

The problem I have is that I'm getting "Missing classes: 1364" at the end of my run.
However, some of these are real (which exist under the -auxclasspath) and some are bogus: they do exist under the test folder (c:\temp\findBugs_test\plugins)

Am I somehow using auxclasspath incorrectly?

Also, here the contents of my -include file

<FindBugsFilter>
     <!-- Match all the following pattern violations. -->
     <Match>
       <Bug pattern="RV_RETURN_VALUE_IGNORED,NP_NULL_ON_SOME_PATH,NP_ALWAYS_NULL,HE_EQUALS_USE_HASHCODE,DLS_DEAD_LOCAL_STORE,LI_LAZY_INIT_UPDATE_STATIC" />

        <Priority value="1" />
     </Match>
</FindBugsFilter>

Thanks,
Tim


_______________________________________________
Findbugs-discuss mailing list
Findbugs-discuss@...
https://mailman.cs.umd.edu/mailman/listinfo/findbugs-discuss

Parent Message unknown Re: -auxclasspath question

by Dave Brosius-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Does

c:\temp\findBugs_test\Product_Layout\eclipse\plugins

have classes in there (where plugin is the classpath root, or are there plugin jar files in that directory?

If jars, you need to individually add them to the path

-----Original Message-----
From: Tim.Kelly@...
Sent: Thursday, June 26, 2008 11:49am
To: findbugs-discuss@...
Subject: [FB-Discuss] -auxclasspath question

_______________________________________________
Findbugs-discuss mailing list
Findbugs-discuss@...
https://mailman.cs.umd.edu/mailman/listinfo/findbugs-discuss
Hi - I'm running the following command to run findbugs on eclipse
plugins:

C:\temp\findbugs-1.3.4\findbugs-1.3.4\bin\findbugs.bat -textui -high
-auxclasspath c:\temp\findBugs_test\Product_Layout\eclipse\plugins -html
-include c:\temp\findBugs_test\plugins\findBugsFilterRules.xml
c:\temp\findBugs_test\plugins\ > results.html

Where:

1) -auxclasspath - Is the location of my full completed build (a fully
eclipse installation)
And
2) c:\temp\findBugs_test\plugins\

Is the workspace location with all my sources and build .class files
from a PDE build

The problem I have is that I'm getting "Missing classes: 1364" at the
end of my run.
However, some of these are real (which exist under the -auxclasspath)
and some are bogus: they do exist under the test folder
(c:\temp\findBugs_test\plugins)

Am I somehow using auxclasspath incorrectly?

Also, here the contents of my -include file

<FindBugsFilter>
     <!-- Match all the following pattern violations. -->
     <Match>
       <Bug
pattern="RV_RETURN_VALUE_IGNORED,NP_NULL_ON_SOME_PATH,NP_ALWAYS_NULL,HE_
EQUALS_USE_HASHCODE,DLS_DEAD_LOCAL_STORE,LI_LAZY_INIT_UPDATE_STATIC" />
  <Priority value="1" />
     </Match>
</FindBugsFilter>

Thanks,
Tim



_______________________________________________
Findbugs-discuss mailing list
Findbugs-discuss@...
https://mailman.cs.umd.edu/mailman/listinfo/findbugs-discuss

Re: -auxclasspath question

by Tim.Kelly :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


 Hi - Thanks for all the replies! I was able to add one jar to the
-auxclasspath and it reduced the # of missing classes.
However, I don't know the syntax to add multiple jars. I tried
comma-delimiter, quotes, spaces and nothing works.

Does someone have an example of how to add multiple jars to the
-auxclasspath option?

I did try to create a .fbp file from the GUI but I never saw any way to
do this (but I'm not sure that's a viable option because our jars will
change name every night with version info).
It would be really nice if somehow you could add the paramaters to a
temp file so as not have to worry about cmd-line legth limitations.

Cheers,
Tim

>-----Original Message-----
>From: ext Dave Brosius [mailto:dbrosius@...]
>Sent: Thursday, June 26, 2008 12:29 PM
>To: Kelly Tim (Nokia-D-MSW/Austin)
>Cc: findbugs-discuss@...
>Subject: RE: [FB-Discuss] -auxclasspath question
>
>Does
>
>c:\temp\findBugs_test\Product_Layout\eclipse\plugins
>
>have classes in there (where plugin is the classpath root, or
>are there plugin jar files in that directory?
>
>If jars, you need to individually add them to the path
>
>-----Original Message-----
>From: Tim.Kelly@...
>Sent: Thursday, June 26, 2008 11:49am
>To: findbugs-discuss@...
>Subject: [FB-Discuss] -auxclasspath question
>
>_______________________________________________
>Findbugs-discuss mailing list
>Findbugs-discuss@...
>https://mailman.cs.umd.edu/mailman/listinfo/findbugs-discuss
>Hi - I'm running the following command to run findbugs on eclipse
>plugins:
>
>C:\temp\findbugs-1.3.4\findbugs-1.3.4\bin\findbugs.bat -textui
>-high -auxclasspath
>c:\temp\findBugs_test\Product_Layout\eclipse\plugins -html
>-include c:\temp\findBugs_test\plugins\findBugsFilterRules.xml
>c:\temp\findBugs_test\plugins\ > results.html
>
>Where:
>
>1) -auxclasspath - Is the location of my full completed build
>(a fully eclipse installation) And
>2) c:\temp\findBugs_test\plugins\
>
>Is the workspace location with all my sources and build .class
>files from a PDE build
>
>The problem I have is that I'm getting "Missing classes: 1364"
>at the end of my run.
>However, some of these are real (which exist under the
>-auxclasspath) and some are bogus: they do exist under the test folder
>(c:\temp\findBugs_test\plugins)
>
>Am I somehow using auxclasspath incorrectly?
>
>Also, here the contents of my -include file
>
><FindBugsFilter>
>     <!-- Match all the following pattern violations. -->
>     <Match>
>       <Bug
>pattern="RV_RETURN_VALUE_IGNORED,NP_NULL_ON_SOME_PATH,NP_ALWAYS
>_NULL,HE_
>EQUALS_USE_HASHCODE,DLS_DEAD_LOCAL_STORE,LI_LAZY_INIT_UPDATE_STATIC" />
> <Priority value="1" />
>     </Match>
></FindBugsFilter>
>
>Thanks,
>Tim
>
>
>

_______________________________________________
Findbugs-discuss mailing list
Findbugs-discuss@...
https://mailman.cs.umd.edu/mailman/listinfo/findbugs-discuss

Re: -auxclasspath question

by Dave Brosius-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

auxClasspath

An optional nested element which specifies a classpath (Jar files or
directories) containing classes used by the analyzed library or application,
but which you don't want to analyze. It is specified the same way as Ant's
classpath element for the Java task.

Which is semicolons

----- Original Message -----
From: <Tim.Kelly@...>
To: <findbugs-discuss@...>
Sent: Thursday, June 26, 2008 4:40 PM
Subject: Re: [FB-Discuss] -auxclasspath question


>
> Hi - Thanks for all the replies! I was able to add one jar to the
> -auxclasspath and it reduced the # of missing classes.
> However, I don't know the syntax to add multiple jars. I tried
> comma-delimiter, quotes, spaces and nothing works.
>
> Does someone have an example of how to add multiple jars to the
> -auxclasspath option?
>
> I did try to create a .fbp file from the GUI but I never saw any way to
> do this (but I'm not sure that's a viable option because our jars will
> change name every night with version info).
> It would be really nice if somehow you could add the paramaters to a
> temp file so as not have to worry about cmd-line legth limitations.
>
> Cheers,
> Tim
>
>>-----Original Message-----
>>From: ext Dave Brosius [mailto:dbrosius@...]
>>Sent: Thursday, June 26, 2008 12:29 PM
>>To: Kelly Tim (Nokia-D-MSW/Austin)
>>Cc: findbugs-discuss@...
>>Subject: RE: [FB-Discuss] -auxclasspath question
>>
>>Does
>>
>>c:\temp\findBugs_test\Product_Layout\eclipse\plugins
>>
>>have classes in there (where plugin is the classpath root, or
>>are there plugin jar files in that directory?
>>
>>If jars, you need to individually add them to the path
>>
>>-----Original Message-----
>>From: Tim.Kelly@...
>>Sent: Thursday, June 26, 2008 11:49am
>>To: findbugs-discuss@...
>>Subject: [FB-Discuss] -auxclasspath question
>>
>>_______________________________________________
>>Findbugs-discuss mailing list
>>Findbugs-discuss@...
>>https://mailman.cs.umd.edu/mailman/listinfo/findbugs-discuss
>>Hi - I'm running the following command to run findbugs on eclipse
>>plugins:
>>
>>C:\temp\findbugs-1.3.4\findbugs-1.3.4\bin\findbugs.bat -textui
>>-high -auxclasspath
>>c:\temp\findBugs_test\Product_Layout\eclipse\plugins -html
>>-include c:\temp\findBugs_test\plugins\findBugsFilterRules.xml
>>c:\temp\findBugs_test\plugins\ > results.html
>>
>>Where:
>>
>>1) -auxclasspath - Is the location of my full completed build
>>(a fully eclipse installation) And
>>2) c:\temp\findBugs_test\plugins\
>>
>>Is the workspace location with all my sources and build .class
>>files from a PDE build
>>
>>The problem I have is that I'm getting "Missing classes: 1364"
>>at the end of my run.
>>However, some of these are real (which exist under the
>>-auxclasspath) and some are bogus: they do exist under the test folder
>>(c:\temp\findBugs_test\plugins)
>>
>>Am I somehow using auxclasspath incorrectly?
>>
>>Also, here the contents of my -include file
>>
>><FindBugsFilter>
>>     <!-- Match all the following pattern violations. -->
>>     <Match>
>>       <Bug
>>pattern="RV_RETURN_VALUE_IGNORED,NP_NULL_ON_SOME_PATH,NP_ALWAYS
>>_NULL,HE_
>>EQUALS_USE_HASHCODE,DLS_DEAD_LOCAL_STORE,LI_LAZY_INIT_UPDATE_STATIC" />
>> <Priority value="1" />
>>     </Match>
>></FindBugsFilter>
>>
>>Thanks,
>>Tim
>>
>>
>>
>
> _______________________________________________
> Findbugs-discuss mailing list
> Findbugs-discuss@...
> https://mailman.cs.umd.edu/mailman/listinfo/findbugs-discuss 

_______________________________________________
Findbugs-discuss mailing list
Findbugs-discuss@...
https://mailman.cs.umd.edu/mailman/listinfo/findbugs-discuss

Re: -auxclasspath question

by Tim.Kelly :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


 Thanks Dave, that gets it. I'm an Ant newbie so I missed that bit.
Great URL  - mebigfatguy. I just had to check it : ) I wasn't expecting
to find anything useful, but lots of great new rules to try out!

Cheers,
Tim

>-----Original Message-----
>From: ext Dave Brosius [mailto:dbrosius@...]
>Sent: Thursday, June 26, 2008 12:29 PM
>To: Kelly Tim (Nokia-D-MSW/Austin)
>Cc: findbugs-discuss@...
>Subject: RE: [FB-Discuss] -auxclasspath question
>
>Does
>
>c:\temp\findBugs_test\Product_Layout\eclipse\plugins
>
>have classes in there (where plugin is the classpath root, or
>are there plugin jar files in that directory?
>
>If jars, you need to individually add them to the path
>
>-----Original Message-----
>From: Tim.Kelly@...
>Sent: Thursday, June 26, 2008 11:49am
>To: findbugs-discuss@...
>Subject: [FB-Discuss] -auxclasspath question
>
>_______________________________________________
>Findbugs-discuss mailing list
>Findbugs-discuss@...
>https://mailman.cs.umd.edu/mailman/listinfo/findbugs-discuss
>Hi - I'm running the following command to run findbugs on eclipse
>plugins:
>
>C:\temp\findbugs-1.3.4\findbugs-1.3.4\bin\findbugs.bat -textui
>-high -auxclasspath
>c:\temp\findBugs_test\Product_Layout\eclipse\plugins -html
>-include c:\temp\findBugs_test\plugins\findBugsFilterRules.xml
>c:\temp\findBugs_test\plugins\ > results.html
>
>Where:
>
>1) -auxclasspath - Is the location of my full completed build
>(a fully eclipse installation) And
>2) c:\temp\findBugs_test\plugins\
>
>Is the workspace location with all my sources and build .class
>files from a PDE build
>
>The problem I have is that I'm getting "Missing classes: 1364"
>at the end of my run.
>However, some of these are real (which exist under the
>-auxclasspath) and some are bogus: they do exist under the test folder
>(c:\temp\findBugs_test\plugins)
>
>Am I somehow using auxclasspath incorrectly?
>
>Also, here the contents of my -include file
>
><FindBugsFilter>
>     <!-- Match all the following pattern violations. -->
>     <Match>
>       <Bug
>pattern="RV_RETURN_VALUE_IGNORED,NP_NULL_ON_SOME_PATH,NP_ALWAYS
>_NULL,HE_
>EQUALS_USE_HASHCODE,DLS_DEAD_LOCAL_STORE,LI_LAZY_INIT_UPDATE_STATIC" />
> <Priority value="1" />
>     </Match>
></FindBugsFilter>
>
>Thanks,
>Tim
>
>
>

_______________________________________________
Findbugs-discuss mailing list
Findbugs-discuss@...
https://mailman.cs.umd.edu/mailman/listinfo/findbugs-discuss
LightInTheBox - Buy quality products at wholesale price