ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Reilly <peterrei...@apache.org>
Subject Re: Using properties files to define types?
Date Tue, 16 Nov 2004 17:52:27 GMT
You need to do <typedef file/resource="apropertyfile.props"/>
or place them in an antlib xml file:
<antlib>
   <!-- types -->
   <typedef name="depsfilenamemapper" classname="..."/>
   <!--tasks -->
   <taskdef name="..." classname=",,,"/>
</antlib>

Peter
Russell Gold wrote:

>How do you specify a type in a properties file? It's working fine for
>me with tasks, but when I use a type:
>
>dependencies-mapper=org.apache.tools.ant.taskdefs.optional.dependencies.DependenciesFileNameMapper
>
>I get:
>
>C:\opensource\httpunit-dom\build.xml:54: No public execute() in class
>org.apache.tools.ant.taskdefs.optional.dependencies.DependenciesFileNameMapper
>        at org.apache.tools.ant.TaskAdapter.checkTaskClass(TaskAdapter.java:70)
>        at org.apache.tools.ant.TaskAdapter.checkProxyClass(TaskAdapter.java:85)
>        at org.apache.tools.ant.AntTypeDefinition.checkClass(AntTypeDefinition.java:248)
>        at org.apache.tools.ant.taskdefs.Definer.addDefinition(Definer.java:476)
>        at org.apache.tools.ant.taskdefs.Definer.loadProperties(Definer.java:304)
>
>so it seems to think I am defining a task instead.
>
>---------------------------------------------------------------------
>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


Mime
View raw message