ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Salter <marksal...@talktalk.net>
Subject Re: Ant Junit issues - CLASSPATH
Date Fri, 19 Dec 2008 09:07:55 GMT
Marshall_Daniel@emc.com wrote:
> Thank you Mark I will take a look. I caught and fixed the folder issue
> but It still is not finding the class. 

Did you change the classpath specification to remove the extra levels
into the junit task as well?

> If a class is called com.emc.elms.test.EMCLmcryptKeyGeneratorTest
> 
> then this class file might be found somewhere like:-
> 
> c:\Build
>    \build
>      \classes     	
>        \com
> 	 \emc
> 	   \elms
> 	     \test\EMCEMCLmcryptKeyGeneratorTest.class
> 
> To find this class, the java classpath would be :-
> 
>  <classpath>
> 	 <pathelement location="c:\Build\build\classes"/>
>  </classpath>
> 
> So in summary...
> 
> - you are specifying too deep a level of directory.
> 	Do a search for +java +classpath, I got :-
> 	      http://en.wikipedia.org/wiki/Classpath_(Java)
> 	Which also decribes class file placement relative to the
> 	 classpath folder
> - you are specifying src directories when perhaps only the classes ones
>    are needed.
> 


-- 
Mark

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


Mime
View raw message