asafdav2 wrote:
>
> what can i do so the same code will pass both in the ide and in the cmd?
>
Either change the working directory of the test's run configuration in IDEA,
or load the resource in a way that does not depend on the current working
directory:
getClass().getClassLoader().getResourceAsStream("test.txt")
I'd prefer the second option.
--
Peter Niederwieser
Developer, Gradle
http://www.gradle.org
Trainer & Consultant, Gradleware
http://www.gradleware.com
Creator, Spock Framework
http://spockframework.org
--
View this message in context:
http://gradle.1045684.n5.nabble.com/multi-module-projects-and-relative-directories-tp4378969p4380117.html
Sent from the gradle-user mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email