Re: RE: Tagging CVS from Ant - errors

2002-10-29 Thread otisg
-Original Message- From: otisg [mailto:otisg;ureach.com] Sent: Tuesday, October 29, 2002 12:18 AM To: [EMAIL PROTECTED] Subject: Tagging CVS from Ant - errors Hello, I'm trying to tag the source under CVS using Ant. This is how I am trying to do it (IP is changed): cvs

RE: RE: Tagging CVS from Ant - errors

2002-10-29 Thread otisg
Message- From: otisg [mailto:otisg;ureach.com] Sent: Tuesday, October 29, 2002 8:06 AM To: Detlef Brendle Subject: Re: RE: Tagging CVS from Ant - errors Hello, Thanks, that was a kick in the right direction. However, it appears that 'cvs' invoked from Ant (version 1.5) and 'cvs' invoked

RE: RE: Tagging CVS from Ant - errors

2002-10-29 Thread otisg
) added c:\Program Files\GNU\WinCvs 1.2; -Original Message- From: otisg [mailto:otisg;ureach.com] Sent: Tuesday, October 29, 2002 8:21 AM To: [EMAIL PROTECTED] Subject: RE: RE: Tagging CVS from Ant - errors Hi, When you say Ant CVS wants to find the cvs dir in the user's path

Tagging CVS from Ant - errors

2002-10-28 Thread otisg
Hello, I'm trying to tag the source under CVS using Ant. This is how I am trying to do it (IP is changed): cvs cvsRoot=:pserver:[EMAIL PROTECTED]:/home/cvs/repository package=mclass command=tag -F my-tag Foo noexec=true /cvs I am getting this error:

Re: JUnit: setUp() method called multiple times ?

2002-10-02 Thread otisg
I believe that's normal. I've observed the same behaviour with Ant 1.4.1. Otis On Thu, 03 Oct 2002, P. Fleury ([EMAIL PROTECTED]) wrote: Hello, I have a single test class which has setUp() method. When I run it through the junit task, in batch, the setUp method gets called once for

failed Junit test - file permission error? Ant 1.5 bug?

2002-09-27 Thread otisg
Hello, I am running JUnit tests via Ant 1.5 on Windows, and whenever a test fails Ant reports it as file permission error, which is completely incorrect. Here is an example: [junit] Running net.wgen.amp.model.AmpUserTest [junit] java.security.AccessControlException: access denied

Re: newbie question: start an asynch process

2002-09-27 Thread otisg
Lok at parallel, but it's got some restrictions. You can use 2 build files or at least call 2 separate targets what start 2 different processes... Otis On Fri, 27 Sep 2002, [EMAIL PROTECTED] ([EMAIL PROTECTED]) wrote: Hi all, Didn't see this in the faq. I want to write an ant task

Re: Capture build log

2002-09-24 Thread otisg
Have you tried record? This is what I use, for instance: target name=init !-- start the log file -- record name=${buildLogFilesDir}/Build_3.log action=start/ /target On Tue, 24 Sep 2002, Dave Smith ([EMAIL PROTECTED]) wrote: Hi, I'm running

Re: Re: How to call a target not in the same build file?

2002-09-23 Thread otisg
PROTECTED]) wrote: can't do that. antcall does not support the dir attribute in version 1.5 otisg [EMAIL PROTECTED] wrote: I use task=task-name-here/ Otis On Fri, 20 Sep 2002, Richard Pais ([EMAIL PROTECTED]) wrote: Hi, Does anybody know if LoadFile will let me

Re: How to call a target not in the same build file?

2002-09-22 Thread otisg
I use antcall dir=buil/file/dir/here task=task-name-here/ Otis On Fri, 20 Sep 2002, Richard Pais ([EMAIL PROTECTED]) wrote: Hi, Does anybody know if LoadFile will let me call a task defined in B.xml from A.xml? Has anybody tackled such a requirement before? Thanks

Ant+JUnit - java.security.AccessControlException: access denied

2002-09-20 Thread otisg
Hello, I think have seen this problem before, but I can't remember what the problem nor solution were :( I am using Ant 1.5 and Java 1.3.1 on Winblows. I did not find anything similar in the mailing list archive. I am running Junit task and getting an error, which claims that there is a file

taskdef doesn't see class in provided classpathref

2002-08-30 Thread otisg
Hello, I am using Ant 1.5 and trying to use a custom task (Checkstyle). However I am getting an error: BUILD FAILED file:/home/otis/wgen/cvs/mclass/javaserver/build/build.xml:105: Could not create task of type: checkstyle due to java.lang.NoClassDefFoundError:

Re: java.util.zip.ZipException: Permission denied

2002-07-12 Thread otisg
I found it. It was one of my jar files whose owner was root, and for which no other users had read rights. Otis On Fri, 12 Jul 2002, otisg ([EMAIL PROTECTED]) wrote: Hello, I am getting a weird Permission denied problem when I execute Ant. $ ant -version Apache Ant version 1.5

classpath refid in Junit task does not work with Ant 1.5?

2002-07-12 Thread otisg
Hello, Using Ant version 1.5. Is it possible that the optional Junit task ignores a nested classpath? That seems to be the case here. I have a case like this: junit printsummary=yes more attributess... classpath refid=test.classpath/ batchtest

javac complaining about missing packages/classes

2002-03-12 Thread otisg
Hello, I'm having trouble getting working here. It's complaining that I'm not specifying any packages nor classes: [javadoc] Generating Javadoc [javadoc] Javadoc execution [javadoc] usage: javadoc [options] [packagenames] [sourcefiles] [classnames] [@files] [javadoc] javadoc: No packages or

Re: javadoc complaining about missing packages/classes

2002-03-12 Thread otisg
/classes --- otisg wrote: I'm having trouble getting working here. It's complaining that I'm not specifying any packages nor classes: [snip] However, I believe I am specifying them: sourcepath=${build.src} destdir=${build.javadoc} packagenames=com.* Does ${build.src} point

How do I get less verbose output from junit?

2001-11-27 Thread otisg
Hello, I saw somewhere that it is possible to use Ant and Junit and get output that looks like this: running com.example.Test . Time: 47.249 OK (61 tests) However, I get a very different output when I use the following:

Re: Failing Junit test only under Ant

2001-11-21 Thread otisg
Hello, Does anyone know if there is a more elegant solution to this problem? I thought of doing this, but I was hoping there is a better, more programmatic perhaps, way of doing this. Thanks, Otis On Sat, 10 November 2001, Steve Loughran wrote: As a short term hack why not add the

Re: RemoteTask, RemoteCopyTask

2001-11-16 Thread otisg
On Fri, 16 November 2001, Peter Donald wrote: On Fri, 16 Nov 2001 21:19, Joel Cordonnier wrote: Hi ! Are the RemoteTask task, RemoteCopyTask... describe in this article http://www.javaworld.com/javaworld/jw-10-2000/jw-1020-ant_p.html already blundled with Ant ??

removing stack trace on failed Junit tests

2001-11-12 Thread otisg
Hello, Is it possible to remove this stack trace printing when executing Junit tests? I don't see a junit attribute that would allow this... [junit] FAILED [junit] expected:1 but was:0 [junit] junit.framework.AssertionFailedError: expected:1 but was:0 [junit] at

How to run a single Junit test?

2001-10-31 Thread otisg
Hello, All examples of integrating Ant and Junit show you how to run a set of unit tests in a single step. What is the best way to run a single, specific unit test? For example, if I have a TestCase at com.nut.KikirikiTest is there an easy way to invoke Ant and tell it to run just that one

Bug in jvmarg - extra quotation marks

2001-10-31 Thread otisg
Hello, This looks like a bug in Ant. Inside of junit I am specifying some JVM arguments, like this: jvmarg value=-Dxxx.data=/home/data -Dxxx.config=/home/config/ Yet, when I invoke Ant with -v I see: Executing: /usr/local/jdk/jre/../bin/java -Dxxx.data=/home/data

Bug in jvmarg - extra quotation marks

2001-10-31 Thread otisg
Hello, This looks like a bug in Ant. Inside of junit I am specifying some JVM arguments, like this: jvmarg value=-Dxxx.data=/home/data -Dxxx.config=/home/config/ Yet, when I invoke Ant with -v I see: Executing: /usr/local/jdk/jre/../bin/java -Dxxx.data=/home/data

Re: Bug in jvmarg - extra quotation marks

2001-10-31 Thread otisg
Thanks, that worked. Must be a relatively new feature, it's not in the Ant manual on Jakarta yet. Otis On Wed, 31 October 2001, Diane Holt wrote: --- [EMAIL PROTECTED] wrote: This looks like a bug in Ant. Inside of junit I am specifying some JVM arguments, like this:

how to reduce the number of filesets in copy task

2001-10-02 Thread otisg
Hello, I was wondering if the following can be simplified. Can all these fileset tasks can be merged into one while still achieving the same effect? I thought maybe someone on the list may know... target name=compile depends=init !-- Copy all the sources to the $build.src

how to reduce the number of filesets in copy task

2001-10-02 Thread otisg
Hello, I was wondering if the following can be simplified. Can all these fileset tasks can be merged into one while still achieving the same effect? I thought maybe someone on the list may know... target name=compile depends=init !-- Copy all the sources to the $build.src

Re: how to reduce the number of filesets in copy task

2001-10-02 Thread otisg
I was wondering if the following can be simplified. Can all these fileset tasks can be merged into one while still achieving the same effect? !-- Copy all the sources to the $build.src directory -- copy todir=${build.src} preservelastmodified=yes fileset

getting package names of .java files from Ant

2001-10-02 Thread otisg
Hello, Is there a way to get a list of all the packages in .java files 'automagically' from within Ant? It looks like javadoc task needs a comma-separated lsit of packages and I'd hate to have to hack something that parses packages out of .java files if this is something that can already be

Re: javac include that avoids rebuilding everything?

2001-10-02 Thread otisg
I think the first problem is that your source dir and destination dir in the javac task are different. I'm not 100% sure about that. In the case of the project for which I am using Ant, I copy all sources in a directory that I call 'build/compile' The equivalent would be: cp -a MySourceDir/*