ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Donald <dona...@apache.org>
Subject Re: PATH element not resolved !!!! Ant .1.4.1
Date Fri, 16 Nov 2001 00:33:41 GMT
On Fri, 16 Nov 2001 02:23, Joel Cordonnier wrote:
> Hi !
>
> I have the following problem:
>
> I have defined a new task named 'configuration', that
> read XML datas. These task return the property
> 'was.home'. And I use these new task as follow:
>
> <target name="configuration">
> 	   <configuration block="Server"
> configproperty="wasHome" property="was.home">
> 	      <classpath refid="configuration.class.path"/>
> 	   </configuration>
> </target>
>
>
> Then, I have a target to compile beans. In this
> target, we refer to a PATH element.
> <target name="compileBeans" depends="configuration">
> <javac .....>
> <classpath refid="beans.class.path"/>
> </javac>
> </target>
>
> The PATH element is defined so:
> <path id="basic.class.path">
> 		<pathelement path="${class.dir}"/>
> 		<fileset dir="${was.home}/lib">
> 			<include name="**/*.zip"/>
> ....
>
> AND THE PROBLEM IS: the property ${was.home} is NOT
> resolved in the path element !!!!!!!!!

Which implies that ${was.property} was not defined at the time that path was 
declared. So that means your path is probably declared before property is set 
(possibly at toplevel of build file). You should rearrange this so path is 
declared after property to get it to work.

-- 
Cheers,

Pete

---------------------------------------------------
"Wise men don't need advice. Fools don't take it." 
                        -Benjamin Franklin 
---------------------------------------------------

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