RE: Using shell command in ANT script

2010-11-25 Thread Ludwig, Michael
> Thanks for that tip of . You can also use the > to remove directory names if you so choose: Or even (starting with 1.8.2 or building from trunk) the newly introduced ! Lots of options ... http://ant.apache.org/manual/Types/mapper.html Michael

RE: Using shell command in ANT script

2010-11-24 Thread Ludwig, Michael
> > > > > > > It's , not . And you could also use : You'll probably get absolute pathnames then. (At least that's what I get.) Michael - To unsubscribe, e-m

RE: xmlTask - Help

2010-11-22 Thread Ludwig, Michael
> In your particular use case, you can use xslt. You just need > to write an xsl file doing the change that you would like. Here's the XSL file you need: http://www.w3.org/1999/XSL/Transform";> terracotta Best, Michael -

RE: Executing javascript ant task with jdk 1.6

2010-11-16 Thread Ludwig, Michael
> > Detected OS: HP-UX > > Adding reference: ant.ComponentHelper > > Setting ro project property: ant.version -> Apache Ant version 1.6.5 > > compiled on June 2 2005 > > There was no 1.6 back then. But 1.6.5 is the latest 1.6. Okay, this is not clear. So: There was no JDK 1.6 back then. But Ant

RE: Executing javascript ant task with jdk 1.6

2010-11-15 Thread Ludwig, Michael
> I am executing a ant javascript task and while executing it I am > getting error java.lang.NoSuchMethodError: > org.mozilla.javascript.Context.getDebuggableEngine()Lorg/mozilla/javascript/debug/DebuggableEngine > ; > It was working fine with JDK 1.5 but it is giving error with JDK1.6 Sun JDK 1.

RE: conditions in antlib?

2010-11-12 Thread Ludwig, Michael
> have you given something like > > > > > > > > a try? What do you get?? I haven't tried that. I have yet to explore . I was thinking of something like this: But I don't know if you can adapt it to your purposes. Michael

RE: conditions in antlib?

2010-11-12 Thread Ludwig, Michael
Moin Wolfgang, > I want to provide a *single antlib* with the following requirements: > (a) must work with Ant 1.7.x and newer > (b) uses appearing to be a 1.8.x feature. > don't we need a conditional component-, type-, > macrodef and taskdef definition?? You could parse ${ant.version}. ant.

RE: Search for properties file in parent directories

2010-11-11 Thread Ludwig, Michael
Merci Antoine et Dominique! > But may I inquire why you need that? Of course. :-) I don't really need this, I was just wondering whether it was possible. I could have maintained different configurations in different subdirectories, overriding configurations in directories higher up the tree. A us

Search for properties file in parent directories

2010-11-11 Thread Ludwig, Michael
On the command line, I can instruct ant to go searching for a build file by climbing up the directory tree: ant -h ... -find(s)earch for buildfile towards the root of -s the filesystem and use it From within a script, I can instruct ant to load properties from a fi

RE: Uninstalling with ANT's RPM target

2010-11-10 Thread Ludwig, Michael
> I want to have > two tasks in ant file > 1)ant install from spec file *( That is easy)* > 2)Ant uninstall by simply running the Linux's *rpm -e package > *command. Take a look at the optional task and the help for your rpm command, or some examples like here: http://www.thegeekstuff.com/2010

RE: How to script database upgrade using ANT script

2010-11-09 Thread Ludwig, Michael
> I have tried using the and other examples > from Google but I can't get it to work. Then you should try a little harder, it is not difficult, certainly way less difficult than anything involving JBoss. Start with a minimum script and the Ant manual. You shouldn't need more. Good luck, Michael

RE: How to script database upgrade using ANT script

2010-11-09 Thread Ludwig, Michael
> having difficulty scripting a > routine to tell it that when a condition is not met it should exit. Look at the docs for to see how to set the property. Michael - To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For

RE: How to script database upgrade using ANT script

2010-11-09 Thread Ludwig, Michael
I commented on the task: > Note that the first example given in the manual is sort of > stupid, as it is wasteful to call "ls -l" once for each file > in a list of possibly hundreds of files, spawning a new > process each time around. You can have Ant execute the batch all at once by supplying:

RE: How to script database upgrade using ANT script

2010-11-05 Thread Ludwig, Michael
> can you please provide an example of how I could do this? If you didn't top-post, it'd be easier to read your mail. Take a look at the documentation for the task in the manual. Well, scroll down to the example section. Looks like the task applies the command to each file in the nested . Which

RE: svnant - deploying from Subversion

2010-11-05 Thread Ludwig, Michael
> I "deploy" ant scripts from svn to different servers. > The configuration information is stored in directories. > The ant script knows which environment it is in [...] By means of calling ? Michael - To unsubscribe, e-mail: u

RE: How to script database upgrade using ANT script

2010-11-04 Thread Ludwig, Michael
> I need to write an ant script which upgrades a database version from > base level 1.00 to a given version number by running a series of mysql > (ver 5.1.45) scripts. > > Using ANT script I need to: > 1) create a database > 2) import mysql database(s) dump to a new schema > 3) check current datab

svnant - deploying from Subversion

2010-11-04 Thread Ludwig, Michael
Our web app source code is stored in Subversion. It's not Java, it's a script app. It needs to be deployed to various servers, and some configuration data needs to be taken into account. There is no automation at the moment, but I'm about to change that. I'm presently cobbling together a script

RE: ant-contrib: HTTPS and unverifiable certificate

2010-11-04 Thread Ludwig, Michael
> > Does anyone know if I can instruct the task, or rather > > the HTTP library it is using to continue in the face of an > > unverifiable certificate, in the way curl can be configured > > accordingly using the -k/--insecure switch? > > Looks like using the keytool utility might bring some pr

RE: ant-contrib: HTTPS and unverifiable certificate

2010-11-04 Thread Ludwig, Michael
> Does anyone know if I can instruct the task, or rather > the HTTP library it is using to continue in the face of an > unverifiable certificate, in the way curl can be configured > accordingly using the -k/--insecure switch? Looks like using the keytool utility might bring some progress. Mic

ant-contrib: HTTPS and unverifiable certificate

2010-11-04 Thread Ludwig, Michael
I'd like to capture and process the response from the ant-contrib task. There are two documented ways of capturing the response, neither of which appears to work for me. Is there anything I'm missing? Yes, I found out myself. The URL I was posting to was HTTPS with an unverifiable certificate.

RE: Windows authentication

2010-11-04 Thread Ludwig, Michael
> > > Thanks, Kent - this works fine. Michael

Windows authentication

2010-11-03 Thread Ludwig, Michael
I want to deploy stuff to a server accessible only by its UNC path supplying a username and password. This is usually done using Windows Explorer. I think this is called Windows Authentication, or NTLM, or both - not sure. What are my options using Java? Specifically, using Ant? The clients I w

RE: simplify copy with regexpmapper (mapper/regexp)

2010-09-18 Thread Ludwig, Michael
> Here's working code: > > > > > > > > > > >from="^[-_a-zA-Z0-9]+/lib/(.*)" > to="\1" /> > > > One more observation is that the is also a "grepper" (as in "map" and "grep" in Perl), i.e. a filter defining a match c

RE: simplify copy with regexpmapper (mapper/regexp)

2010-09-18 Thread Ludwig, Michael
> And this is hardly surprising as I was confounding shell patterns and > regular expressions. The following, while not working, is at least a > suitable regular expression: > >from="${source.dir}/[-_a-zA-Z0-9]+/lib/(.*)" > to="\1" /> But of course, just for the fun of it, I had i

RE: simplify copy with regexpmapper (mapper/regexp)

2010-09-18 Thread Ludwig, Michael
> The following does not work for me, though: > > > > > > > > > > >handledirsep="1"/> And this is hardly surprising as I was confounding shell patterns and regular expressions. The following, while not working, is at least a suitable regular

RE: simplify copy with regexpmapper (mapper/regexp)

2010-09-18 Thread Ludwig, Michael
> From: Ludwig, Michael > Unfortunately, however, the task in Ant 1.8.1 does not support > a nested . > > copy doesn't support the nested "regexmapper" element. Fortunately, however, it starts supporting it once you spell it correctly: The followin

RE: Is ANT support WebDav task?

2010-09-18 Thread Ludwig, Michael
> From: Chee Yang Chau > To: Ant Users List > Subject: Is ANT support WebDav task? > > As subject. >From "Ant in Anger", apparently written in 2005: A WebDav task has long been discussed, which would provide a more secure upload to web servers, but it is still in the todo list. Rumour has

RE: simplify copy with regexpmapper (mapper/regexp)

2010-09-18 Thread Ludwig, Michael
> Now I want to copy the files below src/*/lib, or most of them. > And I want to strip the leading two directories. I came up with > the following solution, but it is clumsy and I think there is > a better way that I'm missing. It appears to me from the documentation of the Mapper Type [1] that re

RE: simplify copy with regexpmapper (mapper/regexp)

2010-09-18 Thread Ludwig, Michael
> What about something like this: > > > > > > > > > > > > > I stole this from the ANTLR build script for actionscript target. It > does have a couple other replacestring elements, but this is the one > you would be interes

simplify copy with regexpmapper (mapper/regexp)

2010-09-16 Thread Ludwig, Michael
Consider this filtered view of my directory tree: src/HTML-XForm/lib src/ResPath/lib src/XML-MSXML6/lib You get the idea, it is: src/*/lib Now I want to copy the files below src/*/lib, or most of them. And I want to strip the leading two directories. I came up with the following solution, but i

RE: help in copy files from list

2010-08-26 Thread Ludwig, Michael
> -Original Message- > From: Rajesh Kumar [mailto:rajeshkumarmaht...@gmail.com] > I have one file called list.txt where i have mentioned all > the files which need to be copied from specific directry. > > can you please help me with the right copy task syntax which > read the files nam

Bootstrap script, fetch prerequisites

2010-07-29 Thread Ludwig, Michael
What's the best way to bootstrap an Ant script installation? Say you're going to introduce an Ant script to automate tasks in dev environment, and you're going to add new functionality as you go, possibly modifying the script a lot, and introducing various dependencies along the road, like JARs, n