It's all about the answers!

Ask a question

Jazz buildsystem path problem


Jens Kordowski (3651) | asked Oct 24 '08, 2:26 p.m.
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.

One answer



permanent link
Jens Kordowski (3651) | answered Oct 24 '08, 2:55 p.m.
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

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.