deploy war to tomcat

2003-02-07 Thread Euan Guttridge
What is the best way to deploy a WAR file to Tomcat (on a remote server) from within ANT? Thanks, Euan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

increment integer task

2002-12-19 Thread Euan Guttridge
Has anyone succesfully got the math task running in Ant? (from the add on in Antelope). Or.. does anyone know of another task which will increment an integer variable? Thanks, Euan -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

RE: increment integer task

2002-12-19 Thread Euan Guttridge
Thanks, propertyfile task works perfectly for my purposes. For future reference of this list: !-- Increment build.properties -- target name=increment propertyfile file=/${release_env}/build.properties comment=used for CVS entry key=start type=int

RE: notification of failed javac

2002-12-16 Thread Euan Guttridge
. Euan Guttridge wrote: Is there a way to send an email *if* a [javac] compile fails? One way I can think of is to set the failonerror=false property and then use an if clause on the next task - but I can't work out how to set the property in the javac task *if* it fails... Thanks

notification of failed javac

2002-12-13 Thread Euan Guttridge
Is there a way to send an email *if* a [javac] compile fails? One way I can think of is to set the failonerror=false property and then use an if clause on the next task - but I can't work out how to set the property in the javac task *if* it fails... Thanks -- To unsubscribe, e-mail:

RE: cvstagdiff NullPointerException - FIXED in 1.5.2

2002-12-09 Thread Euan Guttridge
For reference this is a bug, fixed in 1.5.2 milestone (or 1.6 alpha), bug #13514. -Original Message- From: Euan Guttridge [mailto:[EMAIL PROTECTED]] Sent: 06 December 2002 18:18 To: 'Ant Users List' Subject: RE: cvstagdiff NullPointerException After further testing this only happens

SSL Task

2002-12-06 Thread Euan Guttridge
Has anyone written or know of an SSL task - or better method than just using an exec task to use SSL? I have searched the FAQ and archive with no luck. Thanks, Euan

cvstagdiff NullPointerException

2002-12-06 Thread Euan Guttridge
Hi, My cvstagdiff task fails with a NullPointerException - just after it has completed the recursive rdiff. Output and task below. Any ideas? Thanks.. Apache Ant version 1.5.1 compiled on October 2 2002 Buildfile: DocStarJUnit.xml Detected Java version: 1.3 in: /usr/jdk1.3.1_06/jre Detected

RE: cvstagdiff NullPointerException

2002-12-06 Thread Euan Guttridge
After further testing this only happens when there are NO differences between the compared tags.. -Original Message- From: Euan Guttridge [mailto:[EMAIL PROTECTED]] Sent: 06 December 2002 18:10 To: '[EMAIL PROTECTED]' Subject: cvstagdiff NullPointerException Hi, My cvstagdiff task

changing JAVA_HOME dynamically

2002-11-28 Thread Euan Guttridge
I have two Ant builds. One requires JDK1.3.1 and the other JDK1.2.1. Is there a way to change the JAVA_HOME from within the Ant scripts? I'd like avoid writing a shell script just to do this.. Thanks, Euan

Mail task Failed to initialise MIME mail

2002-11-21 Thread Euan Guttridge
Hi, 1) Why do I get the Failed to .. 2) How can I keep the attachment as an attachment? I have optional.jar, mail.jar, activation.jar all in the system classpath. The following task produces the Ant runtime output; [mail] Failed to initialise MIME mail [mail] Using UU mail ; but does not

RE: recursively delete directories

2002-11-19 Thread Euan Guttridge
://www.tahitiannoni.com -Original Message- From: Euan Guttridge [mailto:[EMAIL PROTECTED]] Sent: Monday, November 18, 2002 11:41 AM To: '[EMAIL PROTECTED]' Subject: recursively delete directories Hi, I cannot figure out the syntax to recursively delete all directories and their contents called CVS in a tree

exec task with bad args

2002-11-19 Thread Euan Guttridge
*This works fine:* target name=integrity_check exec executable=/usr/bin/find outputproperty=num_files_vss_fetched arg line=${cvs_output_dir} -type f/ /exec echo message = ${num_files_vss_fetched}/ /target *Add a pipe to wc -l and it falls over with error

RE: exec task with bad args

2002-11-19 Thread Euan Guttridge
Thanks, worked fine; target name=integrity_check exec executable=/bin/sh outputproperty=num_files_vss_fetched arg value=-c/ arg value=find ${cvs_output_dir} -type f | wc -l/ /exec echo message = ${num_files_vss_fetched}/ target/

RE: recursively delete directories

2002-11-19 Thread Euan Guttridge
-Original Message- From: Euan Guttridge [mailto:[EMAIL PROTECTED]] Sent: Monday, November 18, 2002 11:41 AM To: '[EMAIL PROTECTED]' Subject: recursively delete directories Hi, I cannot figure out the syntax to recursively delete all directories and their contents called CVS in a tree. My task

RE: recursively delete directories

2002-11-19 Thread Euan Guttridge
delete directories Then do a 'CVS Export'... --DD -Original Message- From: Euan Guttridge [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 19, 2002 8:58 AM To: 'Ant Users List' Subject: RE: recursively delete directories Hi, No - I only want to delete the CVS directories in a tree

?[cvs] Caught exception: CreateProcess: cvs

2002-11-18 Thread Euan Guttridge
Hi, Ant 1.5.1, J2SDK1.4.1_01, Win2000, PIII 600Mhz, 256MB. I have 2 probs; 1) If I run a buildfile with a cvs task I get as below + [cvs] Caught exception: CreateProcess: cvs -d:pserver:[EMAIL PROTECTED]:/home/cvs/repository 2) Ant runs fine for a buildfile containing only an echo task.

RE: ?[cvs] Caught exception: CreateProcess: cvs

2002-11-18 Thread Euan Guttridge
: [cvs] Caught exception: CreateProcess: cvs -d:pserver:nnprem@watson:/export/home/repository checkout MyProjct error=2 May be there is some restriction in creating processes in Win2K ?! Anyone could help ? Thanks, Prem -Original Message- From: Euan Guttridge [mailto:[EMAIL PROTECTED]] Sent

recursively delete directories

2002-11-18 Thread Euan Guttridge
Hi, I cannot figure out the syntax to recursively delete all directories and their contents called CVS in a tree. My task is below, this only deletes the contents, not the actual directories. !-- Delete CVS CheckOut files -- target name=delete_CVS_co_files delete includeEmptyDirs=true

caught exception

2002-11-15 Thread Euan Guttridge
Ant 1.5.1, J2SDK1.4.1_01, Win2000, PIII 600Mhz, 256MB. I have 2 probs; 1) Ant runs ok for a test buildfile containing only an echo task. However it takes up to 100 seconds to run and states The system cannot find the path specified. ANT_HOME, JAVA_HOME, CLASSPATH and PATH all seem set ok. 2)

CVS get on TAG

2002-11-12 Thread Euan Guttridge
Hi, Is there a task for Ant to get files with a specific CVS Tag from a CVS repository? I cannot find such in the documentation for 1.5.1. Thanks Euan -- To unsubscribe, e-mail: mailto:ant-user-unsubscribe;jakarta.apache.org For additional commands, e-mail:

javac freezes!

2002-06-18 Thread Euan Guttridge
My build process is suddenly freezing at [javac], using either the jikes or the sun compiler. Running in verbose does'nt give me any clues. Running Ant1.4.1 on Linux. Any ideas? Thanks, Euan

RE: javac freezes!

2002-06-18 Thread Euan Guttridge
, pull out recent changes (cvs update with specific dates if you use cvs) to make it compile again, and look carefully at the new code. Breaking both Javac and Jikes at the same time seems unlikely though... --DD -Original Message- From: Euan Guttridge [mailto:[EMAIL PROTECTED]] Sent

RE: javac freezes!

2002-06-18 Thread Euan Guttridge
OK, solved. A mount point containing lib files had vanished! Thanks.. -Original Message- From: Euan Guttridge [mailto:[EMAIL PROTECTED]] Sent: 18 June 2002 17:08 To: 'Ant Users List' Subject: RE: javac freezes! Hi, CPU usage is virtually nothing, the output of ps -ef | grep build

Test if directory is empty

2002-03-20 Thread Euan Guttridge
Hi, I would like to be able to test if a directory is empty, and if it is not empty then perform a task. Any suggestions appreciated. Thanks.

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

Setting a property with SQL

2002-02-15 Thread Euan Guttridge
I would like to set a number of properties in an Ant script from the results of an SQL task. These property settings would then be used within other targets in the same script. Is this possible? If not I suspect I will need to write a script to run the SQL and populate a property file, then

RE: Sql task ignoring classpath

2002-02-11 Thread Euan Guttridge
Thanks Adam.. this obviously solved the problem. -Original Message- From: Adam Murdoch [mailto:[EMAIL PROTECTED]] Sent: 08 February 2002 20:16 To: Ant Users List Subject: RE: Sql task ignoring classpath -Original Message- From: Euan Guttridge [mailto:[EMAIL PROTECTED

Sql task ignoring classpath

2002-02-08 Thread Euan Guttridge
Hi, Ant seems to be refusing to recognise my system classpath (W2K). I am using a jdbc:odbc driver in an SQL task, the driver is in the system classpath, tested and confirmed. Even with the optional classpath attribute in the SQL task I still get the not found error:

RE: Sql task ignoring classpath

2002-02-08 Thread Euan Guttridge
' Subject: RE: Sql task ignoring classpath You need to rename classes12.zip to classes12.jar and put it in ant's lib directory. At least that works for me. -Original Message- From: Euan Guttridge [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 12:47 PM To: '[EMAIL PROTECTED]' Subject

RE: Task to test for empty directory

2002-01-17 Thread Euan Guttridge
Agree - this would also be very useful to me. -Original Message- From: Daniel Hoppe [mailto:[EMAIL PROTECTED]] Sent: 16 January 2002 22:05 To: '[EMAIL PROTECTED]' Subject: Task to test for empty directory Hi all, I'm searching for a possibility to test for empty directories, something

pre-compile JSPs on iPlanet

2001-12-10 Thread Euan Guttridge
be helpful. Thanks Euan Guttridge Technical Operations BuildOnline 40 Holborn Viaduct London EC1N 2PB UK Customer Services: 0870 241 2283 Telephone: +44 (0)20 7836 2883 Fax: +44 (0)20 7836 2886 www.BuildOnline.com 'Save Time, BuildOnline

RE: VSSGET and labeling...

2001-12-05 Thread Euan Guttridge
(Just seen late posting but may help others if not already solved) I have also experienced hours of pain using VSS and getting [Version not found] when getting individual labels. The problem is a 100% bug with VSS. However Microsoft kindly wrote a small .exe for me which will recursively get

RE: VSSGET and labeling...

2001-12-05 Thread Euan Guttridge
can post it to a public site, please do that too. Many mail services may not allow .exe attachments. Thanks, Shawn -Original Message- From: Euan Guttridge [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 05, 2001 9:50 AM To: 'Ant Users List' Cc: '[EMAIL PROTECTED]' Subject: RE

RE: VSSGET and labeling...

2001-12-05 Thread Euan Guttridge
Peter, The .exe was zipped, however your virus protection has looked inside the zip. I would be happy to pst to a public HTTP server if you give me directions. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 05 December 2001 16:07 To: [EMAIL PROTECTED]

Running parallel tasks

2001-11-28 Thread Euan Guttridge
Hi, I am attempting to run various non - dependant target's in parallel in my script using the parallel task. I get the error below, optional.jar is not the problem. I have a feeling I may be confusing tasks with targets, the documentation states: Parallel is a container task - it can

HTML in email task

2001-11-01 Thread Euan Guttridge
I would be interested to hear from anyone that has succesfully used html within the default mail task. As an example a bog standard text mail task is below. Thanks. target name=mail_active_notice mail from=[EMAIL PROTECTED] tolist=[EMAIL PROTECTED]

VSSGET label

2001-08-22 Thread Euan Guttridge
, makedist /target /project Euan Guttridge Systems Admin BuildOnline Hamilton House Mabledon Place London WC1H 9BB Ph: +44 (0)20 7836 2883 Fax:+44 (0)20 7836 2886 www.BuildOnline.com 'Save Time, BuildOnline' This email and any files transmitted

RE: VSSGET label

2001-08-22 Thread Euan Guttridge
Solved - thanks. It was a VSS bug, the fix is here : http://support.microsoft.com/support/kb/articles/Q197/0/50.ASP?LN=EN-USSD=t echFR=0qry=version%20not%20foundrnk=8src=DHCS_MSPSS_tech_SRCHSPR=VSS Euan -Original Message- From: Jon Skeet [mailto:[EMAIL PROTECTED]] Sent: 22 August

VisualSourceSafe and ANT

2001-08-15 Thread Euan Guttridge
Does anyone have any example ANT scripts that integrate with VisualSourceSafe? Anything simple or complex would be a massive help! Thanks, Euan

RE: VisualSourceSafe and ANT

2001-08-15 Thread Euan Guttridge
? Much appreciated. Thanks, Euan. -Original Message- From: Jim Leary [mailto:[EMAIL PROTECTED]] Sent: 15 August 2001 11:43 To: [EMAIL PROTECTED] Subject: Re: VisualSourceSafe and ANT - Original Message - From: Euan Guttridge [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday

RE: ANT with VisualSourceSafe

2001-08-14 Thread Euan Guttridge
Hi, Thanks for the info. Are these the only docs available for integrating ANT with VisualSourceSafe, I'm not sure these are the ones you refer to? http://jakarta.apache.org/ant/manual/OptionalTasks/vsslabel.html http://jakarta.apache.org/ant/manual/OptionalTasks/vssget.html Thanks, Euan.

RE: ANT with VisualSourceSafe

2001-08-14 Thread Euan Guttridge
Thanks Jon, now using Ant1.4Beta and found the integrating ANT with VisualSourceSafe documentation. - Does anyone have any example *complete* ANT scripts that integrate with VisualSourceSafe. These would provide an excellent starting point for a beginner like myself. - Thanks, Euan

ANT with VisualSourceSafe

2001-08-13 Thread Euan Guttridge
I would be very grateful for pointers to info and advice on integrating ANT with MS VisualSourceSafe, if possible from the very basics. Thanks, Euan.