ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From EXT / FOCAL MALAPRADE Roland <ext.focal.malapr...@sncf.fr>
Subject RE: New comer to ant
Date Wed, 27 Nov 2002 10:43:08 GMT
Hi Reshma,

you have to use ${src.dir}

just because you declare a property as <property name="src.dir"
value="src"/> doesn't mean "create a property "src" pointing to a directory.
you could have called your property "src.foo"

Cheers,
Roland.

> -----Message d'origine-----
> De : Reshma Pai [mailto:reshma@analytica-india.com]
> Envoyé : mercredi 27 novembre 2002 11:30
> À : ant-user@jakarta.apache.org
> Objet : New comer to ant
> 
> 
> Hi All,
>  
> 
> In the ant build file displayed below, when i am trying to 
> reference the src 
> directory declared with the name src.dir, it say ${src.dir} 
> directory not 
> found. Why is this happening so, to my understanding, ${src} 
> should obtain 
> the value associated with that name.
> 
> <?xml version = '1.0' encoding = 'ISO-8859-1'?>
> <project name="Learn_Ant" default="compile" 
> basedir="/home1/reshma/Learn_Build">
>   <target name="init">
>     <property name="src.dir" value="src"/>
>   </target>
>   <target name="compile" >
>     <javac srcdir="${src}" destdir="."/>
>     <echo message="${build.dir}"/>
>   </target>
> </project>
> 
> Thanks in advance,
> Reshma Pai
> 
> --
> To unsubscribe, e-mail:   
> <mailto:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: 
<mailto:ant-user-help@jakarta.apache.org>

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


Mime
View raw message