how to run two exec tasks within the same command shell
the two executable file, one is called "setENV.cmd", the other is called "doThings.exe". in the windows command console, the "setENV.cmd" is used to setup the environment, and it must be run first, then the "doThings.exe" can be run. or not, "doThings.exe" can't work. the manual operation works well, because we can type the two commands within the SAME command console. but while i run them in the ant script by exec task, there is problem., the build.xml snippet is as follow: while i execute the target, i am sure the "setENV.cmd" is run well, but the "doThings.exe" can't work well, that means the two exec tasks are not run within the same command shell, who can tell me how to config the ant to run the two exec tasks within the same shell? Thanks -- View this message in context: http://www.nabble.com/how-to-run-two-exec-tasks-within-the-same-command-shell-tp22116826p22116826.html Sent from the Ant - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org
Re: Ant version for linux
On 2009-02-19, meher03 wrote: > Qs: Will Ant 1.7.1 binary downloaded from the Apache ant website work on > linux box. as a blanket question, the blanket answer is YES. Ant is way more dependent on the Java VM that is executing it than the operation system and there are many JVMs available for Linux that are known to work well for Ant. This includes all Sun VMs (version 1.3.x or higher required for Ant), IBM's VMs, OpenJDK and Iced Tea - I'm not sure about the state of Apache Harmony (note I'm using "Java VM" in a loose technical not in a legal way since neither Iced Tea nor Harmony could call themselves "Java" AFAIK). > The following is the output : > dalesbdev03::/app/ant/bin-> ./ant -version > java version "1.4.2" > gcj (GCC) 3.4.6 20060404 (Red Hat 3.4.6-10) gcj is not a primary target for Ant. If we receive patches to make Ant work better on gcj, we apply them, but it may cause trouble in unexpected ways. I recommend turning to a different VM - in case you prefer a "free" as in FSF's definition VM take a look at OpenJDK or Iced Tea. http://openjdk.java.net/ http://openjdk.java.net/projects/jdk6/ http://icedtea.classpath.org/wiki/Main_Page > The above does not show which version of ant is running ... It would if you didn't use gcj. Stefan - To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org
AW: how to run two exec tasks within the same command shell
>the two executable file, one is called "setENV.cmd", the other is called "doThings.exe". >in the windows command console, the "setENV.cmd" is used to setup the >environment, and it must be run first, then the "doThings.exe" can be run. >or not, "doThings.exe" can't work. the manual operation works well, because >we can type the two commands within the SAME command console. >but while i run them in the ant script by exec task, there is problem., the >build.xml snippet is as follow: > > > > > > > > > >while i execute the target, i am sure the "setENV.cmd" is run >well, but the "doThings.exe" can't work well, >that means the two exec tasks are not run within the same >command shell, who can tell me how to config the ant to run the two exec tasks >within the same shell? starts a new thread/process. Therefore you cant process two 'executables' in the same . What you could do is a workaround: - create a batch file with all invokations - call the batch Jan - To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org
javac error
error information: [javac] /home/print/cur_branch/regular/Core/src/com/netease/print/dao/impl/cache/AbstractDaoCacheImpl.java:22: 无法确定 T 的类型参数;对于上限为 T,java.lang.Object 的类型变量 T,不存在唯一最大实例 [javac] return RequestScopeCacheHolder.getCache().getObject(this.getKeyPrefix(), subKey); "无法确定 T 的类型参数;对于上限为 T,java.lang.Object 的类型变量 T,不存在唯一最大实例"--"can't define T's type parameter,for variable T in java.lang.Object type which upper limit is T,hasn't unique most instance" jdk version is 1.5,ant version is 1.7,and build.xml: -- View this message in context: http://www.nabble.com/javac-error-tp22117945p22117945.html Sent from the Ant - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org
I want to send (explicit) quiet output to the screen and (automatic) verbose output to a log file
Hi I am writing an installation program using Ant. Currently I am running my program in quiet mode. This way, I can send user information requests [input] to the screen as well as [echo] specific information that I want the user to see. I can also send other debugging and logging information to various log files. This is all easy. I have written a couple of simple macros, which makes it even easier and gives me more control. I want to know if there is an easy and automatic way to at the same time as the above, send the automatically generated verbose information to a log file, without sending it to the screen. For example a replace task generates some verbose information (and a summary), that I want sent to the log file, but not the screen. I could manually echo some info to the log, e.g. the token and the value for example. I have to problems with this: 1) It is manual, not automatic 2) I don't have access to that internal verbose information, for example the replace summary. [replace] Replaced 6 occurrences in 0 files. I know that you can override the logger. I have looked for a logger that does what I want, but not found anything yet. Can anyone recommend one and some tips or examples of how to get it to do what I want it too? It seems like Log4J could be setup to do this, but it looks a bit complicated. I am also already using AntXtras for things like variables and looping tasks. If you are not using AntXtras, yet, I highly recommend this, it fills a lot of the gaps in Ant and is really easy to use. I see AntXtras has some special support for Log4J, but I have not looked into this yet. Perhaps someone can give me some pointers on how to use AntXtras to do the type of logging that I need. I don't have any Java experience, so I am not in a position to be able to do my own implementation. I would even settle for a script internal task to manually switch between verbose logging to file and quiet logging to the screen, as and when I want to switch. Any help will be much appreciated. Best Regards Dylan
AW: I want to send (explicit) quiet output to the screen and (automatic) verbose output to a log file
>I am writing an installation program using Ant. Currently I am running my >program in quiet mode. This way, I can send user information requests >[input] to the screen as well as [echo] specific information that I want the >user to see. I can also send other debugging and logging information to >various log files. > >This is all easy. I have written a couple of simple macros, which makes it >even easier and gives me more control. > >I want to know if there is an easy and automatic way to at the same time as >the above, send the automatically generated verbose information to a log >file, without sending it to the screen. For example a replace task generates >some verbose information (and a summary), that I want sent to the log file, >but not the screen. > >I could manually echo some info to the log, e.g. the token and the value for >example. I have to problems with this: >1) It is manual, not automatic >2) I don't have access to that internal verbose information, >for example the >replace summary. [replace] Replaced 6 occurrences in 0 files. > >I know that you can override the logger. I have looked for a >logger that >does what I want, but not found anything yet. Can anyone >recommend one and >some tips or examples of how to get it to do what I want it >too? It seems >like Log4J could be setup to do this, but it looks a bit complicated. > >I am also already using AntXtras for things like variables and looping >tasks. If you are not using AntXtras, yet, I highly recommend >this, it fills >a lot of the gaps in Ant and is really easy to use. I see >AntXtras has some >special support for Log4J, but I have not looked into this yet. Perhaps >someone can give me some pointers on how to use AntXtras to do >the type of >logging that I need. > >I don't have any Java experience, so I am not in a position to >be able to do >my own implementation. > >I would even settle for a script internal task to manually >switch between >verbose logging to file and quiet logging to the screen, as >and when I want >to switch. Basically you use multiple loggers and different loglevels. The DefaultLogger for printing to STDOUT with ECHO level and the FileLogger for DEBUG level. When using Log4J you have the most control about the output. Using Log4J is not complicated: $ant -listener org.apache.tools.ant.listener.Log4jListener -Dlog4j.configuration=log4j.properties lgo4j.properties # Configuration Appender "STDOUT" log4j.appender.STDOUT=org.apache.log4j.ConsoleAppender log4j.appender.STDOUT.layout=org.apache.log4j.PatternLayout log4j.appender.STDOUT.layout.ConversionPattern=%m%n log4j.appender.STDOUT.threshold=WARN # Configuration Appender "FILE" log4j.appender.FILE=org.apache.log4j.FileAppender log4j.appender.FILE.layout=org.apache.log4j.PatternLayout log4j.appender.FILE.layout.ConversionPattern=%-5p (%F:%L): %m%n log4j.appender.FILE.file=ant.log # Which Appender to where? log4j.rootLogger=DEBUG, STDOUT, FILE When writing an installer - I think there are some on the market http://antinstaller.sourceforge.net/ Jan - To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org
RE: javac error
Yang- is a placeholder you need to supply a REAL datatype such as or or Regards Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. > Date: Fri, 20 Feb 2009 02:03:27 -0800 > From: yangxian1...@hotmail.com > To: user@ant.apache.org > Subject: javac error > > > error information: > [javac] > /home/print/cur_branch/regular/Core/src/com/netease/print/dao/impl/cache/AbstractDaoCacheImpl.java:22: > 无法确定 T 的类型参数;对于上限为 T,java.lang.Object 的类型变量 T,不存在唯一最大实例 > [javac] return > RequestScopeCacheHolder.getCache().getObject(this.getKeyPrefix(), subKey); > "无法确定 T 的类型参数;对于上限为 T,java.lang.Object 的类型变量 T,不存在唯一最大实例"--"can't > define T's type parameter,for variable T in java.lang.Object type which > upper limit is T,hasn't unique most instance" > > > jdk version is 1.5,ant version is 1.7,and build.xml: > > > source="1.5" target="1.5" debug="true" deprecation="false" optimize="false" > failonerror="true" fork="true"> > > > > > > > > > > > > > > > > > > -- > View this message in context: > http://www.nabble.com/javac-error-tp22117945p22117945.html > Sent from the Ant - Users mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: user-unsubscr...@ant.apache.org > For additional commands, e-mail: user-h...@ant.apache.org > _ Windows Live™: E-mail. Chat. Share. Get more ways to connect. http://windowslive.com/explore?ocid=TXT_TAGLM_WL_t2_allup_explore_022009
RE: I want to send (explicit) quiet output to the screen and (automatic) verbose output to a log file
commons-logging is what you're looking for ..doc is available at http://commons.apache.org/logging/ Download it and read the doc on how to deploy at http://commons.apache.org/logging/commons-logging-1.1.1/guide.html#Creating%20a%20Log%20Implementation edit the simplelogging.properties configuration file contains configuration options org.apache.commons.logging.impl.SimpleLog class specifically you need to set these options org.apache.commons.logging.simplelog.defaultlog - Default logging detail level for all instances of SimpleLog. Must be one of: tracedebuginfowarnerrorfatal If not specified, defaults to info. org.apache.commons.logging.simplelog.log.x - Logging detail level for a SimpleLog instance named "x". Must be one of: tracedebuginfowarnerrorfatal If not specified, the default logging detail level is used.org.apache.commons.logging.simplelog.showlogname - Set to true if you want the Log instance name to be included in output messages. Defaults to false.org.apache.commons.logging.simplelog.showShortLogname - Set to true if you want the last component of the name to be included in output messages. Defaults to true.org.apache.commons.logging.simplelog.showdatetime - Set to true if you want the current date and time to be included in output messages. Default is false.org.apache.commons.logging.simplelog.dateTimeFormat - The date and time format to be used in the output messages. The pattern describing the date and time format is the same that is used in java.text.SimpleDateFormat. If the format is not specified or is invalid, the default format is used. The default format is /MM/dd HH:mm:ss:SSS zzz. Place simplelogging.properties configuration in same location as commons-logging.jar (usually in WEB-INF/lib folder) and everything will work after reloading your webapp if not unzip jar contents to WEB-INF/classes and place a copy of simplelogging.properties there Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. > Date: Fri, 20 Feb 2009 13:10:20 +0200 > Subject: I want to send (explicit) quiet output to the screen and (automatic) > verbose output to a log file > From: dylan.fa...@gmail.com > To: user@ant.apache.org > > Hi > I am writing an installation program using Ant. Currently I am running my > program in quiet mode. This way, I can send user information requests > [input] to the screen as well as [echo] specific information that I want the > user to see. I can also send other debugging and logging information to > various log files. > > This is all easy. I have written a couple of simple macros, which makes it > even easier and gives me more control. > > I want to know if there is an easy and automatic way to at the same time as > the above, send the automatically generated verbose information to a log > file, without sending it to the screen. For example a replace task generates > some verbose information (and a summary), that I want sent to the log file, > but not the screen. > > I could manually echo some info to the log, e.g. the token and the value for > example. I have to problems with this: > 1) It is manual, not automatic > 2) I don't have access to that internal verbose information, for example the > replace summary. [replace] Replaced 6 occurrences in 0 files. > > I know that you can override the logger. I have looked for a logger that > does what I want, but not found anything yet. Can anyone recommend one and > some tips or examples of how to get it to do what I want it too? It seems > like Log4J could be setup to do this, but it looks a bit complicated. > > I am also already using AntXtras for things like variables and looping > tasks. If you are not using AntXtras, yet, I highly recommend this, it fills > a lot of the gaps in Ant and is really easy to use. I see AntXtras has some > special support for Log4J, but I have not looked into this yet. Perhaps > someone can give me some pointers on how to use AntXtras to do the type of > logging that I need. > > I don't have any Java experience, so I am not in a position to be able to do > my own implementation. > > I would even settle for a script internal task to manually switch between > verbose logging to file and quiet logging to the screen, as and when I want > to switch. > > Any help will be much appreciated. > Best Regards > Dylan _ Windows Live™: E-mail. Chat. Share. Get more ways to connect. http://windowslive.com/online/hotmail?ocid=TXT_TAGLM_WL_HM_AE_Faster_022009
RE: how to run two exec tasks within the same command shell
Out of curiosity, is it even possible to fix ANT to prevent this workaround? ANT is Java based, so it is a general Java question, "Can Java launch a single process and then feed commands to that same process so that subsequent commands are affected by the prior commands?" If it isn't even possible to do this in Java, then I don't have to bother submitting an enhancement request to ANT. This would also solve my other problem which I posted a few days ago about running a series of setupEnv.bat commands before invoking a Java command. --- Shawn Castrianni -Original Message- From: jan.mate...@rzf.fin-nrw.de [mailto:jan.mate...@rzf.fin-nrw.de] Sent: Friday, February 20, 2009 3:14 AM To: user@ant.apache.org Subject: AW: how to run two exec tasks within the same command shell >the two executable file, one is called "setENV.cmd", the other is called "doThings.exe". >in the windows command console, the "setENV.cmd" is used to setup the >environment, and it must be run first, then the "doThings.exe" can be run. >or not, "doThings.exe" can't work. the manual operation works well, because >we can type the two commands within the SAME command console. >but while i run them in the ant script by exec task, there is problem., the >build.xml snippet is as follow: > > > > > > > > > >while i execute the target, i am sure the "setENV.cmd" is run >well, but the "doThings.exe" can't work well, >that means the two exec tasks are not run within the same >command shell, who can tell me how to config the ant to run the two exec tasks >within the same shell? starts a new thread/process. Therefore you cant process two 'executables' in the same . What you could do is a workaround: - create a batch file with all invokations - call the batch Jan - To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org -- This e-mail, including any attached files, may contain confidential and privileged information for the sole use of the intended recipient. Any review, use, distribution, or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive information for the intended recipient), please contact the sender by reply e-mail and delete all copies of this message. - To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org
ant axis-admin multiple wsdd files
I'm trying to use ant to generate my server-config.wsdd file. What I'm looking to do is provide multiple Deploy.wsdd files to this task, but I can't figure out a compact way of doing this. Here's what I have Our source is arranged like so: com/endpoints/users/Users-Deploy.wsdd com/endpoints/groups/Groups-Deploy.wsdd etc... We have about 20 endpoints, and I'd prefer to not have to list a seperate axis-admin task for each one. Any suggestions as to how to go about this? Thanks in advance, P - To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org
Is there a login "wait for password" target/task?
I noticed the task automates a remote telnet session, using and to indicate strings to wait for and specify text to send. Is there any more generic task that can do this? I'm trying to access a remote db system that prompts for a password. (Actually it's Perforce, but I didn't see any perforce targets that can do logins.) thanks, Scott
Re: Is there a login "wait for password" target/task?
I noticed the task automates a remote telnet session, using and to indicate strings to wait for and specify text to send. Is there any more generic task that can do this? I'm trying to access a remote db system that prompts for a password. (Actually it's Perforce, but I didn't see any perforce targets that can do logins.) Since most systems have their own protocols and authentication mechanisms, you might need to to find a specific task for Perforce. I'm not sure how Perforce does its remote communication, but if it uses HTTP like SubVersion, you can use the http tasks/types. However, you might run into some issues with authentication with those base tasks/types. I had to write my own tasks/types because of authentication issues. -bp - To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org
Re: AW: AW: AW: scite as3 + ant + flex sdk
Hello, I just find the time to look again at all of that :-), I did open the .jar and effectively the 3 lines are on it : mxmlc=flex.ant.MxmlcTask compc=flex.ant.CompcTask html-wrapper=flex.ant.HtmlWrapperTask I made a new try with your path indications and now I don't get anymore the errors I had before, Ant look to find the flexTasks correctly. But a new problem appear, i don't know if it come from Ant know : the build start and than after this message nothing append anymore : >/usr/share/ant/bin/ant test Buildfile: build.xml test: swf: at this moment this take a lot of memory of the computer and the only think a can do is to press the "stop" button of Scite, so the build is never finish... do you see what can it be again ? my problem with Scite, Ant and Flex is looking like a little nightmare :working: -- View this message in context: http://www.nabble.com/scite-as3-%2B-ant-%2B-flex-sdk-tp21921594p22126566.html Sent from the Ant - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org
RE: AW: AW: AW: scite as3 + ant + flex sdk
you can always exec the mxmlc task (specifically the class flex.ant.MxmlcTask) with spawn="true" in other words make sure the mxmlc script runs standalone before committing as a task in your build environment HTH Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. > Date: Fri, 20 Feb 2009 12:21:29 -0800 > From: patma...@yahoo.fr > To: user@ant.apache.org > Subject: Re: AW: AW: AW: scite as3 + ant + flex sdk > > > Hello, > > I just find the time to look again at all of that :-), > > I did open the .jar and effectively the 3 lines are on it : > mxmlc=flex.ant.MxmlcTask > compc=flex.ant.CompcTask > html-wrapper=flex.ant.HtmlWrapperTask > > I made a new try with your path indications and now I don't get anymore the > errors I had before, > Ant look to find the flexTasks correctly. > > But a new problem appear, i don't know if it come from Ant know : > the build start and than after this message nothing append anymore : > > >/usr/share/ant/bin/ant test > Buildfile: build.xml > > test: > > swf: > > > at this moment this take a lot of memory of the computer and the only think > a can do is to press the "stop" button of Scite, so the build is never > finish... > > do you see what can it be again ? > > my problem with Scite, Ant and Flex is looking like a little nightmare > :working: > > -- > View this message in context: > http://www.nabble.com/scite-as3-%2B-ant-%2B-flex-sdk-tp21921594p22126566.html > Sent from the Ant - Users mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: user-unsubscr...@ant.apache.org > For additional commands, e-mail: user-h...@ant.apache.org > _ Windows Live™: E-mail. Chat. Share. Get more ways to connect. http://windowslive.com/explore?ocid=TXT_TAGLM_WL_t2_allup_explore_022009
RE: AW: AW: AW: scite as3 + ant + flex sdk
Thank you but I don't see how to do this, do I have to put spawn="true" as a parameter of my build file. How to test the mxmlc script runs standalone ? You may will think that I should learn Ant before use it, but compile actionscript files from Scite is my only need of Ant and I don't get time to learn it from the start :-) mgainty wrote: > > > you can always exec the mxmlc task (specifically the class > flex.ant.MxmlcTask) > with spawn="true" > > in other words make sure the mxmlc script runs standalone before > committing > as a task in your build environment > > -- View this message in context: http://www.nabble.com/scite-as3-%2B-ant-%2B-flex-sdk-tp21921594p22128797.html Sent from the Ant - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org
RE: AW: AW: AW: scite as3 + ant + flex sdk
... I did try that like I saw on the internet, but nothing more appends : -- View this message in context: http://www.nabble.com/scite-as3-%2B-ant-%2B-flex-sdk-tp21921594p22128896.html Sent from the Ant - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org
Re: Is there a login "wait for password" target/task?
Hello Scott, FWIF maybe this link can help: http://www.jera.com/tools/anttasks/. 8) David. Scott Stark wrote .. > > I noticed the task automates a remote telnet session, using > and to indicate strings to wait for and specify text to send. > > Is there any more generic task that can do this? I'm trying to access a > remote db system that prompts for a password. (Actually it's Perforce, but > I didn't see any perforce targets that can do logins.) > > thanks, > Scott - To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org
Re: Is there a login "wait for password" target/task?
> Hello Scott, FWIF maybe this link can help: http://www.jera.com/tools/anttasks/. 8) David. Thanks David, but not quite what I'm looking for -- sorry I wasn't clear. I do want the script to pass the login and password (without being prompted), to an application that prompts and waits for input. Scott
Way to simplify this task?
Hi, Perhaps this is more appropriate for the FindBugs forum, but I've found good answers here. I'm using Ant 1.6 with FindBugs 1.3.7. I want to tell FindBugs to include all the JARS within a certain directory for its classpath, but this isn't working ... I get the error [FindBugs] The following errors occurred during analysis: [FindBugs] Cannot open codebase filesystem:C:\Temp\Routing_Engine\ui\web\WEB-INF\lib\*.jar [FindBugs] java.util.zip.ZipException: Error opening C:\Temp\Routing_Engine\ui\web\WEB-INF\lib\*.jar [FindBugs] At edu.umd.cs.findbugs.classfile.impl.ZipFileCodeBase.(ZipFileCodeBase.java:56) [FindBugs] At edu.umd.cs.findbugs.classfile.impl.ZipCodeBaseFactory.makeZipCodeBase(ZipCodeBaseFactory.java:40) [FindBugs] At edu.umd.cs.findbugs.classfile.impl.ClassFactory.createFilesystemCodeBase(ClassFactory.java:96) [FindBugs] At edu.umd.cs.findbugs.classfile.impl.FilesystemCodeBaseLocator.openCodeBase(FilesystemCodeBaseLocator.java:75) [FindBugs] At edu.umd.cs.findbugs.classfile.impl.ClassPathBuilder.processWorkList(ClassPathBuilder.java:560) [FindBugs] At edu.umd.cs.findbugs.classfile.impl.ClassPathBuilder.build(ClassPathBuilder.java:195) [FindBugs] At edu.umd.cs.findbugs.FindBugs2.buildClassPath(FindBugs2.java:626) [FindBugs] At edu.umd.cs.findbugs.FindBugs2.execute(FindBugs2.java:184) [FindBugs] At edu.umd.cs.findbugs.FindBugs.runMain(FindBugs.java:323) [FindBugs] At edu.umd.cs.findbugs.FindBugs2.main(FindBugs2.java:1069) Any ideas what I'm doing wrong? Do I have to list each JAR file? - Dave - To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org
RE: Way to simplify this task?
"*" is generally a shell-construct. I think only and its relatives know how to expand *. -- Rick Genter Principal Software Engineer Silverlink Communications
Re: Way to simplify this task?
Yeah...been a while since I did this... I think, it is literally assuming a file entitled *.jar below :( What does your taskdef look like for Find Bugs? I use something like this: http://findbugs.sourceforge.net"; description = "Needed to use FindBugs."> Not sure this will help, but maybe you want to use a similar construct, but for fileset do something like: Of course, adjust taskdef based on what you are currently doing ;) dave.alvar...@remanresource.com wrote: > Hi, > > Perhaps this is more appropriate for the FindBugs forum, but I've found good > answers here. I'm using Ant 1.6 with FindBugs 1.3.7. I want to tell > FindBugs to include all the JARS within a certain directory for its > classpath, but this isn't working ... > > > outputFile="${findBugsOutputFile}" jvmargs="${jvmargs}" projectName="regui" > > > > > > > > I get the error > > [FindBugs] The following errors occurred during analysis: > [FindBugs] Cannot open codebase > filesystem:C:\Temp\Routing_Engine\ui\web\WEB-INF\lib\*.jar > [FindBugs] java.util.zip.ZipException: Error opening > C:\Temp\Routing_Engine\ui\web\WEB-INF\lib\*.jar > [FindBugs] At > edu.umd.cs.findbugs.classfile.impl.ZipFileCodeBase.(ZipFileCodeBase.java:56) > [FindBugs] At > edu.umd.cs.findbugs.classfile.impl.ZipCodeBaseFactory.makeZipCodeBase(ZipCodeBaseFactory.java:40) > [FindBugs] At > edu.umd.cs.findbugs.classfile.impl.ClassFactory.createFilesystemCodeBase(ClassFactory.java:96) > [FindBugs] At > edu.umd.cs.findbugs.classfile.impl.FilesystemCodeBaseLocator.openCodeBase(FilesystemCodeBaseLocator.java:75) > [FindBugs] At > edu.umd.cs.findbugs.classfile.impl.ClassPathBuilder.processWorkList(ClassPathBuilder.java:560) > [FindBugs] At > edu.umd.cs.findbugs.classfile.impl.ClassPathBuilder.build(ClassPathBuilder.java:195) > [FindBugs] At > edu.umd.cs.findbugs.FindBugs2.buildClassPath(FindBugs2.java:626) > [FindBugs] At edu.umd.cs.findbugs.FindBugs2.execute(FindBugs2.java:184) > [FindBugs] At edu.umd.cs.findbugs.FindBugs.runMain(FindBugs.java:323) > [FindBugs] At edu.umd.cs.findbugs.FindBugs2.main(FindBugs2.java:1069) > > Any ideas what I'm doing wrong? Do I have to list each JAR file? - Dave > > - > To unsubscribe, e-mail: user-unsubscr...@ant.apache.org > For additional commands, e-mail: user-h...@ant.apache.org > - To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org
RE: Way to simplify this task?
Scott change to HTH Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. > Date: Fri, 20 Feb 2009 19:13:48 -0500 > From: sflo...@nc.rr.com > To: dave.alvar...@remanresource.com; user@ant.apache.org > Subject: Re: Way to simplify this task? > > Yeah...been a while since I did this... > > I think, it is literally assuming a file entitled *.jar below :( > > What does your taskdef look like for Find Bugs? I use something like this: > > "edu.umd.cs.findbugs.anttask.FindBugsTask" uri = > "http://findbugs.sourceforge.net"; description = "Needed to use FindBugs."> > > > > > > Not sure this will help, but maybe you want to use a similar construct, but > for fileset do something like: > > > > Of course, adjust taskdef based on what you are currently doing ;) > > dave.alvar...@remanresource.com wrote: > > Hi, > > > > Perhaps this is more appropriate for the FindBugs forum, but I've found > > good answers here. I'm using Ant 1.6 with FindBugs 1.3.7. I want to tell > > FindBugs to include all the JARS within a certain directory for its > > classpath, but this isn't working ... > > > > > > > outputFile="${findBugsOutputFile}" jvmargs="${jvmargs}" projectName="regui" > > > > > > > > > > > > > > > > > I get the error > > > > [FindBugs] The following errors occurred during analysis: > > [FindBugs] Cannot open codebase > > filesystem:C:\Temp\Routing_Engine\ui\web\WEB-INF\lib\*.jar > > [FindBugs] java.util.zip.ZipException: Error opening > > C:\Temp\Routing_Engine\ui\web\WEB-INF\lib\*.jar > > [FindBugs] At > > edu.umd.cs.findbugs.classfile.impl.ZipFileCodeBase.(ZipFileCodeBase.java:56) > > [FindBugs] At > > edu.umd.cs.findbugs.classfile.impl.ZipCodeBaseFactory.makeZipCodeBase(ZipCodeBaseFactory.java:40) > > [FindBugs] At > > edu.umd.cs.findbugs.classfile.impl.ClassFactory.createFilesystemCodeBase(ClassFactory.java:96) > > [FindBugs] At > > edu.umd.cs.findbugs.classfile.impl.FilesystemCodeBaseLocator.openCodeBase(FilesystemCodeBaseLocator.java:75) > > [FindBugs] At > > edu.umd.cs.findbugs.classfile.impl.ClassPathBuilder.processWorkList(ClassPathBuilder.java:560) > > [FindBugs] At > > edu.umd.cs.findbugs.classfile.impl.ClassPathBuilder.build(ClassPathBuilder.java:195) > > [FindBugs] At > > edu.umd.cs.findbugs.FindBugs2.buildClassPath(FindBugs2.java:626) > > [FindBugs] At > > edu.umd.cs.findbugs.FindBugs2.execute(FindBugs2.java:184) > > [FindBugs] At edu.umd.cs.findbugs.FindBugs.runMain(FindBugs.java:323) > > [FindBugs] At edu.umd.cs.findbugs.FindBugs2.main(FindBugs2.java:1069) > > > > Any ideas what I'm doing wrong? Do I have to list each JAR file? - Dave > > > > - > > To unsubscribe, e-mail: user-unsubscr...@ant.apache.org > > For additional commands, e-mail: user-h...@ant.apache.org > > > > > - > To unsubscribe, e-mail: user-unsubscr...@ant.apache.org > For additional commands, e-mail: user-h...@ant.apache.org > _ Access your email online and on the go with Windows Live Hotmail. http://windowslive.com/online/hotmail?ocid=TXT_TAGLM_WL_HM_AE_Access_022009