Open GoogleCodeExporter opened 9 years ago
im the owner of this issue -- small correction here
What version of the product are you using? On what operating system?
windows OS, eclipse IDE(test is working fine in eclipse IDE),
BUT NOT WORKING in ant build.
This is maven compatible java project.
Using Junit 4. eclipse indigo.
Original comment by sashivij...@gmail.com
on 3 Feb 2013 at 11:13
I am facing the exact issue. The MockClassLoader loads the property file form
jar in classpath if run from eclipse IDE. But when i run it from Ant, the
property file is not found. Looking forward to the solution.
Original comment by pankaj.t...@gmail.com
on 3 Feb 2013 at 2:34
Thanks pankaj for ur post....actually we have the property file seperately
only...not included in jar....we can run in eclipse IDE but not in ant when
running in ant. the variable which stores property file load is returning
null..I will shortly and definitely update the code snippet for ease of
understanding. But as of now if any light is thrown upon this . it will be
really helpful. Thanks in advance.
Original comment by sashivij...@gmail.com
on 3 Feb 2013 at 4:30
Hi Everyone. Finally found a solution for my issue. in Ant task for junit fork
value needs to be set as true, when setting fork as true(or Yes) properties
file is loaded successfully. previously i had fork as "false".
Also I thought of trying to use Junit 3.xx jar for ant build. As eclipse uses
junti 3 for IDE level testing. But first try with fork= "true" worked out.
Original comment by sashivij...@gmail.com
on 4 Feb 2013 at 3:25
Thanks for the update. I will try with fork=true and will update here.
Original comment by pankaj.t...@gmail.com
on 4 Feb 2013 at 10:56
Original issue reported on code.google.com by
sashivij...@gmail.com
on 3 Feb 2013 at 11:11