ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 35499] - junit batchtest fails if fileset created via zipfileset
Date Mon, 27 Jun 2005 13:22:51 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=35499>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=35499


msnare@nc.rr.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|WORKSFORME                  |




------- Additional Comments From msnare@nc.rr.com  2005-06-27 15:22 -------
(In reply to comment #1)

I still get errors either way.  Do you have any tests that match the filter in 
p.jar?

<target name="ziptest">
	<zipfileset id="zipset" src="jars/cam_core.jar"  
includes="**/*Test.class"/>		
	<junit>
		<!--SAME AS ZIPFILESET-->
		<classpath id="cp">
			<pathelement location="jars/cam_core.jar"/>
		</classpath>
		<formatter type="xml" usefile="false"/>
		<batchtest todir="test">
			<fileset refid="zipset"/>
		</batchtest>		
	</junit>
</target>

The problem appears to be that the classnames still contain slashes, instead of 
dots.  You are correct that it doesn't matter if you use the xml formatter or 
not.

You do get a different error based on whether you are using a file or not.  if 
you are using a file, you get the following with the xml formatter:

D:\dir\build.xml:281: java.io.FileNotFoundException: D:\dir\test\TEST-
my\package\Test.xml (The system cannot find the path specified)

And the following with the brief formatter

D:\dir\build.xml:281: java.io.FileNotFoundException: D:\dir\test\TEST-
my\package\Test.txt (The system cannot find the path specified)

In both cases, note the slashes instead of dots.

If, however, you set 'usefile' to false on the formatter you get a different 
error which is the same regardless of formatter type:

    [junit] Null Test:  Caused an ERROR
    [junit] my/package/Test
    [junit] java.lang.ClassNotFoundException: my/package/Test
    [junit]     at java.lang.Class.forName0(Native Method)
    [junit]     at java.lang.Class.forName(Unknown Source)

Again, note the slashes instead of dots.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


Mime
View raw message