DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23541>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23541 Enhance error messages of taskdef to say what really is not found... Summary: Enhance error messages of taskdef to say what really is not found... Product: Ant Version: 1.5.3 Platform: PC URL: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16970 OS/Version: Windows NT/2K Status: NEW Severity: Enhancement Priority: Other Component: Core tasks AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] if the class is found but some import not, mention this specifically!! Since I have the target also print the directory path and then verify it manually, I cannot imaging that the classes proper are not found... The current error message is not all to helpful ... :( Background: =========== Somebody sent me two *.java files I can compile in my eclipse, but ant fails to recognize them as tasks even though the provider says he has it running with the same build.xml snippet: <<It's not clear to me why your example isn't working, though, it seems basically correct. Chris > > <property name="dumpFields_dir" > location="${basedir}/WEB-INF/classes/net/sf/cglib/transform"/> > <property name="myProjClasses_dir" > location="${build.dir}/com/myDom/myProj"/> > > <path id="dumpFileClasspath.path"> > <pathelement location="${dumpFields_dir}"/> > </path> > > <target name="dumpfields"><!-- depends="compile"--> > <echo message="${dumpFields_dir}" /> > <taskdef name="dumpfields" classpathref="dumpFileClasspath.path" > classname="net.sf.cglib.transform.DumpFieldsTask" /> > <dumpfields outputFile="${javaConstFile}"> > <fileset dir="${myProjClasses_dir}/business"> > <include name="**/*.class"/> > </fileset> > </dumpfields> > </target> > > I am getting: > > c:\data\\eclipse\workspace\myProj>ant dumpfields > Buildfile: build.xml > > dumpfields: > [echo] > C:\data\eclipse\workspace\myProj\WEB-INF\classes\net\sf\cglib\transform > > BUILD FAILED > file:c:/data/eclipse/workspace/myProj/build.xml:65: taskdef class > net.sf.cglib.transform.DumpFieldsTask cannot be found > > Total time: 3 seconds > > c:\data\eclipse\workspace\myProj>dir > C:\data\eclipse\workspace\privaLope\WEB-INF\classes\net\sf\cglib\tra > nsform > Volume Serial Number is 1A25-17E1 > > Directory of > C:\data\eclipse\workspace\myProj\WEB-INF\classes\net\sf\cglib\transform > > 29.09.2003 19:50 <DIR> . > 29.09.2003 19:50 <DIR> .. > 29.09.2003 19:53 1'726 DumpFieldsTask.class > 29.09.2003 19:53 2'042 DumpFieldsTask$1.class > 29.09.2003 19:53 2'569 AbstractProcessTask.class > 3 File(s) 6'337 bytes>> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
