Long time not used, but maybe that helps:

    <macrodef name="startAnt">
        <attribute name="args" default=""/>
        <sequential>
            <java classname="org.apache.tools.ant.launch.Launcher" 
taskname="startAnt" errorproperty="nul">
                <arg line="@{args}"/>
                <permissions>
                    <revoke class="java.lang.RuntimePermission" name="exitVM"/>
                    <grant  class="java.lang.RuntimePermission" name="*"/>
                    <grant  class="java.lang.reflect.ReflectPermission" 
name="*"/>
                    <grant  class="java.util.PropertyPermission" name="*" 
actions="read,write"/>
                    <grant  class="java.io.FilePermission" name="&lt;&lt;ALL 
FILES&gt;&gt;" actions="read,write,delete,execute"/>
                </permissions>
            </java>
        </sequential>
    </macrodef> 

<startAnt args="-logger MyLogger"/>


Jan


>-----Ursprüngliche Nachricht-----
>Von: Jeffrey E Care [mailto:[EMAIL PROTECTED] 
>Gesendet: Montag, 11. Juli 2005 19:22
>An: Ant Users List
>Betreff: Re: ant task and Ant options
>
>One of the gurus may have a better solution, but I think that 
>you're going to have to use the <exec> or <apply> tasks to 
>fork a new VM for Ant in order to pass those options.
>
>JEC
>--
>Jeffrey E. Care ([EMAIL PROTECTED])
>WebSphere Build SWAT Team Lead
>WebSphere Build Tooling Lead (Project Mantis) 
>https://w3.opensource.ibm.com/projects/mantis
>
>
>"Paul Munsey \(pmunsey\)" <[EMAIL PROTECTED]> wrote on 
>07/11/2005 01:04:50 
>PM:
>
>> I'm using the ant task to start a secondary build and I want to pass 
>along
>> logger options. Does anyone know how to pass along either the '-e' 
>option or
>> '-logger ...' option into an ant task? The command line 
>options I use 
>for
>> the initial Ant command do not  get passed down into the 
>secondary ant 
>call
>> (task) even if I use the ANT_ARGS environment setting.
>> 
>> Paul Munsey
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to