On 3/12/08, neo anderson <[EMAIL PROTECTED]> wrote:
>
> How do I use shell script in ant? I try the following code, but it does not
> work.
>
>
>
>
>(echo "hi!";)
>
>
>
> Though it return build successfully. But there is not
> I'm using and tasks in a build script. These work
> well from my own PC, but when someone tries to run the script from a
> different computer, the script fails with an authentication error.
>
> I have been using and for so long, I no longer
> remember what I did to resolve this issue when I
> I have got the sshexec task in this format:
>
> trust="true" />
>
> Ant throws up saying:
>
> com.jcraft.jsch.JSchException: reject HostKey: xxx
Does the normal shell based sshexec works as in :
# ssh [EMAIL PROTECTED] xx.sh
Is it executing the xx.sh script remotely?
Regards,
- vihan
-
>
>
>
Thanks a million Gilbert !!! I REALLY appreciate all the effort you
have taken in thinking of this and testing it out :-) However i've
noticed something strange that the replaceregex task fails in
cretain(but not all) cases(if there are a VERY large number of files
nested in a deep director
Hello,
I have a rather strange issue while replacing strings from a
set of files. My objective is to replace occurences of :
../http://web1.foo.com with http://web1.foo.com
../../http://web1.foo.com with http://web1.foo.com
../../../http://web1.foo.com with http://web1.foo.com
and so on.
> > 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.
You could try this in exec(but its totally *nix specific)
your_command withparams_and_switches
> 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
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
> 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
> 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-<
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
>
> You could leave that or you have to use and encode the
> xml-charachter (<>&...).
Now that I look again the declaration is not really necessary :P
I have a little perl script for masking - for my own need:
>
> ---8-<---8-<---8-<---8-<---8-<---8-<---8-<---8-<-
Hello,
I have an a build file which generates another build file and then
executes it. I am creating the 2nd build file via an echo task to the file.
Something like this :
this is deploy.xml :
13 matches
Mail list logo