damianszczepanik / cucumber-reporting

HTML reports for Cucumber
GNU Lesser General Public License v2.1
548 stars 403 forks source link

Not able to generate reports Java (java.lang.IllegalArgumentException: URI is not hierarchical) #216

Closed saikrishna321 closed 9 years ago

saikrishna321 commented 9 years ago

This is ma below code when i run, i get java.lang.IllegalArgumentException: URI is not hierarchical

public static void generateReports() throws VelocityException, IOException{ String pluginUrlPath = ""; String buildNumber = "1"; String buildProject = "cucumber-jvm"; boolean skippedFails = true; boolean pendingFails = true; boolean undefinedFails = true; boolean missingFails = true; boolean flashCharts = true; boolean runWithJenkins = false; boolean highCharts = true; boolean parallelTesting = false; list.add("/Users/saikrisv/Documents/workspace/com.dry.run2/target/Second.json"); list.add("/Users/saikrisv/Documents/workspace/com.dry.run2/target/Second.json"); ReportBuilder reportBuilder = new ReportBuilder(list, reportOutputDirectory, pluginUrlPath, buildNumber, buildProject, skippedFails, pendingFails, undefinedFails, missingFails, flashCharts, runWithJenkins, highCharts, parallelTesting); reportBuilder.generateReports(); }

saikrishna321 commented 9 years ago

@kingsleyh can u help me with this ?

saikrishna321 commented 9 years ago

java.lang.IllegalArgumentException: URI is not hierarchical at java.io.File.(File.java:418) at net.masterthought.cucumber.ReportBuilder.copyResource(ReportBuilder.java:181) at net.masterthought.cucumber.ReportBuilder.generateReports(ReportBuilder.java:149) at com.test.ImageComp.generateReports(ImageComp.java:81) at com.test.ImageComp.main(ImageComp.java:31)

damianszczepanik commented 9 years ago

Can you check whether #215 fixes your problem?

damianszczepanik commented 9 years ago

It does, looks like problem after upgrading Jenkins to newer version. I will release new plugin.