Re: FileNotFoundException while reading static input file in JUnit

2011-02-10 Thread Benson Margulies
And why project.basedir and not just ${basedir}? org.apache.maven.plugins maven-surefire-plugin always ${bt.root.location}

Re: FileNotFoundException while reading static input file in JUnit

2011-02-09 Thread Wayne Fay
>         >             ${project.basedir}/src/test/data >         What makes you think that is the right way to do it? Doesn't seem like you read the documentation about system properties and Surefire. http://maven.apache.org/plugins/maven-surefire-plugin/examples/system-properties.html Wayne

Re: FileNotFoundException while reading static input file in JUnit

2011-02-09 Thread tom rider
System.out.println("DATA PROPERTY "+System.getProperty("data")); -- View this message in context: http://maven.40175.n5.nabble.com/FileNotFoundException-while-reading-static-input-file-in-JUnit-tp3378700p3378726.html Sent from the Maven - Users mailing list a

Re: FileNotFoundException while reading static input file in JUnit

2011-02-09 Thread Benson Margulies
eption >  File f = new File("myfile"); > > Question: how to specify in pom.xml file that my test input files are > located inside src/test/resources folder? > -- > View this message in context: > http://maven.40175.n5.nabble.com/FileNotFoundException-while-reading

FileNotFoundException while reading static input file in JUnit

2011-02-09 Thread tom rider
at my test input files are located inside src/test/resources folder? -- View this message in context: http://maven.40175.n5.nabble.com/FileNotFoundException-while-reading-static-input-file-in-JUnit-tp3378700p3378700.html Sent from the Maven - Users mailing list archive at