Re: Validate properties (for example see that directories and files really exists before processing)

2009-01-15 Thread David Weintraub
Take a look at the task. This can verify that a directory or file exist.. You can also use the task and verify that a property is set via the subtask. They can also be combined: On Thu, Jan 15, 2009 at 1:00 PM, Kent Larsson wrote: > Hi, > > I have t

Ivy regex

2009-01-15 Thread Mondain
I am using a regex in my ivysettings.xml and its not working as expected for jars which have no revision. What I mean by not working is that it gets the jar fine from the repository but it leaves a "-" character in the file name, does anyone know what I'm doing wrong? or is this expected behavior?

Listmodules kind of action with extra attributes

2009-01-15 Thread Juha Ranta
I've implemented a recursive promotion in my build system from continuous integration builds to milestone versions. The ci builds are placed in a shared repository and the milestone builds in a public repository. When a module is promoted to the milestone status, the module gets a new revision but

Validate properties (for example see that directories and files really exists before processing)

2009-01-15 Thread Kent Larsson
Hi, I have two files for my new build setup, one is build.xml and the other is build.properties. The latter one is used to override default values for some properties as well as providing values for properties which vary between computers. Their contents are: $cat build.properties # Override

Re: doe sn't pick up an environment variable

2009-01-15 Thread Kent Larsson
On Thu, Jan 15, 2009 at 5:45 PM, Anna Teittinen wrote: > > Hi Kent, > > Great! You found a solution! > > I had the same problem recently with a project at work. > In my build.xml, I have the following to make it work: > > path="${env.PATH}:${cto7.home}/Plugin/FacetTfm/carat_sharp/init"/> > > wher

Re: doesn't pick up an environment variable

2009-01-15 Thread Kent Larsson
On Thu, Jan 15, 2009 at 5:48 PM, Francis Galiegue wrote: > Le Thursday 15 January 2009 17:25:26 Kent Larsson, vous avez écrit : > > Hi, I have a build.xml for my Ant build script and a build.properties > file > > for easier configuration. > > > >$ ls build.* > >-rw-r--r-- 1 tnek tnek 2

Re: doesn't pick up an environment variable

2009-01-15 Thread Kent Larsson
Yes, I was in the same shell. The shell output in my post was a copy paste from my actual shell with no commands left out. I only inserted some annotations in between them. :-) On Thu, Jan 15, 2009 at 5:41 PM, Scot P. Floess wrote: > > So, silly question... > > Below...are you in the same shell?

Mary Milne is out of the office.

2009-01-15 Thread Mary Milne
I will be out of the office starting 13/01/2009 and will not return until 28/01/2009. I am away from the office but will be checking emails quite frequently. In the case of urgent enquires please contact: Alison Litherland alitherl...@cambrigde.org for Content Ian Fairman or Lihong Yang for Syst

Re: Publishing multiple artifacts in one publish event

2009-01-15 Thread crashmeister
Never mind, I got it to work. Lesson: NEVER publish out of your source directory - always copy to dist and publish from there ! -- View this message in context: http://www.nabble.com/Publishing-multiple-artifacts-in-one-publish-event-tp21464294p21482153.html Sent from the ivy-user mailing li

Re: doe sn't pick up an environment variable

2009-01-15 Thread Anna Teittinen
Hi Kent, Great! You found a solution! I had the same problem recently with a project at work. In my build.xml, I have the following to make it work: where: ${env.PATH} is what is currently in my system path variable ${cto7.home}/Plugin/FacetTfm/carat_sharp/init is the path I want to

Re: doesn't pick up an environment variable

2009-01-15 Thread Francis Galiegue
Le Thursday 15 January 2009 17:25:26 Kent Larsson, vous avez écrit : > Hi, I have a build.xml for my Ant build script and a build.properties file > for easier configuration. > >$ ls build.* >-rw-r--r-- 1 tnek tnek 29 2009-01-15 17:01 build.properties >-rw-r--r-- 1 tnek tnek 270 2009-

Re: doesn't pick up an environment variable

2009-01-15 Thread Scot P. Floess
On Thu, 15 Jan 2009, Kent Larsson wrote: Hi again, It is solved now. I run Ubuntu and had defined CATALINA_HOME in etc/environment to get a system wide environment variable. I then used . /etc/environment to load the variable into the bash instance I used. Somehow ant could not pick up on th

Re: doesn't pick up an environment variable

2009-01-15 Thread Scot P. Floess
So, silly question... Below...are you in the same shell? Meaning...is it possible you have say 2 xterms open...running your build.xml where CATALINA_HOME is not set? for example, in the same xterm do: echo $CATALINA_HOME ant If not, I can't see why its not output... On Thu, 15 Jan 2009, K

Re: doesn't pick up an environment variable

2009-01-15 Thread Kent Larsson
Hi again, It is solved now. I run Ubuntu and had defined CATALINA_HOME in etc/environment to get a system wide environment variable. I then used . /etc/environment to load the variable into the bash instance I used. Somehow ant could not pick up on this variable until after I rebooted. I'm sure th

RE: Uptodate task not working

2009-01-15 Thread Martin Gainty
you need to specify a the mapper for srcfiles and specify the type for mapper http://ant.apache.org/manual/CoreTasks/uptodate.html merge type means The target file name will always be the same, as defined by to - from will be ignored. Gaius _

doesn't pick up an environment variable

2009-01-15 Thread Kent Larsson
Hi, I have a build.xml for my Ant build script and a build.properties file for easier configuration. $ ls build.* -rw-r--r-- 1 tnek tnek 29 2009-01-15 17:01 build.properties -rw-r--r-- 1 tnek tnek 270 2009-01-15 17:05 build.xml They are short and easy to understand: $ cat build.

Re: Uptodate task not working

2009-01-15 Thread Faded-Maximus
Looking at the mappers that are provided: identity, flatten, glob, merge and regexp, it seems like none of this is what I want. I looked in the ANT section before and it doesn't seem to help unfortunately, since I still don't get it. I based mine off this: [code] [/code] "sets the p

Re: Uptodate task not working

2009-01-15 Thread Brian Stephenson
You need to write a mapper for the srcfiles element, that will present the files as you need them presented to the UpToDate task. What wrappers are and what they do is something difficult to encapsulate in a single message. I usually dislike answers that just deflect someone to another reference,

Re: Uptodate task not working

2009-01-15 Thread Faded-Maximus
Thanks for the reply. I understand what you mean and it makes sense that it's not working. I'm not sure how I would go about implementing what I actually want too though. If the zip file is newer then any file in the unzipped location, I want to unzip the zipped file again so I have the most uptod

making ant use same class loader

2009-01-15 Thread karthikkk
I found that ant uses different class loaders for different targets(based on class paths probably). I want to make ant use the same class loader across all the targets is there a way to do that? Thanks in advance! -- View this message in context: http://www.nabble.com/making-ant-use-same-class-

Re: Ant accessing xls tasks

2009-01-15 Thread Francis Galiegue
Le Thursday 15 January 2009 12:13:05 Rohit P, vous avez écrit : > Hi, > Is there any way of accessing an excel sheet [rows, columns, sheet etc. in > an .xls] using Ant ? > Please point me if there exists any. > There's a Java API called jexcelapi [1] for reading/writing this type of files. I don'

Re: Invoking remote batch file using ANT

2009-01-15 Thread Rohit P
Hi Steve, Can you point me to any examples of SSHExec and telnet? Thanks a ton. On Mon, Jan 5, 2009 at 7:45 PM, Steve Loughran wrote: > Rohit P wrote: > >> Hi, >> I have to write a build script that will invoke a batch file on remote m/c >> > > if it runs SSH, you can in. If it is just a windo

RE: Ant accessing xls tasks

2009-01-15 Thread Rebhan, Gilbert
-Original Message- From: Rohit P [mailto:rohitmp@gmail.com] Sent: Thursday, January 15, 2009 12:13 PM To: Ant Users List Subject: Ant accessing xls tasks /* Hi, Is there any way of accessing an excel sheet [rows, columns, sheet etc. in an .xls] using Ant ? Please point me if there ex

Ant accessing xls tasks

2009-01-15 Thread Rohit P
Hi, Is there any way of accessing an excel sheet [rows, columns, sheet etc. in an .xls] using Ant ? Please point me if there exists any. Thanks Rohit

RE: How do I call antcall once per line of file using line value as parameter?

2009-01-15 Thread Rebhan, Gilbert
-Original Message- From: samcollins [mailto:sam...@gmail.com] Sent: Wednesday, January 14, 2009 8:37 PM To: user@ant.apache.org Subject: Re: How do I call antcall once per line of file using line value as parameter? /* Hey, I have a question on this. If I want to grab the value of the