Author |
Message
|
fszostak |
Posted: Fri Mar 18, 2011 10:36 am Post subject: FileInput node - Directory path separator Windows/Unix |
|
|
Acolyte
Joined: 09 Feb 2011 Posts: 64 Location: Curitiba, Brazil
|
Hi All!
My development environment is Windows and production is Unix.
Devel Directory: C:\myapp\files\input
Production Directory: /myapp/files/input
I would like to set FileInput node only the Directory property with "/myapp/files/input" and Windows environment recognize the path with "C:\myapp\files\input". It's possible?
Sometimes I forget to change for deploy.
Thanks
Szostak. _________________ WMB 6.1.005
Last edited by fszostak on Fri Mar 18, 2011 10:38 am; edited 1 time in total |
|
Back to top |
|
 |
lancelotlinc |
Posted: Fri Mar 18, 2011 10:38 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
Yes, Windows accepts / as a separator. Drop the "C:" as it is unneeded in Windows. The nyour paths will be identical between both environments. _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
fszostak |
Posted: Fri Mar 18, 2011 10:44 am Post subject: |
|
|
Acolyte
Joined: 09 Feb 2011 Posts: 64 Location: Curitiba, Brazil
|
lancelotlinc wrote: |
Yes, Windows accepts / as a separator. Drop the "C:" as it is unneeded in Windows. The nyour paths will be identical between both environments. |
I did try, but don't work here.
Must I configure something? _________________ WMB 6.1.005 |
|
Back to top |
|
 |
lancelotlinc |
Posted: Fri Mar 18, 2011 11:14 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
No config is needed. Do something simple for a quick test to prove to your brain that it will work.
Such as put the log in the root" "/"
Remember to omit the "C:" _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
fszostak |
Posted: Fri Mar 18, 2011 11:48 am Post subject: |
|
|
Acolyte
Joined: 09 Feb 2011 Posts: 64 Location: Curitiba, Brazil
|
lancelotlinc wrote: |
No config is needed. Do something simple for a quick test to prove to your brain that it will work.
Such as put the log in the root" "/"
Remember to omit the "C:" |
I put Trace node with output to File (/app/log/test.log) .. works! _________________ WMB 6.1.005 |
|
Back to top |
|
 |
lancelotlinc |
Posted: Fri Mar 18, 2011 11:52 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
|
Back to top |
|
 |
fszostak |
Posted: Fri Mar 18, 2011 11:59 am Post subject: |
|
|
Acolyte
Joined: 09 Feb 2011 Posts: 64 Location: Curitiba, Brazil
|
lancelotlinc wrote: |
Congratulations. You are now a ''SME''. |
Sorry, I was not clear. Trace node works.... but FileInput not yet.
Look the manual description:
Element Name Element Data Type Description
Directory CHARACTER Absolute directory path of the input directory in the form used by the file system of the broker. For example, on Windows systems, this starts with the drive letter prefix (such as C . _________________ WMB 6.1.005
Last edited by fszostak on Fri Mar 18, 2011 12:02 pm; edited 1 time in total |
|
Back to top |
|
 |
lancelotlinc |
Posted: Fri Mar 18, 2011 12:02 pm Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
Since you are now the ''SME''. you will be able to figure it out. I'm going now for the weekend. Back to work on Monday. ''SME'' stands for ... ?? _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
fszostak |
Posted: Fri Mar 18, 2011 12:03 pm Post subject: |
|
|
Acolyte
Joined: 09 Feb 2011 Posts: 64 Location: Curitiba, Brazil
|
lancelotlinc wrote: |
Since you are now the ''SME''. you will be able to figure it out. I'm going now for the weekend. Back to work on Monday. ''SME'' stands for ... ?? |
I dont know SME.... have a nice weekend!
Thanks _________________ WMB 6.1.005
Last edited by fszostak on Fri Mar 18, 2011 12:26 pm; edited 1 time in total |
|
Back to top |
|
 |
fszostak |
Posted: Fri Mar 18, 2011 12:23 pm Post subject: |
|
|
Acolyte
Joined: 09 Feb 2011 Posts: 64 Location: Curitiba, Brazil
|
Partially resolved.
If i set "c:/app/files/input" works fine in windows environment.
Before deploy to production, make a "Search and Replace" in all files.
Search: c:/app
Replace: /app _________________ WMB 6.1.005 |
|
Back to top |
|
 |
mqjeff |
Posted: Fri Mar 18, 2011 12:31 pm Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
SME stands for "Subject Matter Expert".
You are resolving this in the wrong way.
You can override these properties in the BAR File Editor in Toolkit or Broker Explore before you deploy. You can write scripts to run mqsiapplybaroverride to override these properties before the script runs mqsideploy.
You should do this in this manner, not by doing search/replace. |
|
Back to top |
|
 |
fszostak |
Posted: Sat Mar 19, 2011 11:03 am Post subject: |
|
|
Acolyte
Joined: 09 Feb 2011 Posts: 64 Location: Curitiba, Brazil
|
mqjeff wrote: |
SME stands for "Subject Matter Expert".
You are resolving this in the wrong way.
You can override these properties in the BAR File Editor in Toolkit or Broker Explore before you deploy. You can write scripts to run mqsiapplybaroverride to override these properties before the script runs mqsideploy.
You should do this in this manner, not by doing search/replace. |
Hi mqjeff!
I agree! Override properties is the better alternative.
Thanks!
Szostak _________________ WMB 6.1.005 |
|
Back to top |
|
 |
|