RE: Mail a nice pretty html build log...

2005-06-14 Thread Ivan Ivanov
--- [EMAIL PROTECTED] wrote: > > Hello > > Kindly post this information to the group. > > Thanks > srikrishna Hello, Below you will find MailAttachLogger.java. Here are instruction how to test it: 0) Compile and jar MailAttachLogger.java 1) Copy the jar to ${user.home}/.ant/lib 2) Download J

RE: Mail a nice pretty html build log...

2005-06-14 Thread Ivan Ivanov
--- "Anderson, Rob (Global Trade)" <[EMAIL PROTECTED]> wrote: > Ivan, Thanks. What I'm really looking for is an > HTMLMailLogger. > > All, I have almost got one working but I am having > some trouble running the xslt. I am currently mastering XSLT and while I am not a guru, I will find it usef

RE: Sshexec task, running commands using 'sudo'

2005-06-14 Thread S I
You just discovered one of the shortcomings (or is it?) of sshexec. Even if your Admin removes sudo's psswd, you will not be able to use that ant task as fars I know and been told by this forum. However, couple of folks here, have mentioned that Antcontrib (google or go to sourceforge.net to

RE: Mail a nice pretty html build log...

2005-06-14 Thread Anderson, Rob (Global Trade)
Ivan, Thanks. What I'm really looking for is an HTMLMailLogger. All, I have almost got one working but I am having some trouble running the xslt. I'm not really committed to making it work, since I don't really need it, but if anyone is interested in it, I'll send out what I have and you can fi

RE: Sshexec task, running commands using 'sudo'

2005-06-14 Thread Anderson, Rob (Global Trade)
Have your sysadmin configure sudo to not require a password for the command you are trying to run. If this task you fall on you, read the sudo manual for details on how to set that up. -Rob A > -Original Message- > From: Rich Harris [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 14, 20

RE: Sshexec task, running commands using 'sudo'

2005-06-14 Thread Rich Harris
An addendum...I noticed that when running 'sudo' commands manually I get prompted for my password the first time I use it. That may be where it's hanging. The uname/pass auth. only happens upon the initial ssh connect using the sshexec and doesn't carry over through the session if you need to run s

Sshexec task, running commands using 'sudo'

2005-06-14 Thread Rich Harris
I'm having an issue where if I need to run 'sudo' before running a command during my ssh session, it just hangs ant until I escape out of ANT. Has anyone else had this problem? I'm open to ideas as to why this is happening or how I can get around it while staying within the ANT environment. Tha

RE: Javac version

2005-06-14 Thread Payette, Don J
Thanks, Darin. That worked. Being a novice in Eclipse and Ant, I didn't know where the problem was. So I tried here first. I guess my strategy wasn't too far off, since it worked. :-) Don Payette >THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus

Re: Mail a nice pretty html build log...

2005-06-14 Thread Ivan Ivanov
Rob, I have an extension of MailLogger that allows to send emails with some files attached to it. It works pretty closely to the original oata.listener.MailLogger. You only should specify the location of the attachments by specifying MailLogger.success.attachments and MailLogger.failure.attachment

Mail a nice pretty html build log...

2005-06-14 Thread Anderson, Rob (Global Trade)
Hi all, I would like to be able to mail a nice pretty html build log. There is a slight dilema though. If I run: ant -listener org.apache.tools.ant.XmlLogger The log is not produced until the build is complete. I would like to do this in one invocation of ant. I think it might be possible if I

Re: ZipException on javac task moving from jdk1.4 to jdk1.5

2005-06-14 Thread Peter Reilly
What I wrote below is incorrect. The problem is due to a difference between javac in jdk1.4 and jdk 1.5. This can be seen on the command line: [EMAIL PROTECTED]:~/tmp/test > export JAVA_HOME=/usr/java/j2sdk1.4.2 [EMAIL PROTECTED]:~/tmp/test > export PATH=$JAVA_HOME/bin:$PATH [EMAIL PROTECTED]:~/t

Re: Javac version

2005-06-14 Thread Darin Swanson
Which Eclipse? I would make an educated guess that you are running Eclipse with 1.4.2 but you are doing your build with 1.3.* or have a 1.3.* tools.jar on your Ant runtime classpath? Check the JRE tab and the classpath tab for your Ant launch configuration that is failing. HTH Darins Note: in

Javac version

2005-06-14 Thread Payette, Don J
I have a project setup in Eclipse and am using ant to do my builds from within Eclipse. Things have been working fine, until I tried to move from Java 1.3.1 to Java 1.4.2. I get the following output from ant. Buildfile: C:\SPEC\build.xml load-corp: compile: [echo] The classpath for

RE: macrodef+fileset

2005-06-14 Thread Bill Rich
The attached macro snippet does something like what you want. It takes filetypelist as a parameter. filetypelist is a semi-colon separated list of items from a control file. HTH Bill -Original Message- From: [EMAIL PROTECTED] [mailto:[E

Re: translating make to ant.

2005-06-14 Thread Matt Benson
--- [EMAIL PROTECTED] wrote: > Hello gentle people; > I might be dreaming but is there any tool out there > to translate makefiles to antfiles?Or maybe a doc > somewhere that explains the mapping of concepts > between the two build tools? > Many thanks for any help. Please see the following bug r

Re: Count number of files in fileset

2005-06-14 Thread Peter Reilly
Dick, Brian E. wrote: Where is ${toString:} documented? Are there any other pseudo-properties? It is not documented ... The code contains the comment: // Experimental/Testing, will be removed So, I guess that it would be better to use DD's instead. There are no more psuedo-properties. Pe

macrodef+fileset

2005-06-14 Thread hind.lwahhabi
Hello gentle people; i would like to write a macrodef which calls an executable that takes a list of files as arguments to its options. For the macrodef/exec part i manage it, but how to specify a fileset (or a path like struture) as an argument? How can i do that? Thanks for any help! -Or

RE: Count number of files in fileset

2005-06-14 Thread Dick, Brian E.
Where is ${toString:} documented? Are there any other pseudo-properties? -Original Message- From: Peter Reilly [mailto:[EMAIL PROTECTED] Sent: Monday, June 13, 2005 11:58 AM To: Ant Users List Subject: Re: Count number of files in fileset Matt Benson wrote: >1) Ant 1.7 will contain a

RE: Junit Tests with depedencies - possible to determine order

2005-06-14 Thread Keith Hatton
I've found the GSBase extension for Junit (www.gargoylesoftware.com) useful for doing this sort of thing. It's simply a matter of returning a different implementation from the static suite() method in your test case class. I'm not aware of anything in Ant that does this specifically, though. Hope

Re: Junit Tests with depedencies - possible to determine order

2005-06-14 Thread Joe Schmetzer
On Tue, June 14, 2005 9:31 am, Mikael Petterson (KI/EAB) said: > Hi, > > we have a couple of junit tests that have 'oder' dependecy like, first > CreateHwTest must be executed and then RecoverHwTest. > Is it possible to set the order which the junit tests must be executed in? JUnit explicitly does

Junit Tests with depedencies - possible to determine order

2005-06-14 Thread Mikael Petterson (KI/EAB)
Hi, we have a couple of junit tests that have 'oder' dependecy like, first CreateHwTest must be executed and then RecoverHwTest. Is it possible to set the order which the junit tests must be executed in? cheers, //mikael - To

translating make to ant.

2005-06-14 Thread hind.lwahhabi
Hello gentle people; I might be dreaming but is there any tool out there to translate makefiles to antfiles?Or maybe a doc somewhere that explains the mapping of concepts between the two build tools? Many thanks for any help. This message is for the designated recipient only and may contain pri

Re: bug in rmic with jdk 1.5

2005-06-14 Thread Stefan Bodewig
On Tue, 14 Jun 2005, <[EMAIL PROTECTED]> wrote: > I just tried ant 1.6.5 and see the same problem. Yes, when I read your original post a second time I realized that we do adapt the changed defaults, but we didn't change our expectations for the generated files. Can you please open a new bug repo

Re: bug in rmic with jdk 1.5

2005-06-14 Thread ralapa
Z:\70\build>ant -version Apache Ant version 1.6.4 compiled on May 19 2005 We were using Ant 1.6.2 with JDK 1.4 with no problems. We upgraded to Ant 1.6.4 and JDK 1.5 and now we are seeing the problem. I just tried ant 1.6.5 and see the same problem. Maybe the fix doesn't work due to the option

Re: bug in rmic with jdk 1.5

2005-06-14 Thread Stefan Bodewig
On Tue, 14 Jun 2005, <[EMAIL PROTECTED]> wrote: > Is this a known problem? Yes, I think so. And I also think it has been fixed in ant 1.6.3 and later (by adapting Ant to the new defaults). Which version of Ant are you using? Stefan -