ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joel Cordonnier <joelcordonn...@yahoo.fr>
Subject Re: PATH element not resolved !!!! ????? Ant .1.4.1 , HELP please
Date Thu, 15 Nov 2001 16:44:52 GMT
Yes !

The problem come from the <classpath refid...

If i include the classpath in my task like this: 

<target>
<javac>
<classpath>
fileset dir="${was.home}/lib">
			<include name="**/personalization.jar"/>
		</fileset>

....
</target>

then my property ${was.home} is resolved !! limitation
? bug ?

Thanks,
/Joel


> Have you tried:
> 
> b.) running with the verbose option turned on to see
> if there is an issue
> with property overriding (see the code you quoted -
> I don't know if you
> copied it literally into your own task though, so I
> don't know if you
> reproduced the "if set ...then else" behaviour)
> a.) instead of calling your "configuration" task,
> setting the property
> was.home explicitly? to see what happens..., whether
> there are any messages
> concerning your property?
> 
> Eric
> 
> 
> 
> 
> From: Joel Cordonnier <joelcordonnier@yahoo.fr>  on
> 15/11/2001 17:04
> 
> Please respond to "Ant Developers List"
> <ant-dev@jakarta.apache.org>
> 
>                                                     
>                      
>  To:   ant-dev@jakarta.apache.org                   
>                      
>                                                     
>                      
>                                                     
>                      
>  cc:                                                
>                      
>                                                     
>                      
>                                                     
>                      
>                                                     
>                      
>                                                     
>                      
>                                                     
>                      
>                                                     
>                      
>  Subje                                    PATH
> element not resolved !!!!  
>  ct:                                      ????? Ant
> .1.4.1 , HELP please  
>                                                     
>                      
> 
> 
> 
> 
> 
>  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 !!!!!!!!!
> 
> 
> WHEN i read the code of the <property> task, is see
> that there are 2 possibilities in the 'addProperty'
> method:
> 
> protected void addProperty(String n, String v) {
>         if( userProperty ) {
>             if (project.getUserProperty(n) == null)
> {
>                 project.setUserProperty(n, v);
>             } else {
>                 log("Override ignored for " + n,
> Project.MSG_VERBOSE);
>             }
>         } else {
>             if (project.getProperty(n) == null) {
>                 project.setProperty(n, v);
>             } else {
>                 log("Override ignored for " + n,
> Project.MSG_VERBOSE);
>             }
>         }
> 
> The difference between User/not user properties ??
> IN
> MY OWN TASK, i just use
> project.setProperty(property,
> value);
> 
> Thanks for the help,
> /Joel


___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en fran├žais !
Yahoo! Courrier : http://courrier.yahoo.fr

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


Mime
View raw message