Jazz buildsystem path problem
Hi,
I am using Jazz Build Engine, but not SCM (i'm using SVN).
My buildscript includes Junit tests.
When I'm running those tests inside of Eclipse the current path is my workspace (C:\workspace\project\ = path of the buildscript). For several tests I need files of my workspace (so inside my tests are paths like ./OriginalTestFileDir).
But when I am building with JazzBuildEngine, the "." and System.getProperty("user.dir") equals C:\Program Files\IBM\TeamConcertBuild\buildsystem\buildengine\eclipse. So my tests are failing, because it's not finding my files.
Why is the current path not the path of the build file? Can I tell JazzBuildEngine somehow to change the "." to my workspace / to the path of my build file?
I don't want to hardcode my path inside of my tests, because in this case I will get problems when running the tests on other machines.
I am using Jazz Build Engine, but not SCM (i'm using SVN).
My buildscript includes Junit tests.
When I'm running those tests inside of Eclipse the current path is my workspace (C:\workspace\project\ = path of the buildscript). For several tests I need files of my workspace (so inside my tests are paths like ./OriginalTestFileDir).
But when I am building with JazzBuildEngine, the "." and System.getProperty("user.dir") equals C:\Program Files\IBM\TeamConcertBuild\buildsystem\buildengine\eclipse. So my tests are failing, because it's not finding my files.
Why is the current path not the path of the build file? Can I tell JazzBuildEngine somehow to change the "." to my workspace / to the path of my build file?
I don't want to hardcode my path inside of my tests, because in this case I will get problems when running the tests on other machines.
One answer
Hi,
I am using Jazz Build Engine, but not SCM (i'm using SVN).
My buildscript includes Junit tests.
When I'm running those tests inside of Eclipse the current path is my workspace (C:\workspace\project\ = path of the buildscript). For several tests I need files of my workspace (so inside my tests are paths like ./OriginalTestFileDir).
But when I am building with JazzBuildEngine, the "." and System.getProperty("user.dir") equals C:\Program Files\IBM\TeamConcertBuild\buildsystem\buildengine\eclipse. So my tests are failing, because it's not finding my files.
Why is the current path not the path of the build file? Can I tell JazzBuildEngine somehow to change the "." to my workspace / to the path of my build file?
I don't want to hardcode my path inside of my tests, because in this case I will get problems when running the tests on other machines.
I can reply to myself :)
Sorry, I forgot about the "working directory" option, I set it to my workspace and it works fine.
Thanks anyway