Re: accessing antlib svn

2007-08-20 Thread Stefan Bodewig
On Mon, 20 Aug 2007, Vijay Aravamudhan <[EMAIL PROTECTED]> wrote: > hi, I would like to contribute to the ant dotnet antlib. Great. Please join the dev list if you want to discuss your changes. > Does anyone know how I can get at least anonymous access to the > repository? That would be

accessing antlib svn

2007-08-20 Thread Vijay Aravamudhan
hi, I would like to contribute to the ant dotnet antlib. Does anyone know how I can get at least anonymous access to the repository? I couldnt find anything for the ant libs. Also, having some documentation about which branch I can code against would be helpful. Maybe I just havent searched en

Re: Testing a file if it is binary or not.

2007-08-20 Thread David Weintraub
I certainly wouldn't do this in Ant! I would use a Perl script to read the first 8000 or so bytes of a file and look for characters outside of what you'd expect to be ASCII range. Probably do a "cvs import" first, then go back through and see if there are any files that were added that were binar

ANT - CVS task to add a new file to CVS repository?

2007-08-20 Thread Bhanu Pabreja
Hi Guys, I am trying to add a new file to CVS project EmesApplication. It is a zip file named emesArchinve_1.zip? I try to checkout first and then do an add thru cvs ant task but get error each time I try to do it. >> Error is :cvs [add aborted]: there is no version here; do 'cvs checkout' fir

Testing a file if it is binary or not.

2007-08-20 Thread Ditrick, Gregory
This may not be for this forum, but I'm moving a PVCS repository to a CVS repository. I'm using ant to do this with cvs and pvcs tasks. I have to test a if a file is binary or not before adding it to CVS, but I have to do this on a Windows box. It is easy on Unix (file | grep...) or using or .

RE: for task with inline exec?

2007-08-20 Thread Ditrick, Gregory
Yes, I agree. It is very rare that more than 1 pass will do. VERY RARE. Most cases it is where you need multiple things or some special sorting of the data. In the case of getting multiple things, you have to weigh the cost of executing the command multiple times vs. using a intermediate local

Re: Suppressing error messages from chmod and chgrp tasks

2007-08-20 Thread DATACOM - Diego
Don't these tasks extend ? Can you simply redirect their error output to /dev/null? Even if I could, I do not know if I would want to do that since I would loose other useful information. Don't use these commands, and use where you have full control on the command line to use -f. --DD Ye

RE: for task with inline exec?

2007-08-20 Thread Matt Benson
--- "Ditrick, Gregory" <[EMAIL PROTECTED]> wrote: > Not a bad idea to use , if you are > not doing cross > platform stuff. > The use of a lot of this type of thing, > , can make the > ant script platform dependent or you will require > additional products > like Cygwin for Windows. > > Using red

Re: for task with inline exec?

2007-08-20 Thread Vihan Pandey
> Ant knows it is on windows and uses backslashes when storing > filenames in properties and paths. > These cause havoc if used in scripts for example: > > > ls -rtla ${basedir} > > > there are ways to work around this, however, they are usually not > worth it. Interesting. Oh by the way I fo

Re: for task with inline exec?

2007-08-20 Thread Vihan Pandey
On 8/20/07, Ditrick, Gregory <[EMAIL PROTECTED]> wrote: > Not a bad idea to use , if you are not doing cross > platform stuff. > The use of a lot of this type of thing, , can make the > ant script platform dependent or you will require additional products > like Cygwin for Windows. We currently ha

Re: Suppressing error messages from chmod and chgrp tasks

2007-08-20 Thread Matt Benson
Don't these tasks extend ? Can you simply redirect their error output to /dev/null? -Matt --- Dominique Devienne <[EMAIL PROTECTED]> wrote: > On 8/20/07, DATACOM - Diego <[EMAIL PROTECTED]> > wrote: > > It would be very useful for me if it was possible > to suppress > > error/diagnostic message

Re: for task with inline exec?

2007-08-20 Thread Peter Reilly
Ant knows it is on windows and uses backslashes when storing filenames in properties and paths. These cause havoc if used in scripts for example: ls -rtla ${basedir} there are ways to work around this, however, they are usually not worth it. Pter On 8/20/07, Ditrick, Gregory <[EMAIL PROTECT

RE: for task with inline exec?

2007-08-20 Thread Ditrick, Gregory
Peter, Sorry, I have not used Cygwin and ant in awhile, so forgive me on these questions. But, can ${file.separator} work for backslashes? Wouldn't ant translate ${file.separator} for you in the case you are running ant in Cygwin? Could you do ${file.separator}${file.separator} in case you h

RE: External Tools and Tasks listing

2007-08-20 Thread Leigh, Daniel G
Thank you Jan. I have corrected the version number reference on the Plex wiki. Daniel -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 13 August 2007 05:05 To: user@ant.apache.org Subject: AW: External Tools and Tasks listing I added it to HEAD. BTW: the ver

Re: for task with inline exec?

2007-08-20 Thread Peter Reilly
Even with cygwin, there are big issues with using bash on windows. The main issue is the **!!?%%££€€$$!!!*! backslashes characters for directories. Peter On 8/20/07, Ditrick, Gregory <[EMAIL PROTECTED]> wrote: > Not a bad idea to use , if you are not doing cross > platform stuff. > The use of a l

RE: for task with inline exec?

2007-08-20 Thread Ditrick, Gregory
Not a bad idea to use , if you are not doing cross platform stuff. The use of a lot of this type of thing, , can make the ant script platform dependent or you will require additional products like Cygwin for Windows. Using redirectors can make this type of thing platform independent. But, I've fou

Re: Suppressing error messages from chmod and chgrp tasks

2007-08-20 Thread Dominique Devienne
On 8/20/07, DATACOM - Diego <[EMAIL PROTECTED]> wrote: > It would be very useful for me if it was possible to suppress > error/diagnostic messages from chmod, chgrp and chown tasks. [...] > > All these three UNIX commands support the -f ("force option") [...] > > If you know any workaround other th

Suppressing error messages from chmod and chgrp tasks

2007-08-20 Thread DATACOM - Diego
Hi all, I am using Ant 1.7.0, JDK 5.0_04, Gentoo Linux. It would be very useful for me if it was possible to suppress error/diagnostic messages from chmod, chgrp and chown tasks. In the end of my build I change the permissions of a number of temporary and output files. For many of them the ch

SOLVED: Regenerating Modified Selector cache file (after it's deleted)

2007-08-20 Thread Fabricio M. Sanchez
Thankyou Jan, I've modified my "reset" target to include the pathconvert task and the cache file was successfully regenerated:

Re: for task with inline exec?

2007-08-20 Thread Vihan Pandey
> Why not use shellscript? didn't think of it :-) ---8-<---8-<---8-<---8-<---8-<---8-<---8-<---8-< cat deploy.properties | grep .js-version| sed s/.js-version=v.[0-9]*/,/g | tr -d '\n' | sed s/,$//g JS list: ${js.list} http://js.clear

AW: Regenerating Modified Selector cache file (after it's deleted)

2007-08-20 Thread Jan.Materne
You have to enforce a directory scanning, so that the modified selector has to do something. Without any write operation (move, copy) the simplest thing is storing the file list. Jan -Ursprüngliche Nachricht- Von: Fabricio M. Sanchez [mailto:[EMAIL PROTECTED] Gesendet: Montag,

Regenerating Modified Selector cache file (after it's deleted)

2007-08-20 Thread Fabricio M. Sanchez
Hi there, I've been using google for a while with no useful answers... Hopefully someone can point me in the right direction. My "check" target works fine, it copies any files that are different to the cache.properties file into my mod_src directory (excluding directories). However, I am trying

Validating XML with W3C schema and OASIS xmlcatalogs

2007-08-20 Thread Kale54
Hi all, in a xmlvalidate-task using a xmlcatalog nested step, I try this: ... http://schemas.xmlsoap.org/soap/envelope/ file="${schemasRoot}\envelope.xsd"/> ... and in my xmlcatalog i wrote: ... http://schemas.xmlsoap.org/soap/envelope/"; uri="file://c:/mydir/envelop

Re: for task with inline exec?

2007-08-20 Thread Peter Reilly
Why not use shellscript? cat deploy.properties | grep .js-version| sed s/.js-version=v.[0-9]*/,/g | tr -d '\n' | sed s/,$//g Form list: ${form.list} Peter On 8/20/07, Vihan Pandey <[EMAIL PROTECTED]> wrote: > > Have you tried exec

Re: for task with inline exec?

2007-08-20 Thread Vihan Pandey
> Have you tried execs outputproperty or redirectors? I'm having some trouble getting the pipes within the arg line : i.e ---8-<---8-<---8-<---8-<---8-<---8-<---8-<---8-< ---8-<---8-<---8-<---8-<---8-<---8-<---8-<

AW: for task with inline exec?

2007-08-20 Thread Jan.Materne
Have you tried execs outputproperty or redirectors? Jan -Ursprüngliche Nachricht- Von: Vihan Pandey [mailto:[EMAIL PROTECTED] Gesendet: Montag, 20. August 2007 13:11 An: Ant Users List Betreff: for task with inline exec? Hello, O.K, this question is about an Ant Contrib task(th

for task with inline exec?

2007-08-20 Thread Vihan Pandey
Hello, O.K, this question is about an Ant Contrib task(the for task). But I observed that Ant Contrib lists(ant-contrib-csv and ant-contrib-developers) was mainly for the developers of package itself rather than its users. So apologies if this is the wrong list to post this question. If it

AW: Two-level property names

2007-08-20 Thread Jan.Materne
Split into several properties files and use I also suggest providing a default.properties and use Or you'll do some tests so that needed parameters are really set. Think that ${env} could have an "illegal" value. Jan -Ursprüngliche Nachricht-

Re: Two-level property names

2007-08-20 Thread Prashant Reddy
May be a strategy like this will be of use : http://blogs.sun.com/geertjan/entry/p_img_src_http_blogs -Prashant On Mon, 2007-08-20 at 11:36 +0200, Krzysztof Kucybała wrote: > Hi, > > I just wanted to know if there is a possibility to achieve something > like this in Ant: > > -> I have a set of n

Two-level property names

2007-08-20 Thread Krzysztof Kucybała
Hi, I just wanted to know if there is a possibility to achieve something like this in Ant: -> I have a set of names that identify different deployment environments. say these are unit, dev, intern for now. -> I have a set of properties for each of these, all in one property file (wouldn't be