On Sun, Dec 7, 2014 at 6:12 PM, Emerson Mello <emerson.me...@live.com> wrote:
> serious? send a messages to dev@tomcat.apache.org > > > Date: Fri, 28 Nov 2014 12:20:00 +0200 > > Subject: Test Classes Not Found > > From: ahmedhosni...@gmail.com > > To: dev@tomcat.apache.org > > > > I have build tomcat from source on trunk branch ,build is successful > but > > when I run Junit Test it throws a ClassNotFound exception, I checked Ant > > file it should make folder contains test classes , > > but I did't find this folder or any .class files for test classes. I > > appreciate your help with this. > > If you look at the build.xml file, there is target for compiling test classes: <target name="test-compile" depends="compile,download-test-compile,compile-webapp-examples" > <mkdir dir="${test.classes}"/> <!-- Compile --> <javac srcdir="test" destdir="${test.classes}" debug="${compile.debug}" deprecation="${compile.deprecation}" source="${compile.source}" target="${compile.target}" encoding="ISO-8859-1" includeantruntime="true"> <classpath refid="tomcat.test.classpath" /> <include name="org/apache/**" /> <include name="javax/**" /> <include name="util/**" /> </javac> <copy todir="${test.classes}"> <fileset dir="test"> <include name="META-INF/**"/> <include name="**/service-config.txt"/> </fileset> </copy> </target> You can invoke this target explicitly, or add it as a dependency in, say, package: <target name="package" depends="compile,test-compile,build-manifests" > That should create testclasses in ${tomcat.output} directory, containing all the compiled test classes.