You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by Shekhar Yadav <sh...@cyadav.com> on 2006/11/03 16:38:22 UTC
task
Hello,
I needed to generate files ( configuration files, template files )
during our release process. Ant helped me in making the process similar,
but I had to write simple <template> task to configure the application.
<template> is same as <copy>, but populates the contents with properties.
Example.
property : prob.name=cassini.
property : prob.destination=saturn
A file with contents.
${prob.name} is already on it's way to ${prob.destination}.
then <template todir="configuration" file="prob.template"> task would
generate configuration files for me. If there is already task which
serves the purpose then please ignore the mail and let me know the task
name. :-). Also I know I can do that using <script> other combination of
tasks, but thought <template> task makes more sense. If you guys like
it, lets add it to ant.
Thanks
Chandrashekhar.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org
Re: task
Posted by Shekhar Yadav <sh...@cyadav.com>.
Cool, that's easier too. :-) . I will remove my <template> task.
Thanks.
Chandrashekhar.
Matt Benson wrote:
> You mean like
>
> <copy>
> <filterchain>
> <expandproperties />
> </filterchain>
> </copy>
>
> ?
>
> -Matt
>
> --- Shekhar Yadav <sh...@cyadav.com> wrote:
>
>
>> Hello,
>>
>> I needed to generate files ( configuration files,
>> template files )
>> during our release process. Ant helped me in making
>> the process similar,
>> but I had to write simple <template> task to
>> configure the application.
>> <template> is same as <copy>, but populates the
>> contents with properties.
>>
>> Example.
>>
>> property : prob.name=cassini.
>> property : prob.destination=saturn
>>
>> A file with contents.
>> ${prob.name} is already on it's way to
>> ${prob.destination}.
>>
>> then <template todir="configuration"
>> file="prob.template"> task would
>> generate configuration files for me. If there is
>> already task which
>> serves the purpose then please ignore the mail and
>> let me know the task
>> name. :-). Also I know I can do that using <script>
>> other combination of
>> tasks, but thought <template> task makes more sense.
>> If you guys like
>> it, lets add it to ant.
>>
>> Thanks
>> Chandrashekhar.
>>
>>
>>
>>
> ---------------------------------------------------------------------
>
>> To unsubscribe, e-mail:
>> dev-unsubscribe@ant.apache.org
>> For additional commands, e-mail:
>> dev-help@ant.apache.org
>>
>>
>>
>
>
>
>
> ____________________________________________________________________________________
> Get your email and see which of your friends are online - Right on the New Yahoo.com
> (http://www.yahoo.com/preview)
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
> For additional commands, e-mail: dev-help@ant.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org
Re: task
Posted by Matt Benson <gu...@yahoo.com>.
You mean like
<copy>
<filterchain>
<expandproperties />
</filterchain>
</copy>
?
-Matt
--- Shekhar Yadav <sh...@cyadav.com> wrote:
> Hello,
>
> I needed to generate files ( configuration files,
> template files )
> during our release process. Ant helped me in making
> the process similar,
> but I had to write simple <template> task to
> configure the application.
> <template> is same as <copy>, but populates the
> contents with properties.
>
> Example.
>
> property : prob.name=cassini.
> property : prob.destination=saturn
>
> A file with contents.
> ${prob.name} is already on it's way to
> ${prob.destination}.
>
> then <template todir="configuration"
> file="prob.template"> task would
> generate configuration files for me. If there is
> already task which
> serves the purpose then please ignore the mail and
> let me know the task
> name. :-). Also I know I can do that using <script>
> other combination of
> tasks, but thought <template> task makes more sense.
> If you guys like
> it, lets add it to ant.
>
> Thanks
> Chandrashekhar.
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> dev-unsubscribe@ant.apache.org
> For additional commands, e-mail:
> dev-help@ant.apache.org
>
>
____________________________________________________________________________________
Get your email and see which of your friends are online - Right on the New Yahoo.com
(http://www.yahoo.com/preview)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org