You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Zsolt <zk...@intland.com> on 2006/04/01 09:36:19 UTC

How to remove tasks (commands)?

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?

Zsolt




---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: How to remove tasks (commands)?

Posted by Steve Loughran <st...@apache.org>.
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 
defaults.properties) 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: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org