ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Reilly <peterrei...@apache.org>
Subject Re: Path does not support dir-structure
Date Wed, 10 Aug 2005 08:53:12 GMT
It should be
  <src path="${src.dir}"/>
  <src path = ....

The <src> nested element is actually a path class and hence the 
misleading message.

Peter

Conor MacNeill wrote:

>I can't see anything amiss in your code, although the --> in your
>description attribute did catch my eye :-).
>
>It's better if you can show the actual error printed by Ant in most
>cases and the corresponding line in your build. Ant usually includes
>line numbers and these can help know where to look.
>
>Conor
>
>duvelbier-tsmets@yahoo.com wrote:
>  
>
>>Dear, 
>>
>>I have the following part of a build file :
>>
>>    <path id="build.path"> 
>>      <pathelement location="${lib.dir}/jfreechart-1.0.0-rc1.jar"/>
>>      <pathelement location="${lib.dir}/gnujaxp.jar"/>
>>      <pathelement location="${lib.dir}/servlet.jar"/>
>>      <pathelement location="${lib.dir}/jfreechart-1.0.0-rc1.jar"/>
>>    </path> 
>>
>>    <target name="compile" description="--> description">
>>     <javac destdir="${build.dir}" >     
>>      <src dir="${src.dir}" />      
>>      <src dir="${test-src.dir}" />      
>>      <classpath refid="build.path" />
>>     </javac> 
>>    </target>
>>
>>But when I run it, I get :
>>The <path> type doesn't support the "dir" attribute.
>>
>>\T,
>>
>>Any fool can write code that a computer can understand. 
>>Good programmers write code that humans can understand.
>>                                                   Martin Fowler 
>>T. : +32 (0)2 742 05 94
>>M. : +32 (0)497 44 68 12
>>
>>---------------------------------------------------------------------
>>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
>
>
>
>  
>


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


Mime
View raw message