You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Chun Ji <CJ...@pro-unlimited.com> on 2006/11/07 01:37:47 UTC

Ant "available" task

Hi all, 
does "Available" only works for some selected packages only ? 
I want to set a property depends on the availablity of a class. No matter what I did, it always tells me that the class could not be loaded. But this task works perfect for other packages, of the same classpath. 

Does someone know if I have alternative choice for this problem ? 

I am using Ant 1.6.5 on Linix . 


thanks. 


-cji 

 

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


Re: Ant "available" task

Posted by Antoine Levy-Lambert <an...@gmx.de>.
Hello Chun,

a class cannot be loaded if :
- the class itself is not in the classpath,
- a parent class or interface of the class is not in the classpath,
- a field of the class is not in the classpath,
so have a look at the source code of the class which cannot be loaded,
Regards,
Antoine

Chun Ji wrote:
> Hi all, 
> does "Available" only works for some selected packages only ? 
> I want to set a property depends on the availablity of a class. No matter what I did, it always tells me that the class could not be loaded. But this task works perfect for other packages, of the same classpath. 
>
> Does someone know if I have alternative choice for this problem ? 
>
> I am using Ant 1.6.5 on Linix . 
>
>
> thanks. 
>
>
> -cji 
>
>  
>
>   


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