ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Jan.Mate...@rzf.fin-nrw.de>
Subject AW: Path does not support dir-structure
Date Wed, 10 Aug 2005 05:23:08 GMT
The only place where you have a "dir" is in
    <javac>...  <src dir="${..}"/>  ...
The manual to javac sais :
  <javac>'s srcdir, ... attributes are path-like structures and can also be set via
nested <src>...
So <src> IS a path.
And <path>s doesnt support any (besides id/refid) attributes.

Use
  <src>
      <fileset dir="${src.dir}"/>
      <fileset dir="${test-src.dir}"/>
  </src>
instead.


Jan


>-----Urspr√ľngliche Nachricht-----
>Von: Conor MacNeill [mailto:conor@apache.org] 
>Gesendet: Mittwoch, 10. August 2005 03:24
>An: Ant Users List
>Betreff: Re: Path does not support dir-structure
>
>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