Author |
Message
|
lancelotlinc |
Posted: Tue Aug 23, 2011 9:19 am Post subject: .project and mqsicreatebar |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
mqsicreatebar requires .project to be writable. If not, mqsicreatebar throws this error:
Quote: |
!ENTRY com.rational.clearcase 4 0 2011-08-23 10:37:27.565
!MESSAGE CCFileModificationValidator::validateEdit: Error making file(s) writeable
File is read only:
C:\ccv\MessageSet\.project[4-Error]
File is read only:
C:\ccv\MessageSet\.project[4-Error(4-NotOkToEdit/Save)]
|
Our Build Engineer is not happy that she must hijack the .project file in order for the automated build to work. I tend to agree with her argument here. Can someone enlighten me as to why mqsicreatebar requires that the .project file be writeable during the build process? _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
mqjeff |
Posted: Tue Aug 23, 2011 9:24 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Why would any of the resources that you are trying to build be read-only?
Have you reviewed the contents of .project before and after a run, when it was actually marked as writeable?
Is it unreasonable to expect that any Eclipse instance would like to be able to update the file that describes the contents of the project? |
|
Back to top |
|
 |
lancelotlinc |
Posted: Tue Aug 23, 2011 9:30 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
>> Why would any of the resources that you are trying to build be read-only?
Because BuildForge sets all files to read-only.
>> Have you reviewed the contents of .project before and after a run, when it was actually marked as writeable?
The file is unchanged.
Is it unreasonable to expect that any Eclipse instance would like to be able to update the file that describes the contents of the project?
This is a headless build using Ant. No toolkit is needed. We do not want to make any changes to the files. The BuildForge agent downloads all the source files from BuildForge repository and builds the bars. _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
mqjeff |
Posted: Tue Aug 23, 2011 9:37 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
lancelotlinc wrote: |
>> Why would any of the resources that you are trying to build be read-only?
Because BuildForge sets all files to read-only. |
Well, tell it not to.
lancelotlinc wrote: |
Is it unreasonable to expect that any Eclipse instance would like to be able to update the file that describes the contents of the project?
This is a headless build using Ant. No toolkit is needed. We do not want to make any changes to the files. The BuildForge agent downloads all the source files from BuildForge repository and builds the bars. |
It is indeed a headless build, but there's no such thing as "no toolkit is needed". mqsicreatebar runs a headless instance of the Toolkit, as you know.
And while it might seem reasonable for Eclipse/Toolkit to "assume" that if it is running in a headless mode, that it won't need to actually update the .project file, it is in fact not a supportable assumption based on that fact alone. There's no way to predict the actions that will be asked of Eclipse when run in a headless mode - including creating new projects or adding or removing project dependencies or etc. etc. etc...
It might be possible for mqsicreatebar to specify enough options, somehow somewhere, to convince Eclipse not to require that it have the option to update the .project file any time during run ... but you'd have to address that with the Toolkit team through a requirement or PMR. |
|
Back to top |
|
 |
lancelotlinc |
Posted: Tue Aug 23, 2011 9:38 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
|
Back to top |
|
 |
lancelotlinc |
Posted: Tue Aug 23, 2011 10:01 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
|
Back to top |
|
 |
smdavies99 |
Posted: Tue Aug 23, 2011 10:22 am Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
mqjeff wrote: |
Why would any of the resources that you are trying to build be read-only?
|
How about when you pull the files from something like ClearCase. The default for them is ReadOnly.
The proper way to make them R/W is to checkout the files and in particular the .project file. Then you have to add a comment.
It all gets very messy.
I've seen all sorts of hacks to get mqsicreatebar to work. This was one of the reason why we gave up on continuious integration at my current site. Anyways, it is all moot now as Broker is being retired and replaced by JBOSS/ESB. The Java camp won out in the end. _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
lancelotlinc |
Posted: Tue Aug 23, 2011 10:26 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
smdavies99 wrote: |
Anyways, it is all moot now as Broker is being retired and replaced by JBOSS/ESB. |
So sorry to hear that. We have openings here if your interested. _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
Vitor |
Posted: Tue Aug 23, 2011 10:28 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
lancelotlinc wrote: |
We have openings here if your interested. |
Decent benefits? Unlike our worthy associate I'm geographically close & have the right to work in the USA.
And I'd like to see Nirvana before I die..... _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
smdavies99 |
Posted: Tue Aug 23, 2011 10:39 am Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
lancelotlinc wrote: |
smdavies99 wrote: |
Anyways, it is all moot now as Broker is being retired and replaced by JBOSS/ESB. |
So sorry to hear that. We have openings here if your interested. |
It would be a hellofa commute.
Now is that a right turn at Boston or is it left at Toronto? _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
lancelotlinc |
Posted: Tue Aug 23, 2011 10:44 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
|
Back to top |
|
 |
Vitor |
Posted: Tue Aug 23, 2011 10:46 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
smdavies99 wrote: |
Now is that a right turn at Boston or is it left at Toronto? |
Bloomington's sort of both. I think I drove past it a couple of times. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
Vitor |
Posted: Tue Aug 23, 2011 10:48 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
lancelotlinc wrote: |
It's an insurance company. |
So are you anything like a good neighbour?
lancelotlinc wrote: |
We eat our own dog food. |
They let you eat? And you have automated builds?
Well I'm interested. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
lancelotlinc |
Posted: Tue Aug 23, 2011 10:50 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
|
Back to top |
|
 |
fjb_saper |
Posted: Tue Aug 23, 2011 11:14 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Vitor wrote: |
lancelotlinc wrote: |
It's an insurance company. |
So are you anything like a good neighbour?
lancelotlinc wrote: |
We eat our own dog food. |
They let you eat? And you have automated builds?
Well I'm interested. |
Are you confusing Bloomington with Northrop?
Both have major insurance companies there...  _________________ MQ & Broker admin |
|
Back to top |
|
 |
|