Re: [Ivy] webdav support

2009-04-16 Thread Hans Dockter


On Feb 11, 2009, at 9:46 PM, Maarten Coene wrote:

I don't know about vfs, but Ivy doesn't fail any longer if you have  
httpclient-2.x in your classpath.

In that situation, Ivy will use the default JDK URL classes...


Could you still use http authentication then?

- Hans




Maarten




- Original Message 
From: Hans Dockter m...@dockter.biz
To: Ant Developers List dev@ant.apache.org
Sent: Wednesday, February 11, 2009 8:24:30 PM
Subject: Re: [Ivy] webdav support

One problem with the webdav support of vfs was that that they were  
using an old version of commons-httpclient, which was incompatible  
to the version which is Ivy using for other purposes. It would be  
interesting to know if this is still an issue with the new webdav  
implementation of vfs.


- Hans

On Feb 11, 2009, at 8:56 AM, Xavier Hanin wrote:


Webdav support is often requested in Ivy, so I think it would be a
good idea to test this indeed.

Xavier

On Tue, Feb 10, 2009 at 10:53 PM, Matt Benson  
gudnabr...@yahoo.com wrote:


Actually, I've been meaning to poke the dev list on this one.   
Ralph Goers has recently added to Commons VFS trunk a new webdav  
implementation, based on Jackrabbit DAV instead of Slide.  It  
should be a priority (albeit perhaps a minor one) to test a trunk  
build of [vfs] to see if everything works as expected.


Regards,
Matt


--- On Tue, 2/10/09, Mandie Smith man...@houseofgnomes.net wrote:


From: Mandie Smith man...@houseofgnomes.net
Subject: webdav support
To: ivy-u...@ant.apache.org
Date: Tuesday, February 10, 2009, 3:43 PM
I've been looking through the archives, and the last
mention about webdav
support I've seen was March of last year.  I was
wondering if anyone has
looked into this and what their progress was?

thanks,
Mandie





-
To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org
For additional commands, e-mail: dev-h...@ant.apache.org






--Xavier Hanin - 4SH France
BordeauxJUG co leader - http://www.bordeauxjug.org/
Blogger - http://xhab.blogspot.com/
Apache Ivy Creator - http://ant.apache.org/ivy/

-
To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org
For additional commands, e-mail: dev-h...@ant.apache.org



--
Hans Dockter
Gradle Project lead
http://www.gradle.org





-
To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org
For additional commands, e-mail: dev-h...@ant.apache.org




-
To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org
For additional commands, e-mail: dev-h...@ant.apache.org



--
Hans Dockter
Gradle Project lead
http://www.gradle.org





-
To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org
For additional commands, e-mail: dev-h...@ant.apache.org



Replaceregexp in ANT

2009-04-16 Thread Pankaj Arora01
HI all,



I have an XML file that contain the following tags:



A

  UserNameUserA/UserName

  Passwordpassword/Password

  SIDrdf12/SID

  Host10.8/Host

/A

B

  UserNameUserB/UserName

  Passwordpassword/Password

  SIDrdf12/SID

  Host10.8./Host

/B





I have a property file that has following properties:

userNameA   TestA

passwordA   passwordA

userNameB   TestB

and so on...





Now I need to update the XML file with the corresponding properties. After 
updation output should be something like



A

  UserNameTestA/UserName

  ..

/A

B

  UserNameTestB/UserName

  

/B



I cannot use replace UserName(.)*/UserName because same tag is present in 
both A and B.



I know replaceregexp should serve the purpose but I am unable to do it due to 
multiple lines. I need to replace the complete set of A properties at one 
go...May be treating it as a single line.



How to do this?





Thanks in advance

Pankaj



 CAUTION - Disclaimer *
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely 
for the use of the addressee(s). If you are not the intended recipient, please 
notify the sender by e-mail and delete the original message. Further, you are 
not 
to copy, disclose, or distribute this e-mail or its contents to any other 
person and 
any such actions are unlawful. This e-mail may contain viruses. Infosys has 
taken 
every reasonable precaution to minimize this risk, but is not liable for any 
damage 
you may sustain as a result of any virus in this e-mail. You should carry out 
your 
own virus checks before opening the e-mail or attachment. Infosys reserves the 
right to monitor and review the content of all messages sent to or from this 
e-mail 
address. Messages sent to or from this e-mail address may be stored on the 
Infosys e-mail system.
***INFOSYS End of Disclaimer INFOSYS***


Re: [Ivy] webdav support

2009-04-16 Thread Maarten Coene

Yes, basic authentication should still be ok

Maarten



- Original Message 
From: Hans Dockter m...@dockter.biz
To: Ant Developers List dev@ant.apache.org
Sent: Thursday, April 16, 2009 9:12:45 AM
Subject: Re: [Ivy] webdav support


On Feb 11, 2009, at 9:46 PM, Maarten Coene wrote:

 I don't know about vfs, but Ivy doesn't fail any longer if you have 
 httpclient-2.x in your classpath.
 In that situation, Ivy will use the default JDK URL classes...

Could you still use http authentication then?

- Hans

 
 
 Maarten
 
 
 
 
 - Original Message 
 From: Hans Dockter m...@dockter.biz
 To: Ant Developers List dev@ant.apache.org
 Sent: Wednesday, February 11, 2009 8:24:30 PM
 Subject: Re: [Ivy] webdav support
 
 One problem with the webdav support of vfs was that that they were using an 
 old version of commons-httpclient, which was incompatible to the version 
 which is Ivy using for other purposes. It would be interesting to know if 
 this is still an issue with the new webdav implementation of vfs.
 
 - Hans
 
 On Feb 11, 2009, at 8:56 AM, Xavier Hanin wrote:
 
 Webdav support is often requested in Ivy, so I think it would be a
 good idea to test this indeed.
 
 Xavier
 
 On Tue, Feb 10, 2009 at 10:53 PM, Matt Benson gudnabr...@yahoo.com wrote:
 
 Actually, I've been meaning to poke the dev list on this one.  Ralph Goers 
 has recently added to Commons VFS trunk a new webdav implementation, based 
 on Jackrabbit DAV instead of Slide.  It should be a priority (albeit 
 perhaps a minor one) to test a trunk build of [vfs] to see if everything 
 works as expected.
 
 Regards,
 Matt
 
 
 --- On Tue, 2/10/09, Mandie Smith man...@houseofgnomes.net wrote:
 
 From: Mandie Smith man...@houseofgnomes.net
 Subject: webdav support
 To: ivy-u...@ant.apache.org
 Date: Tuesday, February 10, 2009, 3:43 PM
 I've been looking through the archives, and the last
 mention about webdav
 support I've seen was March of last year.  I was
 wondering if anyone has
 looked into this and what their progress was?
 
 thanks,
 Mandie
 
 
 
 
 -
 To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org
 For additional commands, e-mail: dev-h...@ant.apache.org
 
 
 
 
 
 --Xavier Hanin - 4SH France
 BordeauxJUG co leader - http://www.bordeauxjug.org/
 Blogger - http://xhab.blogspot.com/
 Apache Ivy Creator - http://ant.apache.org/ivy/
 
 -
 To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org
 For additional commands, e-mail: dev-h...@ant.apache.org
 
 
 --
 Hans Dockter
 Gradle Project lead
 http://www.gradle.org
 
 
 
 
 
 -
 To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org
 For additional commands, e-mail: dev-h...@ant.apache.org
 
 
 
 
 -
 To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org
 For additional commands, e-mail: dev-h...@ant.apache.org
 

--
Hans Dockter
Gradle Project lead
http://www.gradle.org





-
To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org
For additional commands, e-mail: dev-h...@ant.apache.org


  

-
To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org
For additional commands, e-mail: dev-h...@ant.apache.org



Re: Replaceregexp in ANT

2009-04-16 Thread Martin von Gagern
Pankaj Arora01 wrote:
 I know replaceregexp should serve the purpose but I am unable to do
 it due to multiple lines. I need to replace the complete set of A
 properties at one go...May be treating it as a single line.

Haven't fully understood everything before, but a FileTokenizer, maybe
together with the 's' flag to replaceregexp, should solve this.

http://ant.apache.org/manual/CoreTypes/filterchain.html#filetokenizer
http://ant.apache.org/manual/OptionalTasks/replaceregexp.html

The user mailing list is probably a better place to ask such questions
than this dev list. See http://ant.apache.org/mail.html

Greetings,
 Martin von Gagern



signature.asc
Description: OpenPGP digital signature


Stuck with what seems to be a charset issue

2009-04-16 Thread Remie Bolte
Hi,

I'm experiencing an issue which i've not yet encountered and am not able to
resolve :(

Since we have multiple products building on multiple JDK versions, i've
created a macrodef to initialize the specific build using the appropriate
JDK version. This works fine with JDK 1.4, but not with JDK 1.5.

Below you will find the code that is used to invoke java and the ant build,

java fork=true maxmemory=1024m failonerror=@{failonerror}
jvm=@{java.home}/bin/java
classname=org.apache.tools.ant.Main
classpath
fileset dir=@{ant.home}/lib/ includes=**/*.jar /
pathelement location=${shared.dir}/tools/lib/ant-contrib.jar /
pathelement location=@{java.home}/lib/tools.jar /
/classpath
syspropertyset
propertyref builtin=commandline /
propertyref builtin=system /
/syspropertyset
arg line='-buildfile ${macrodef.kickstart.productBuild}' /
arg line='-Dbasedir=@{basedir}' /
arg line='-Djava.home=@{java.home}' /
arguments /
/java

This produces the following error:

[java] Failed to load Main Class: org.apache.tools.ant.Main
[java] Java Result: 1

If I replace the classname  attribute with the jar attribute I get the
following error:

[java] java.lang.IllegalArgumentException: Null charset name
[java] at java.nio.charset.Charset.lookup(Charset.java:417)
[java] at java.nio.charset.Charset.isSupported(Charset.java:463)
[java] Exception in thread main
[java] Java Result: 1

I'm using ant 1.7.1

Cheers,

Remie