Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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.

0 votes



One answer

Permanent link
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

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Oct 24 '08, 2:26 p.m.

Question was seen: 8,045 times

Last updated: Oct 24 '08, 2:26 p.m.

Confirmation Cancel Confirm