Viewing output of SQL task

2002-03-14 Thread Euan Guttridge
Is it possible to view the output of an SQL task? In this example I would like to see the count result as the script runs. Thanks. Example task : target name=sql_test sql driver=sun.jdbc.odbc.JdbcOdbcDriver url=jdbc:odbc:oracle_db2 userid=user password=password select

Re: javadoc get confused by java package running jsdk-1.4

2002-03-14 Thread Guillaume Rousse
Ainsi parlait Stefan Bodewig : On Wed, 13 Mar 2002, Guillaume Rousse [EMAIL PROTECTED] wrote: Anyway, and before this is fixed in a next jdk release, any workaround idea ? You said it worked from the command line (just using a different command than Ant did). Which command did you use?

Re: unsubscribing from ant users list

2002-03-14 Thread Nicola Ken Barozzi
From: [EMAIL PROTECTED] hi all, i have been trying twice to unsubscribe from this list. i send twice message to [EMAIL PROTECTED] but i am still receiving emails. To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] -- Nicola Ken Barozzi [EMAIL PROTECTED] -

RE: unsubscribing from ant users list

2002-03-14 Thread Michelle Popovits
Did you receive and reply to the unsubscribe confirmation email? -Original Message- From: Nicola Ken Barozzi [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 14, 2002 5:55 AM To: Ant Users List Subject: Re: unsubscribing from ant users list From: [EMAIL PROTECTED] hi all, i have been

Ant ejbjar (taskdef) problem (using Idea)

2002-03-14 Thread NikolajG
Hi I have some problems using Ant. When I build my project using Idea 2.5 (from IntelliJ) it works, but when I try from command line I get the following: C:\Dev\V3\build.xml:64: Could not create task of type: ejbjar. Common solutions are to use taskdef to declare your task, or, if this is an

Re: javadoc get confused by java package running jsdk-1.4

2002-03-14 Thread Stefan Bodewig
On Thu, 14 Mar 2002, Guillaume Rousse [EMAIL PROTECTED] wrote: -subpackages options, which is javadoc 1.4 specific :-( I don't have the tool docs for 1.4 with me right now, maybe we can adapt javadoc to use that option if it detects JDK 1.4? So i need to test jdk version first, available is

/root/jakarta-ant-1.3/bin/ant: line 107: 14185 Segmentation fault

2002-03-14 Thread Geng, Bo (Bob)
I installed ant1.3 on my Redhat Linux 7.0 with jdk1.3.1_02. The default jar files for xml parser under ANT_HOME/lib are jaxp.jar and parser.jar. I removed these two files and used xerces.jar and xalan.jar instead. Then the error came up: Buildfile: build.xml /root/jakarta-ant-1.3/bin/ant: line

Re: /root/jakarta-ant-1.3/bin/ant: line 107: 14185 Segmentation fault

2002-03-14 Thread Manoj Sadangi
what is the version of the xalan ? new version xalan does not have the XSLTInputSource. I think upgrading your ant should solv the problem. Geng, Bo (Bob) wrote: I installed ant1.3 on my Redhat Linux 7.0 with jdk1.3.1_02. The default jar files for xml parser under ANT_HOME/lib are jaxp.jar

Any way to shutdown a build externally?

2002-03-14 Thread Michael Laccetti
Title: Any way to shutdown a build externally? -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I've got an automated build system that fires of an Ant build via Java code (using the Main class). Assuming that something goes wrong during the build, and it hangs, is there any way to stop the

RE: Any way to shutdown a build externally?

2002-03-14 Thread Steve Cohen
Kill the java process that's running it? -Original Message- From: Michael Laccetti [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 14, 2002 8:24 AM To: Ant List Subject: Any way to shutdown a build externally? -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I've got an automated build

RE: Any way to shutdown a build externally?

2002-03-14 Thread Michael Laccetti
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I was looking for a more elegant solution, but if that's the only way... - -Original Message- From: Steve Cohen [mailto:[EMAIL PROTECTED]] Sent: March 14, 2002 9:33 AM To: Ant Users List Subject: RE: Any way to shutdown a build

RE: /root/jakarta-ant-1.3/bin/ant: line 107: 14185 Segmentation fault

2002-03-14 Thread Geng, Bo (Bob)
The xalan.jar I used is include din Xerces-J-tools.2.0.1.tar.gz which marked as latest build tools at http://xml.apache.org/dist/xerces-j/ . The reason I used v1.3 instead of v1.4 is that when junitreport task issued the error comes up: helloWorld\build.xml:93: Could not create task of type:

documentation suggestion for ant team...

2002-03-14 Thread stephan beal
Hello again, Anters For any of you who happen to work on the Ant docs, i have a small suggestion: how about an available since field for each task, a-la the Java API docs? What brought this up was my trying to use the record tag yesterday, only to find it wasn't in my version of Ant (i

RE: documentation suggestion for ant team...

2002-03-14 Thread Jon Skeet
For any of you who happen to work on the Ant docs, i have a small suggestion: how about an available since field for each task, a-la the Java API docs? What brought this up was my trying to use the record tag yesterday, only to find it wasn't in my version of Ant (i use the

jar task in jakarta-ant-1.4.1

2002-03-14 Thread Richard.OShea
Hi all, I am new to this particular tool and have been playing with different versions for about a week now. The problem I have is as follows: When I call ant make_jar (using v1.4.1) it fails stating a zip file cannot contain itself yet there are no other zip files in the directory

RE: [PATCH] Documentation for junit junitreport

2002-03-14 Thread Ylan Segal
Stefan Unified diff is the -u on the command line, it creates a slightly different, more compact and for some people more readable output. The main difference is that you have a good chance that a unified diff can be applied to a given file by patch even if that file is not of the same

Re: jar task in jakarta-ant-1.4.1

2002-03-14 Thread Stefan Bodewig
On Thu, 14 Mar 2002, Richard OShea [EMAIL PROTECTED] wrote: When I call ant make_jar (using v1.4.1) it fails stating a zip file cannot contain itself yet there are no other zip files in the directory structure. You are trying to zip up a directory and put the resulting archive in that

RE: jar task in jakarta-ant-1.4.1

2002-03-14 Thread Richard.OShea
Thanks for the responce Stephan. I modified the file but get the same error? Here is the source if you don't mind looking at it ;P !-- simple xml buildfile -- !-- generated by Together -- project name=EUCLID default=compile !-- set global properties for this build --

part two of article on jaxb ant published

2002-03-14 Thread Joseph Shelby
http://www.onjava.com/pub/a/onjava/2002/03/13/jaxbant2.html this actually covers some recent discussion topics, and in the details of making Ant tasks. Its basically in two parts. First is a task that will generate a packagelist file for javadoc to use (although I acknowledge its really

RE: Preserving URL paths in apply tasks

2002-03-14 Thread Dominique Devienne
Hi Diane, I noticed taskdef resource=net/sf/antcontrib/antcontrib.properties/ in your example below, and tried to have a look at this resource, but it's not part of the ant-contrib CVS rep. There's no ant-contrib JAR to download, so is this file created by the ant-contrib build, or did you

Re: Basic setup of Junit in Ant?

2002-03-14 Thread guru
On Wed, Mar 13, 2002 at 03:33:12PM -0800, Steve Loughran wrote: This is what you get in a nightly build Ah! Excellent. My only complaint is that it doesn't say *WHICH* class it couldn't find. That one piece of information is more useful than all those other words. Then at least we'd

Re: jar task in jakarta-ant-1.4.1

2002-03-14 Thread Stefan Bodewig
On Thu, 14 Mar 2002, Richard OShea [EMAIL PROTECTED] wrote: property name=dest value=R:\P7064\oshea\Repository Software\out\/ property name=dist value=R:\P7064\oshea\Repository Software\out\_dist/ jar jarfile=${dist}/EUCLID.jar basedir=${dest} excludes=EUCLID.jar/ excludes expects a pattern

Re: Basic setup of Junit in Ant?

2002-03-14 Thread guru
Also, the error message should reference that excellent bugzilla entry by Stefan. Just putting See http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6606 for details. under the entry talking about ANT_HOME/lib would suffice. - A -- Alex Chaffee mailto:[EMAIL PROTECTED]

Re: Basic setup of Junit in Ant?

2002-03-14 Thread Stefan Bodewig
On Thu, 14 Mar 2002, [EMAIL PROTECTED] wrote: Also, the error message should reference that excellent bugzilla entry by Stefan. Thanks, *blush* Actually, the real goal was to make an entry for the FAQ from this, I was just awaiting feedback (and time). And didn't get too much, which may

no class files generated?

2002-03-14 Thread stephan beal
Hello, anters, i have a very strange problem. i've spent the past couple of days porting our build tree from make to ant, and it seems to run great, but after it's run i have no class files. Ant 1.4.1, JDK 1.3.1, Linux. My compile target looks like this: target name=compile

RE: jar task in jakarta-ant-1.4.1

2002-03-14 Thread Richard.OShea
Thanks Stephan :) All is well. Ant looks like a good tool to me (extensible task driven etc etc) it's the little things that can put you off from using something like this though. Especially if like me you thought command line was a shipping company :) Cheers for the help Ric -Original

RE: Preserving URL paths in apply tasks

2002-03-14 Thread Diane Holt
--- Dominique Devienne [EMAIL PROTECTED] wrote: I noticed taskdef resource=net/sf/antcontrib/antcontrib.properties/ in your example below, [...] did you create it yourself? Yep -- I just picked up all the ant-contrib source files, compiled them, created a taskdefs file, then jar'd it all up

RE: Return code from Ant

2002-03-14 Thread dhay
I kind of picked up a project from someone else, and they'd set up the following for the makefile, saying that there is no way to check if Ant failed or not. Can I change the makefile so a return code is picked up *without* having to use the listener? --- makefile.mak

RE: Command line parameters

2002-03-14 Thread Barry Jia
I think you can define property name in the command line , -Dname=value http://www.brightspark.com/signature_file/brightspark_logomark_small.gif Barry Jia Brightspark Labs. Tel:416-488-1999 ext. 306 Fax:416-488-1888 Email: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] Or [EMAIL PROTECTED]

Re: no class files generated?

2002-03-14 Thread Diane Holt
--- stephan beal [EMAIL PROTECTED] wrote: i have a very strange problem. i've spent the past couple of days porting our build tree from make to ant, and it seems to run great, but after it's run i have no class files. Try running 'ant -verbose' and look for the Compilation args: line -- it'll

script of ftp task

2002-03-14 Thread Ortiz Garrudo, Alvaro
Hello, excuse me for my English: I`am in troubles. I need that Somebody tell me how write script for create ftp task, dynamic. My idea: project name=squares default=main basedir=. !--THIS FILE FILE CONTAINS VARIABLES FOR CREATE TASK FTP --

Re: documentation suggestion for ant team...

2002-03-14 Thread Steve Loughran
- Original Message - From: stephan beal [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, March 14, 2002 07:23 Subject: documentation suggestion for ant team... Hello again, Anters For any of you who happen to work on the Ant docs, i have a small suggestion: how about an

Re: Basic setup of Junit in Ant?

2002-03-14 Thread Guillaume Rousse
Ainsi parlait Stefan Bodewig : On Thu, 14 Mar 2002, [EMAIL PROTECTED] wrote: Also, the error message should reference that excellent bugzilla entry by Stefan. Thanks, *blush* Actually, the real goal was to make an entry for the FAQ from this, I was just awaiting feedback (and time).

Re: Basic setup of Junit in Ant?

2002-03-14 Thread Steve Loughran
- Original Message - From: [EMAIL PROTECTED] To: Steve Loughran [EMAIL PROTECTED] Cc: Ant Users List [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, March 14, 2002 08:15 Subject: Re: Basic setup of Junit in Ant? Also, the error message should reference that excellent bugzilla

Re: script of ftp task

2002-03-14 Thread Diane Holt
--- Ortiz Garrudo, Alvaro [EMAIL PROTECTED] wrote: Hello, excuse me for my English: You did fine :) I`am in troubles. I need that Somebody tell me how write script for create ftp task, dynamic. !--THIS FILE FILE CONTAINS VARIABLES FOR CREATE TASK FTP -- property file =

gnoob question: if

2002-03-14 Thread Michael Laccetti
Title: gnoob question: if -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Is there any sort of 'if' functionality available within Ant? E.g., I've set a condition, how can I do some sort of evaluation based on the condition. Thanks, Michael - - Michael

Re: gnoob question: if

2002-03-14 Thread Diane Holt
--- Michael Laccetti [EMAIL PROTECTED] wrote: Is there any sort of 'if' functionality available within Ant? E.g., I've set a condition, how can I do some sort of evaluation based on the condition. From the user's manual, section Using Ant, subsection Targets: A target also has the ability

RE: Preserving URL paths in apply tasks

2002-03-14 Thread Jeff Lowery
Thanks, I'll give it a shot. -Original Message- From: Diane Holt [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 14, 2002 8:58 AM To: Ant Users List Subject: RE: Preserving URL paths in apply tasks --- Dominique Devienne [EMAIL PROTECTED] wrote: I noticed taskdef

Re: Custom tasks/project directory

2002-03-14 Thread Mark Derricutt
Excellent, that was what I needed. Works like a dream :) --On Thursday, 7 March 2002 10:31 a.m. +0100 Stefan Bodewig [EMAIL PROTECTED] wrote: If the later is true, make the setter method for the attribute in your custom task take a File argument, not a String. Ant will automatically

Problem creating a jar file

2002-03-14 Thread James Adams
Hello, I am trying to get a jar command to work via ant but I'm getting an empty jar file. Hopefully someone can tell me what I'm doing wrong. I have the following jar target section in my build.xml: target name=jar depends=init,prepare,compile jar

RE: Problem creating a jar file

2002-03-14 Thread Eddie Bernard
Try includes=**/src/**,**/pages/**,**/WEB-INF/** -Original Message- From: James Adams [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 14, 2002 1:24 PM To: [EMAIL PROTECTED] Subject: Problem creating a jar file Hello, I am trying to get a jar command to work via ant but I'm getting an

Newbie question

2002-03-14 Thread Kailash . Subramanian
All, I want to exclude few directories from compiling. For ex, in com/alltel/ebusiness/javachart/document_root, I want to exclude the whole ebusiness directory and any directories under that directory. I need to do this for some 3 directories. Can somebody help ? I appreciate any help.

RE: Problem creating a jar file

2002-03-14 Thread James Adams
Thanks for your help, this did the trick. -James Try includes=**/src/**,**/pages/**,**/WEB-INF/** -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

RE: Newbie question

2002-03-14 Thread Sujan Digumarti
use the the exclude tag... Ex: javac srcdir=. exclude name=**/ebusiness/** / /javac -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, March 15, 2002 4:26 AM To: Ant Users List Subject: Newbie question All, I want to exclude few directories from

RE: Newbie question

2002-03-14 Thread Eddie Bernard
Try excludes=**/alltel/ebusiness/** in your compilation task. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 14, 2002 2:56 PM To: Ant Users List Subject: Newbie question All, I want to exclude few directories from compiling. For ex, in

Telnet Task

2002-03-14 Thread Atluri, Vamsi NYC
Hello - Ive encountered a bit of a problem with the following ftp server=nycsuweb02 remotedir=/export/home/vatluri/RELEASE userid=vatluri password=password binary=yes fileset dir=\Build_Environment\RELEASE\application include name=cfn_vamsi1.zip/

Colorant script

2002-03-14 Thread Andrew Sterling Hanenkamp
I've grown tired of looking at plain gray text while examining the verbose output of Ant. So, I wrote a simple Perl wrapper for Ant called ``colorant'' (in line with colorgcc and colormake). I thought others might be interested in it, so I thought I would post it to the Ant Users list. It's a

Re: Telnet Task

2002-03-14 Thread Steve Loughran
- Original Message - From: Atluri, Vamsi NYC [EMAIL PROTECTED] To: 'Ant Users List' [EMAIL PROTECTED] Sent: Thursday, March 14, 2002 3:23 PM Subject: Telnet Task Hello - Ive encountered a bit of a problem with the following ftp server=nycsuweb02

Re: Colorant script

2002-03-14 Thread Erik Hatcher
FYI - In Ant's CVS there is an AnsiColorLogger that can be used to do this or something similar. Erik - Original Message - From: Andrew Sterling Hanenkamp [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, March 14, 2002 6:36 PM Subject: Colorant script I've grown tired of

RE: Telnet Task

2002-03-14 Thread Atluri, Vamsi NYC
telnet userid=vatluri password=password server=nycsuweb02 writecd RELEASE/write writepwd/write read/export/home/vatluri/RELEASE/read writeunzip -a cfn_vamsi1.zip/write readtimeout=10/export/home/vatluri/RELEASE/read /telnet What kind of response am i supposed to read

Re: Colorant script

2002-03-14 Thread Diane Holt
--- Erik Hatcher [EMAIL PROTECTED] wrote: FYI - In Ant's CVS there is an AnsiColorLogger that can be used to do this or something similar. Have you used it? I got a nullPointerException (at printMessage()) when I tried it. Diane = ([EMAIL PROTECTED])

RE: Telnet Task

2002-03-14 Thread Atluri, Vamsi NYC
Hello, Ive noticed something strange. When I create the zip file using ants built in zip task and 'unzip -a' ANTzipFileA on a UNIX server - The '^M' are not getting removed as they are supposed to All files are being treated as binary files I then started to manually create a zip file in

Re: Colorant script

2002-03-14 Thread Diane Holt
--- Diane Holt [EMAIL PROTECTED] wrote: --- Erik Hatcher [EMAIL PROTECTED] wrote: FYI - In Ant's CVS there is an AnsiColorLogger that can be used to do this or something similar. Have you used it? I got a nullPointerException (at printMessage()) when I tried it. Never mind -- I was a

Re: Colorant script

2002-03-14 Thread Magesh Umasankar
From: Diane Holt [EMAIL PROTECTED] --- Diane Holt [EMAIL PROTECTED] wrote: --- Erik Hatcher [EMAIL PROTECTED] wrote: FYI - In Ant's CVS there is an AnsiColorLogger that can be used to do this or something similar. Have you used it? I got a nullPointerException (at printMessage())

Re: Telnet Task

2002-03-14 Thread Steve Loughran
- Original Message - From: Atluri, Vamsi NYC [EMAIL PROTECTED] To: 'Ant Users List' [EMAIL PROTECTED] Sent: Thursday, March 14, 2002 4:44 PM Subject: RE: Telnet Task Hello, Ive noticed something strange. When I create the zip file using ants built in zip task and 'unzip -a'

Re: Telnet Task

2002-03-14 Thread Steve Loughran
- Original Message - From: Atluri, Vamsi NYC [EMAIL PROTECTED] To: 'Ant Users List' [EMAIL PROTECTED] Sent: Thursday, March 14, 2002 4:21 PM Subject: RE: Telnet Task telnet userid=vatluri password=password server=nycsuweb02 writecd RELEASE/write writepwd/write

RE: Telnet Task

2002-03-14 Thread Atluri, Vamsi NYC
You now - Someone on my team actually said the same thing about the unzip -a option - Beats me - I randomly came across it - Trying to deal with the '^M' problem and as I said - Its seem to work fine outside of the ant task - Don't get me wrong I am not trying to say anything bad about ant - I

Re: Colorant script

2002-03-14 Thread Diane Holt
--- Magesh Umasankar [EMAIL PROTECTED] wrote: I have introduced an assertion for not null in the code now. You said you had access to FreeBSD, right? It would work there - perhaps you may want to give it a shot (for feedback's sake, at least)... Doubtful -- the Java on there is so ancient,

How can we run perl script from ant?

2002-03-14 Thread Andre Susantin
Dear ant users, We have some perl script that we would like to incorporate into build.xml, but can't run it since the additional library is missing. Is running perl script from within ant is supported? If so, can anybody can point to me what dependency library needed? And little perl sript in

Re: Colorant script

2002-03-14 Thread Magesh Umasankar
From: Diane Holt [EMAIL PROTECTED] --- Magesh Umasankar [EMAIL PROTECTED] wrote: I have introduced an assertion for not null in the code now. You said you had access to FreeBSD, right? It would work there - perhaps you may want to give it a shot (for feedback's sake, at least)...

Re: Colorant script

2002-03-14 Thread Diane Holt
--- Magesh Umasankar [EMAIL PROTECTED] wrote: Looking at the configuration, I guess you are using this machine just to play cool games now, eh? ;-) Nah -- I play cool games on my NT (one of its few positive points :) I have access to the unix box for historical reasons. Diane = ([EMAIL