• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Bug with commandline params?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bug with commandline params?


  • Subject: Bug with commandline params?
  • From: Markus Ruggiero <email@hidden>
  • Date: Tue, 17 Feb 2004 23:09:11 +0100

This is Xcode 1.1 and WebObjects 5.2.2 on the latest Panther.

One can specifiy command line params for an executable that Xcode will pass to the running app. Fine. We have one such param for the login to MySQL. This param looks as follows:

-dburl=jdbc:mysql://myhost/mydbname?useUnicode=true&characterEncoding=ISO-8859-1

This works fine and my app can connect to the correct db (I use this to override the connection url in the EOModel). However I do not get any output from the running WO app unless I switch the run configuration to using pipe instead of pseudo terminal (which is the default for a new WO project). And when stopping the WO app from Xcode the java process does not get killed, thus accumulating processes upon processes during development debug-build-run-cycles. It took me weeks to figure out what caused the strange behavior: it's the & (ampersand) in the url. This ampersand causes the process to detach itself (it becomes a background process). This is standard unix command line behaviour. Interesting fact is that still the whole url including the part after the & is being passed to the app! I was not able to overcome this by quoting the url. Neither quotes nor escaping the ampersand helped. Any such "special" char crashed the app and/or Xcode or produced other unexpected behaviour.

Is this a bug in Xcode or am I missing something here? If it is a bug I will submit a report.

Thanks for any clarification
---markus---

--
Markus Ruggiero
rucotec consulting and technologies    email     mailto:email@hidden
rucotec GmbH                                web       http://www.rucotec.ch
Steinentorstrasse 8
4051 Basel                                  Mobile    +41 (0)79 508 4701
Switzerland                                 Phone/Fax +41 (0)61 271 4990
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Can't seem to get CVS to ignore my build directories
  • Next by Date: Re: Can't seem to get CVS to ignore my build directories
  • Previous by thread: Re: Can't seem to get CVS to ignore my build directories
  • Next by thread: Re: CHUD mailing list?
  • Index(es):
    • Date
    • Thread