ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Loughran <>
Subject Re: How to remove tasks (commands)?
Date Sun, 02 Apr 2006 20:05:42 GMT
Zsolt wrote:
> Hi,
> ant is integrated into our application (via API, this ant is not just
> started as an external executable). Depending on the permissions of a user I
> would like to remove some tasks (for example "exec") but it must be user
> dependent.
> With other words: in the same JVM, user "a" can execute "exec" but user "b"
> not.
> How can I do that?

this is way out of ant's own set of use cases; you are on your own.

I would look at how ant loads its own tasks and datatypes (via the files, and come up with a way of defining per-user 
tasks. However, I would never trust it to be that secure. You need to 
know exactly which ant tasks are extension points for inline scripting, 
new tasks and datatypes, etc, and make sure that they are not allowed.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message