Bug with commandline params?
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.