You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by EJ Ciramella <ec...@archivas.com> on 2005/05/04 18:40:43 UTC
uptodate using .xml to .java but not 1 to 1
Every once in a while I stumble across this problem where a tool reads
in xml and generates java files. We have a custom written tool here
that does this but there is no up to date check so the java files are
created each time. Do I need to write a custom mapper or is there a
simple way to do this? The xml files share nothing in common in the
way of their names with the java files.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: uptodate using .xml to .java but not 1 to 1
Posted by EJ Ciramella <ec...@archivas.com>.
I did something a little different. I do the generation then touch a
file. Then I can use the merge mapper from xml to touched file name.
On May 4, 2005, at 12:50 PM, Alexey N. Solofnenko wrote:
> In general you will need a mapper, if there are a many source and
> destination files. If you can select one destination file out of many
> (if several destination files are generated together), you can just
> use plain <uptodate>. Otherwise please look at <apply> task.
>
> - -Alexey.
>
> EJ Ciramella wrote:
>
>> Every once in a while I stumble across this problem where a tool
>> reads in xml and generates java files. We have a custom written tool
>> here that does this but there is no up to date check so the java
>> files are created each time. Do I need to write a custom mapper or is
>> there a simple way to do this? The xml files share nothing in common
>> in the way of their names with the java files.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>> For additional commands, e-mail: user-help@ant.apache.org
>
>
> --
> -----------------------------------------------------------------------
> -
> / Alexey N. Solofnenko
> home: http://trelony.cjb.net/
> /
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: uptodate using .xml to .java but not 1 to 1
Posted by "Alexey N. Solofnenko" <A....@mdl.com>.
In general you will need a mapper, if there are a many source and
destination files. If you can select one destination file out of many
(if several destination files are generated together), you can just use
plain <uptodate>. Otherwise please look at <apply> task.
- -Alexey.
EJ Ciramella wrote:
> Every once in a while I stumble across this problem where a tool reads
> in xml and generates java files. We have a custom written tool here
> that does this but there is no up to date check so the java files are
> created each time. Do I need to write a custom mapper or is there a
> simple way to do this? The xml files share nothing in common in the
> way of their names with the java files.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
--
------------------------------------------------------------------------
/ Alexey N. Solofnenko
home: http://trelony.cjb.net/
/
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org