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 38477] - [junitreport] fails on CM Synergy/Continuus checkout filepaths
Date Fri, 03 Feb 2006 14:57:57 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=38477>.
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=38477





------- Additional Comments From jan@materne.de  2006-02-03 15:57 -------
Ok, I did more tests

    public void testSpecialSignsInHtmlPath() throws Exception {
        executeTarget("testSpecialSignsInHtmlPath");
        File reportFile = new File(System.getProperty
("root"), "src/etc/testcases/taskdefs/optional/junitreport/test/html# $%§&-!
report/index.html");
        // tests one the file object
        assertTrue("No index.html present. Not generated?", reportFile.exists
() );
        assertTrue("Cant read the report file.", reportFile.canRead() );
        assertTrue("File shouldnt be empty.", reportFile.length() > 0 );
        // conversion to URL via FileUtils like in XMLResultAggregator, not as 
suggested in the bug report
        URL reportUrl = new URL( FileUtils.getFileUtils().toURI
(reportFile.getAbsolutePath()) );
        InputStream reportStream = reportUrl.openStream();
        assertTrue("This shouldnt be an empty stream.", reportStream.available
() > 0);
    }


But that also works for me. Then I had a look at the latest source: the URI 
handling has changed 7 weeks ago [1] so maybe that problem was (accidently :) 
resolved too.

Can you build Ant from subversion and retest that on your machine?

[1] 
http://svn.apache.org/viewcvs.cgi/ant/core/trunk/src/main/org/apache/tools/ant/t
askdefs/optional/junit/XMLResultAggregator.java?
rev=357131&r1=278261&r2=357131&diff_format=h




-- 
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