Re: Perform tasks conditionally

2006-01-06 Thread Jeffrey E Care
The jar task already figures this out for you. -- Jeffrey E. Care ([EMAIL PROTECTED]) WebSphere v7 Release Engineer WebSphere Build Tooling Lead (Project Mantis) Steve Roy <[EMAIL PROTECTED]> wrote on 01/06/2006 09:24:43 PM: > Hello, > > I have been using Ant for about a year but I still feel

Perform tasks conditionally

2006-01-06 Thread Steve Roy
Hello, I have been using Ant for about a year but I still feel like I am a newbie, and maybe this explains my question, but you tell me. I have a script where I compile the sources for my project and jar it all up. This works well but I'm looking at adding an optimization where the Jar task

Problem with mail task

2006-01-06 Thread Rhino
I have a fairly trivial 'mail' task in my Ant script that is giving me this output: [mail] Failed to initialise MIME mail: javax/mail/MessagingException [mail] Sending email: Update ZoneEdit Password [mail] Sent email with 0 attachments Even though the email was sent and received without diffi

Re: delete task in Ant

2006-01-06 Thread Ken Gentle
That is what I get for making a snap answer... ;^) Alexey is absolutely correct. The multiple patterns will work, just for the record. Just not the better solution. Ken At 14:59 2006-01-06, you wrote: By default ANT ignores some files (CVS, backups,...). To make ANT see such files

Re: delete task in Ant

2006-01-06 Thread Alexey N. Solofnenko
By default ANT ignores some files (CVS, backups,...). To make ANT see such files add defaultexcludes="false" into element (see http://ant.apache.org/manual/CoreTypes/fileset.html ). Default excludes list: http://ant.apache.org/manual/dirtasks.html#defaultexcludes . - Alexey. Ken Gentle wrote

Re: delete task in Ant

2006-01-06 Thread Ken Gentle
The leading "." in the filenames (".#Test.log.1.23") is what is preventing this pattern from matching. That looks vaguely like an editor backup file or diff/merge tool backup file pattern. If you're trying to delete files that are named more conventionally (Test.log.1.23), you'll probably nee

delete task in Ant

2006-01-06 Thread DHARNA, AJAY [AG/1000]
I have a file(s) that get created in the build directory that I want to delete, so I used the delete task The files that get created are: .#Test.log.1.23 .#Test.log.1.24 Why does the ant task not recognize these files? Is there something wrong with the pattern tha

Regarding controlling log files in cruise control

2006-01-06 Thread Srikrishna_Parthasarathy
I have a question regarding cruisecontrol log files. It generates a cruisecontrol.log file with info and the window where cruise control is started. I wanted to generate the output in the log file only in case of errors. [cc]Jan-06 13:29:17 Main - CruiseControl Version 2.3.1 Compile

Re: AW: XmlProperty patternset reference

2006-01-06 Thread Tim Meals
Jan -- I've tried. :( I think you're right about importing a build file. That's just what I was going to try next. I was hoping to keep the patternsets defined in the properties definitions, that way I could build archives (WARs & EARs mostly) for each specific environment by using a set o

AW: XmlProperty patternset reference

2006-01-06 Thread Jan.Materne
Dont know have you tried? What you _can_ do is defining the patternset in its own buildfile and import that. Or via XML entities. Jan >Is it possible to set a within an XML property >file using the semanticAttributes setting? I see where you >can have an element with a pathid attri

XmlProperty patternset reference

2006-01-06 Thread Tim Meals
Is it possible to set a within an XML property file using the semanticAttributes setting? I see where you can have an element with a pathid attribute, which is interpreted when semanticAttributes is set, but I would like to define a patternset that is used by the build file. The relevant por

Re: Deployment to Websphere 6

2006-01-06 Thread Jeffrey E Care
What OS & processor arch. are you running this on? There's nothing in the ant tasks that I know of that ties them to the IBM JRE, but that doesn't mean that one (or more) of the classes the tasks depend isn't tied to the IBM JRE. I know it's a major customer pain, but unless you're running on S

Re: Deployment to Websphere 6

2006-01-06 Thread Sam . Tandy
Hi, Thanks for the advice. Will try Jefferey's suggestion in a moment. I've managed to get it working by switching the JRE that is used by the local Ant configuration in Eclipse to be the IBM JRE rather than Sun and adding the Bootstrap.jar to the CLASSPATH env variable (nasty, but just for now)

AW: AW: Deployment to Websphere 6

2006-01-06 Thread Jan.Materne
We should be able to solve that - with specialists from WebSphere (Jeffrey), Eclipse (Darin) and Ant (we all) on this list :-) Jan >-Ursprüngliche Nachricht- >Von: Jeffrey E Care [mailto:[EMAIL PROTECTED] >Gesendet: Freitag, 6. Januar 2006 16:38 >An: Ant Users List >Betreff: Re: AW: D

Re: AW: Deployment to Websphere 6

2006-01-06 Thread Jeffrey E Care
Sam: Have you tried your deployment steps from the command-line using ws_ant? http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic=/com.ibm.websphere.base.doc/info/aes/ae/rovr_antcmd.html I realize that you're using Ant 1.6.5 from Eclipse, but it would be nice to verify that yo

Re: Deployment to Websphere 6

2006-01-06 Thread Antoine Levy-Lambert
[EMAIL PROTECTED] wrote: > >The solution of adding the Jar to the classpath works but, as you said, it >is certainly not a nice way of doing this. > >Regarding the class loader: >If I have specified the jar in the runtime classpath for ant, then call the >IBM class to stop the server from a build

Re: AW: using a path element to copy to archive the whole structure

2006-01-06 Thread Matt Benson
Well, yeah... that too. :) --- [EMAIL PROTECTED] wrote: > Or take a HEAD version of Ant. > fileset´s and path´s are "only" a subset of resource > collections there. > > > Jan > > >-Ursprüngliche Nachricht- > >Von: Matt Benson [mailto:[EMAIL PROTECTED] > >Gesendet: Donnerstag, 5. Janu

RE: Problems using 'mail' task, not able to attach html file

2006-01-06 Thread Chon, Ae H
Thank you for helping. I was missing the two library dependencies. Once the jar files were reference as part of my CLASSPATH it fixed the problem. -Ae Hwa -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ivan Ivanov Sent: Tuesday, January 03, 2006 5:10 P

AW: AW: Deployment to Websphere 6

2006-01-06 Thread Jan.Materne
>The version of ant that IBM is using is 1.5.4. Was there a >change in the task structure that would require external tasks >to be updated to run under 1.6.5? Not that I am aware of. One of our big goals is backwards compatibility - including the API itself. Jan -

RE: AW: Deployment to Websphere 6

2006-01-06 Thread Erskine, Chris
The version of ant that IBM is using is 1.5.4. Was there a change in the task structure that would require external tasks to be updated to run under 1.6.5? Chris Erskine EDS Consulting Services Colorado Springs, CO Phone: 719-265-5962 Cell: 719-640-6488 -Original Message- From: [EMA

Re: AW: Deployment to Websphere 6

2006-01-06 Thread Sam . Tandy
Hi, Yes, tried adding it like that to the ant configuration for a single ant configuration and also under the general Ant settings under Window | Preferences | Ant. Thanks though. Sam. <[EMAIL PROTECTED]

AW: Deployment to Websphere 6

2006-01-06 Thread Jan.Materne
>I should have also mentioned that I'm using Ant integrated >into Eclipse 3.1 with the bootstrap.jar added to the Ant >classpath so I think this is being done already. > >>>* jars from ${user.home}/.ant/lib (unless -nouserlib is set) >>>* jars from ANT_HOME/lib > >Adding the jar to these

Re: Deployment to Websphere 6

2006-01-06 Thread Sam . Tandy
Hi Antoine, Thanks for the response. >>a) use one of the options below >>* -lib jars in the order specified by the -lib elements on the >> command line I should have also mentioned that I'm using Ant integrated into Eclipse 3.1 with the bootstrap.jar added to the Ant classpath so I thi

AW: AW: Equivalent to -lib option within the ant-file itself with no taskdef?

2006-01-06 Thread Jan.Materne
How do I inform Ant about the classpath to use for my optional tasks. I don't want to pass it through the commandline with -lib but within the ant file. To include ant-contrib, I have to do the following:

Re: AW: Equivalent to -lib option within the ant-file itself with no taskdef?

2006-01-06 Thread Frederic Chalons
Hi Jan, Thanks. I thought some discovering process was happening under the hood ... got a better understanding of optional tasks now ;) However, in the case of a foreach task, the classpath is indicated whithin the taskdef. How do I inform Ant about the classpath to use for my optional tasks.

Re: Deployment to Websphere 6

2006-01-06 Thread Antoine Levy-Lambert
Hello Sam, there are cases where the only options which really work are : a) use one of the options below * -lib jars in the order specified by the -lib elements on the command line * jars from ${user.home}/.ant/lib (unless -nouserlib is set) * jars from ANT_HOME/lib or b) p

AW: Equivalent to -lib option within the ant-file itself with no taskdef?

2006-01-06 Thread Jan.Materne
>To include ant-contrib, I have to do the following: > >// >/ / >// >/ / >// > >antcontrib.properties defined the >"typename=fully.qualified.java.classname" associations. > >However, for the FTP task, I can just pass as argument to the >-lib option the path of jakarta-oro

Equivalent to -lib option within the ant-file itself with no taskdef?

2006-01-06 Thread Frederic Chalons
Hi, To include ant-contrib, I have to do the following: // / / // / / // antcontrib.properties defined the "typename=fully.qualified.java.classname" associations. However, for the FTP task, I can just pass as argument to the -lib option the path of jakarta-oro and commo

Deployment to Websphere 6

2006-01-06 Thread Sam . Tandy
Hi, I am automating the deployment of an Ear file to Websphere 6 using Ant 1.6.5. I've been doing this with no problems using Websphere 5 but encountering problems when now using Websphere 6 and the same deployment code. I use the ant tasks defined in wsanttask.jar which comes bundled with Websp

Re: using a path element to copy to archive the whole structure

2006-01-06 Thread Stephane Nicoll
Thanks for the very fast response guys! Using Jelly in maven one I was able to convert my path into filesets as follows: ${java.source.paths} Cheers, Stéphane On 1/6/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Or take a HEAD v