求教关于Ant find bugs异常

问题描述

今天用MyEclipse8.0做Antfindbugs运行现在报错啊findbugs:[echo]==========begintoscanwithFindbugs!==========[findbugs]Executingfindbugsfromanttask[findbugs]RunningFindBugs...[findbugs]Ignoring.javafile"E:workspaceSVNtrunkproject1sourcecncomcmbctestUtil.java;E:workspaceSVNtrunkproject1unSourcecncomcmbctestBinarySearchTestTheories.java"specifiedinclasspathorauxclasspath[findbugs]Exceptioninthread"main"java.io.FileNotFoundException:E:workspaceSVNtrunkproject1build-outputFile(ϵͳ�Ҳ���ָ�����ļ���)[findbugs]atjava.util.zip.ZipFile.open(NativeMethod)[findbugs]atjava.util.zip.ZipFile.<init>(ZipFile.java:114)[findbugs]atjava.util.zip.ZipFile.<init>(ZipFile.java:131)[findbugs]atedu.umd.cs.findbugs.classfile.impl.ZipFileCodeBase.<init>(ZipFileCodeBase.java:53)[findbugs]atedu.umd.cs.findbugs.classfile.impl.ZipCodeBaseFactory.countUsingZipFile(ZipCodeBaseFactory.java:92)[findbugs]atedu.umd.cs.findbugs.classfile.impl.ZipCodeBaseFactory.makeZipCodeBase(ZipCodeBaseFactory.java:46)[findbugs]atedu.umd.cs.findbugs.classfile.impl.ClassFactory.createFilesystemCodeBase(ClassFactory.java:97)[findbugs]atedu.umd.cs.findbugs.classfile.impl.FilesystemCodeBaseLocator.openCodeBase(FilesystemCodeBaseLocator.java:75)[findbugs]atedu.umd.cs.findbugs.classfile.impl.ClassPathBuilder.processWorkList(ClassPathBuilder.java:564)[findbugs]atedu.umd.cs.findbugs.classfile.impl.ClassPathBuilder.build(ClassPathBuilder.java:195)[findbugs]atedu.umd.cs.findbugs.FindBugs2.buildClassPath(FindBugs2.java:584)[findbugs]atedu.umd.cs.findbugs.FindBugs2.execute(FindBugs2.java:181)[findbugs]atedu.umd.cs.findbugs.FindBugs.runMain(FindBugs.java:348)[findbugs]atedu.umd.cs.findbugs.FindBugs2.main(FindBugs2.java:1057)[findbugs]JavaResult:1[findbugs]Outputsavedtoe:findbugs-report.html[echo]==========scanwithFindbugsover!==========

解决方案

解决方案二:
只是运行的程序<!--=================================FINDBUGS=================================--><pathid="findbugs.path"><filesetdir="..buildlibfindbugs-1.3.9lib"><includename="findbugs-ant.jar"/></fileset></path><taskdefname="findbugs"classname="edu.umd.cs.findbugs.anttask.FindBugsTask"classpathref="findbugs.path"/><targetname="findbugs"depends="compile"><echomessage="==========begintoscan${project.name}withFindbugs!=========="/><findbugshome="${findbugs.home}"output="html"outputFile="e:findbugs-report.html"timeout="${findbugs.timeout}"jvmargs="${findbugs.jvmargs}"failonerror="true"><!--=================================INSERTYOURCODEHERE=================================--><!--thefollowingelemnetsareobliged--><classlocation="..buildlib*.jar"/><auxClasspath><filesetdir="lib"><includename="..buildlib*.jar"/></fileset></auxClasspath><sourcePathpath="..sourcecncomcmbctestUtil.java"/><sourcePathpath="..unSourcecncomcmbctestBinarySearchTestTheories.java"/><sourcePathpath="..unSourcecncomcmbctestBinarySearchTestTheories.java"/></findbugs><echomessage="==========scan${project.name}withFindbugsover!=========="/></target>
解决方案三:
java.io.FileNotFoundException:E:workspaceSVNtrunkproject1build-outputFile檢查一下這個路徑和檔案。
解决方案四:
引用2楼kebin0001的回复:

java.io.FileNotFoundException:E:workspaceSVNtrunkproject1build-outputFile檢查一下這個路徑和檔案。

build路径下没有outputFile这文件

时间: 2024-07-28 17:30:44

求教关于Ant find bugs异常的相关文章

求教:System.Web.HttpUnhandledException”的异常

问题描述 各位,以下问题怎么解决,下面是错误源码:<html><head><title>未将对象引用设置到对象的实例.</title><style>body{font-family:"Verdana";font-weight:normal;font-size:.7em;color:black;}p{font-family:"Verdana";font-weight:normal;color:black;ma

求教:ant中如何判断target任务运行失败

问题描述 大家好,我现在用ant做持续集成开发.有个target任务用来做代码编译的compilecode任务,有以下需求:如果编译成功,则运行copyfile(拷贝配置文件)target任务:如果编译失败,则运行versionManage(源代码版本管理)target任务.我了解到ant的condition标签,if标签和unless标签可以用来做条件判断,但是了解不深,望哪位能指点指点.谢谢大家.

一个未能加载文件或程序集异常 :求教

问题描述 一个未能加载文件或程序集异常 :求教 在 System.Configuration.ConfigurationErrorsException 中第一次偶然出现的"System.Configuration.dll"类型的异常 在 System.Configuration.ConfigurationErrorsException 中第一次偶然出现的"System.Configuration.dll"类型的异常 log4net:ERROR Failed to p

mysql-初学JDBC连接MYSQL数据库,出现一个异常,求教,在线等

问题描述 初学JDBC连接MYSQL数据库,出现一个异常,求教,在线等 首先贴下拿来做试验的数据库,证明我数据库名没写错?d-7test 用户名,密码也没错耶 再来贴下代码: jar包也是加了的: 最后红条,报了这个错: 解决方案 Classpath中有没有包含你的mtsql驱动jar包? 解决方案二: getConnection里头不要写"url:"啊!,直接jdbc:mysql.... 解决方案三: 你的connect配置不对 解决方案四: 检查路径下有没有mysql-jdbc的j

异常-求教关于listview内edittext点击修改内容的问题

问题描述 求教关于listview内edittext点击修改内容的问题 我现在在做一个listview, 想要实现的效果是:点击每个item一下,可以默认选中不带后缀名的内容,如点击内容为"pic.jpg"会选中"pic",并且键盘弹出可进行内容修改 我在listview的item里放的是edittext,并在adapter里对edittext进行了setOnFocusChangeListener的监听,为的是能点击后直接选中不带后缀名的字符串内容 但问题是,运行后

实例-求教C#大神,“System.Exception”异常

问题描述 求教C#大神,"System.Exception"异常 "System.Exception"类型的未经处理的异常在 DBUtility.dll 中发生 其他信息: 在与 SQL Server 建立连接时出现与网络相关的或特定于实例的错误.未找到或无法访问服务器.请验证实例名称是否正确并且 SQL Server 已配置为允许远程连接. (provider: 命名管道提供程序, error: 40 - 无法打开到 SQL Server 的连接) 代码: pub

ant+ivy编译工程的时候,下包下失败,求教!

问题描述 ant+ivy编译工程的时候,下包下失败,求教! 解决方案 Ant Ivy

在线求教JPA中emf.createEntityManager()的异常

问题描述 emf.createEntityManager()这句报了异常.异常信息如下:严重:com.sun.appserv.connectors.internal.api.ConnectorRuntimeException:ErrorincreatingactiveRARatcom.sun.enterprise.connectors.ActiveRAFactory.createActiveResourceAdapter(ActiveRAFactory.java:104)atcom.sun.en

调用 Ant api 出现Compile failed; see the compiler error output for details异常

问题描述 [color=red][color=red]该方法是把d:/generator-output/hibernate/code/这个文件夹下的多个.java编译为.class文件[/color][/color]但是出现Compile failed; see the compiler error output for details异常,希望大家帮忙解决,谢了public boolean sourceConvertClass() {boolean flag = false;File f =