You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by David Corbin <dc...@machturtle.com> on 2004/03/05 13:42:05 UTC

problems

Here's a fragment of a build file
   <property name="full.generated.src.dir" 
location="${generated.src.dir}" />

       <uptodate property="xdoclet-uptodate">
         <srcfiles dir="loyalty/javasrc">
	          <patternset refid="loyalty.ejbs" />
	          <patternset refid="drop.for.foo" />
         </srcfiles>
         <mapper type="glob" 
from="loyalty${file.separator}javasrc${file.separator}*.java" 
to="${full.generated.src.dir}${file.separator}*LocalHome.java"/>
       </uptodate>
<echo>${full.generated.src.dir}${file.separator}*LocalHome.java}</echo>

When this fragment executes, the xdoclet-uptodate is ALWAYS true.  When 
I run ant with -v, I get

  [uptodate] com\enttek\loyalty\dao\LoyaltyCardBean.java skipped - don't 
know how to handle it

for each file in the srcfiles patterns. Since it says nothing about the 
mapping, I assume it's a fundamental problem I've made earlier in the 
process.  Each of those src files is does in fact exist (and none of 
them generated files exists).

Thanks


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


Re: problems (solved)

Posted by David Corbin <dc...@users.sourceforge.net>.
Thanks, but I figured it out.
The mapper to should not: 
 a) repeat the srcfiles dir
and
 b) needs have a to="*Bean.java".

Thanks anway
On Friday 05 March 2004 07:42, David Corbin wrote:
> Here's a fragment of a build file
>    <property name="full.generated.src.dir"
> location="${generated.src.dir}" />
>
>        <uptodate property="xdoclet-uptodate">
>          <srcfiles dir="loyalty/javasrc">
> 	          <patternset refid="loyalty.ejbs" />
> 	          <patternset refid="drop.for.foo" />
>          </srcfiles>
>          <mapper type="glob"
> from="loyalty${file.separator}javasrc${file.separator}*.java"
> to="${full.generated.src.dir}${file.separator}*LocalHome.java"/>
>        </uptodate>
> <echo>${full.generated.src.dir}${file.separator}*LocalHome.java}</echo>
>
> When this fragment executes, the xdoclet-uptodate is ALWAYS true.  When
> I run ant with -v, I get
>
>   [uptodate] com\enttek\loyalty\dao\LoyaltyCardBean.java skipped - don't
> know how to handle it
>
> for each file in the srcfiles patterns. Since it says nothing about the
> mapping, I assume it's a fundamental problem I've made earlier in the
> process.  Each of those src files is does in fact exist (and none of
> them generated files exists).
>
> Thanks
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org

-- 
David Corbin <dc...@users.sourceforge.net>


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