ANT remote machine file permissions issue

Hello everyone,

I'm new here, so hopefully I posted this in the right category.

I'm having a hard time finding a way to remotely change permissions on a file located on a UNIX server. The ANT script will be ran from a Windows machine.

I read that the chmod task simply calls the underlying os's chmod command, which would cause a problem since I'm running it from Windows.

Is it possible to do this with the exec task, or do I have to acquire an third party library to be able to do this?

Any help would be greatly appreciated,


PS: I was introduced to ANT not too long ago - Sorry if there is an obvious answer to this.

1 comment
Comment actions Permalink

Well I found it, in case this might help anyone, the task required to do this is <sshexec> (assuming you have ssh on both machines).


Please sign in to leave a comment.