Gradle with Serenity. Source and output directories.

505 views
Skip to first unread message

Scott Brannan

unread,
Feb 4, 2015, 5:46:39 AM2/4/15
to thucydid...@googlegroups.com
Does anyone know if there is a way to define the source and output directories within a gradle.build? we used to have the option to do this in our ant plugin task. We have an issue on some users machines where it complains that the source and output directories are the same.

-Scott

Scott Brannan

unread,
Feb 6, 2015, 10:01:25 AM2/6/15
to thucydid...@googlegroups.com
The output from jenkins is:

* What went wrong:
Execution failed for task ':aggregate'.
> Source 'target\site\thucydides' and destination 'C:\housing_builds\2010A13 Housing Build\thucydides\target\site\thucydides' are the same

When i look at the stacktrace it states the below:

	at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:56)
Caused by: java.io.IOException: Source 'target\site\thucydides' and destination 'C:\housing_builds\2010A13 Housing Build\thucydides\target\site\thucydides' are the same
	at org.apache.commons.io.FileUtils.copyDirectory(FileUtils.java:1374)
	at org.apache.commons.io.FileUtils.copyDirectory(FileUtils.java:1310)
	at net.thucydides.core.reports.html.HtmlReporter.copyTestResultsToOutputDirectory(HtmlReporter.java:81)
	at net.thucydides.core.reports.html.HtmlAggregateStoryReporter.generateReportsForTestResultsIn(HtmlAggregateStoryReporter.java:150)
	at net.thucydides.core.reports.html.HtmlAggregateStoryReporter.generateReportsForTestResultsFrom(HtmlAggregateStoryReporter.java:121)
	at net.thucydides.core.reports.UserStoryTestReporter$generateReportsForTestResultsFrom.call(Unknown Source)
	at net.serenitybdd.plugins.gradle.SerenityPlugin$_apply_closure1_closure6.doCall(SerenityPlugin.groovy:36)

It works locally on some peoples machines but not others. I have tried changing the output directory but then it complains that it cant find target/site/thucydides.

-Scott

Scott Brannan

unread,
Feb 12, 2015, 4:24:18 AM2/12/15
to thucydid...@googlegroups.com
I have spent some more time trying to fix this with no success. Is there a reason why the source and destination cant be the same and what is scenario when these would/wouldn't be the same? I have also tried changing the source directory which seems to have no affect either. I change settings using serenity.outputDirectory and serenity.sourceDirectory properties within my serenity.properties file.

-Scott

On Wednesday, 4 February 2015 10:46:39 UTC, Scott Brannan wrote:

John Smart

unread,
Feb 12, 2015, 5:08:22 AM2/12/15
to Scott Brannan, thucydid...@googlegroups.com
Hi Scott, 

I've never had this issue, but I switched that code over to using Java nio, so you can see if it works better in the next release.



--
You received this message because you are subscribed to the Google Groups "Serenity BDD Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to thucydides-use...@googlegroups.com.
To post to this group, send email to thucydid...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
___________________________________________________
John Smart | Wakaleo Consulting  |  +61 407 247 642
Optimizing your software development process
http://www.wakaleo.com  |  john....@wakaleo.com
___________________________________________________

The dates for the 2014 BDD workshops have been scheduled! Check out our upcoming BDD/TDD Master classes and our Advanced BDD Requirements Workshops, coming soon to Sydney and Melbourne!
___________________________________________________
Reply all
Reply to author
Forward
0 new messages