> 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
>
>
>
>
>
>
>
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
> 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
-
> > 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
> 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.
> 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
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.
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
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
> 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
> 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
> 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
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:
> 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
> 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
> 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
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
> > 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
> 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
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.
>
>
>
Thanks, Kent - this works fine.
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
> 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
> 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
> 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
> 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
> 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
> 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
> 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
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
> -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
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
32 matches
Mail list logo