You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by du...@yahoo.com on 2005/08/10 01:33:02 UTC

Path does not support dir-structure

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


Re: Path does not support dir-structure

Posted by du...@yahoo.com.
OK
I will clean this up tonight and confirm it works.
Tx already

\T,

--- Peter Reilly <pe...@apache.org> wrote:

> 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
> 
> 


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


Re: Path does not support dir-structure

Posted by Peter Reilly <pe...@apache.org>.
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


Re: Path does not support dir-structure

Posted by Conor MacNeill <co...@apache.org>.
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