Il 15/10/2009 15:32, Frédéric Martini ha scritto:
Hello,


Sorry to revive this request, but I think this is as simple but very useful
method that must be present on Java 7.

No one have an opinion on this?

Fred,

I'm not sure.

In my opinion this is easy to do in application code using something similar to what you did or Runtime.exec, but doesn't fit into the core library.

Also, in this implementation you are assuming lots of things that are not valid everywhere, like:

The system is either Windows or Linux or Solaris (or some other "sane" unix variant), the system has /bin/sh, and it's possible to use it to execute process etc...

I would not like much to see this in the standard library, especially in java.lang, as this thing is non portable by definition.

Cheers,
Mario

--
Mario Torre, Software Developer, http://www.jroller.com/neugens/
aicas Allerton Interworks Computer Automated Systems GmbH
Haid-und-Neu-Straße 18 * D-76131 Karlsruhe * Germany
http://www.aicas.com   * Tel: +49-721-663 968-44
pgp key: http://subkeys.pgp.net/ PGP Key ID: 80F240CF
Fingerprint: BA39 9666 94EC 8B73 27FA  FC7C 4086 63E3 80F2 40CF

USt-Id: DE216375633, Handelsregister HRB 109481, AG Mannheim
Geschäftsführer: Dr. James J. Hunt

Please, support open standards:
http://endsoftpatents.org/

Reply via email to