Author |
Message
|
bdaoust |
Posted: Thu May 23, 2013 10:05 am Post subject: Random Errors In Toolkit - Need To Clean Projects |
|
|
Centurion
Joined: 23 Sep 2010 Posts: 130
|
I'm getting random issues in toolkit and was wondering if anyone can give me some insight.
For instance, esql functions in projects randomly duplicate themselves. Also, I could to build an existing bar file and it errors out and says something about Null Exceptions...
If I Clean the projects - all seems fine, but I have to constantly do this. I even reinstalled Toolkit. Here is my version:
Version: 7.0.0.5
Build id: 7.0.0.5-20120919_1610
Any ideas ?
Thanks
Brian |
|
Back to top |
|
 |
lancelotlinc |
Posted: Thu May 23, 2013 10:34 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
ESQL regeneration can be due to the generated artifacts being checked into a version control system and the generated artifacts being read-only.
- Don't check generated artifacts into source control.
- Don't reopen ESQL files after they are created unless you specifically add at least one character and explicitly save that file, causing a rebuild of that file.
- Make sure Project -> Build Automatically is checked. _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
bdaoust |
Posted: Thu May 23, 2013 10:44 am Post subject: |
|
|
Centurion
Joined: 23 Sep 2010 Posts: 130
|
Interesting that you say that because I do have the TFS plugin and have noticed that if I uncheck read only on all resources and clean the project, I'm good to go.
So, I can't use TFS?
Thank you! |
|
Back to top |
|
 |
lancelotlinc |
Posted: Thu May 23, 2013 10:50 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
You can use TFS plug-in, however, you must change a few settings so that generated resources are not set to read-only; hopefully you're not checking in to source control the generated resources.
The TFS plug-in for Eclipse honors Eclipse's derived resource settings. Make sure your toolkit & project properties are set so that derived resources are not visible. If they are marked visible, TFS thinks you want them in version control.
Also check your project configuration to ensure that your filesystem layout reflects what Eclipse believes to be your project layout. This means some tools like Maven are less friendly to your configuration. Use Ant rather than Maven to build your bars. Don't manually build bars, write an Ant script to do it, and make sure the generated bar is written outside the project's purview. Also make sure you DO check in your bar file overrides. _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
bdaoust |
Posted: Thu May 23, 2013 11:11 am Post subject: |
|
|
Centurion
Joined: 23 Sep 2010 Posts: 130
|
I'll look into Ant to see that it's all about. Currently I am building BAR files manually via the toolkit. Due to the nature of our company, we aren't allowed to use a lot of OpenSource tools without them first being approved.
Thanks again
-B |
|
Back to top |
|
 |
lancelotlinc |
Posted: Thu May 23, 2013 11:15 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
There are some threads you can read, if your interested.
http://www.mqseries.net/phpBB/viewtopic.php?t=61374&sid=8422aef986b4e566b7a94dcc978158fe
The point of not building bar files manually is to support a consistent result every time without regard to being sober, having enough sleep or caffeine, or the guy who normally builds this bar is on vacation.
It would surprise me that someone in your management would say Apache is not to be used in your company. I've worked at banks and insurance companies with very strict controls, and Ant is widely accepted. _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
bdaoust |
Posted: Thu May 23, 2013 11:21 am Post subject: |
|
|
Centurion
Joined: 23 Sep 2010 Posts: 130
|
I appreciate it! The more reading material the better. I inherited our MQ development, so I'm learning as I go. Info Center is helpful and looking into some courses. I took an IBM training course a few years ago, but found it was more of an extensive overview. |
|
Back to top |
|
 |
|