ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Woodward, Andy" <Andy.Woodw...@littlewoods.co.uk>
Subject subant - writing mulitple output files using - one for each build.xml
Date Mon, 24 Nov 2003 16:51:17 GMT
Hi,

I'm using subant to run multiple build files and would like a separate output log for each
build file that is run. Ideally the name of the output file should link it to the name of
the project in the new(child) build file.  I tried using the output attribute like this 

        <target name="subant" depends="init">
            <subant target="getLatest" output="${log.dir}/${ant.project.name}.log" >
              <fileset dir="${services.dir}" includes="**/build.xml"/>
            </subant>
        </target>

hoping that the ${ant.project.name} would pick up the project name of the new (child) project
rather than the current project - however as expected it picked up the current project, with
the output file only containing details of the last build.xml that was run.

Any ideas how I could do this ?

Thanks

Andy

***********************************************
This e-mail and its attachments are confidential
and are intended for the above named recipient
only. If this has come to you in error, please 
notify the sender immediately and delete this 
e-mail from your system.
You must take no action based on this, nor must 
you copy or disclose it or any part of its contents 
to any person or organisation.
Statements and opinions contained in this email may 
not necessarily represent those of Littlewoods.
Please note that e-mail communications may be monitored.
The registered office of Littlewoods Limited and its
subsidiaries is 100 Old Hall Street, Liverpool, L70 1AB.
Registered number of Littlewoods Limited is 262152.
************************************************


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


Mime
View raw message