A similar question exists but the best answer seems to state there is no pure solution, but rather one needs t开发者_如何转开发o call the operating system.
Why am i after such utilities, primarily so i can integrate them into the groovy shell.
Some (mostly text-processing related) unix commands are implemented here: http://www.unix4j.org
I am unaware of a pre-cooked, drop in jar, and this same question on superuser indicates there isnt one. However, libraries such as:
- http://commons.apache.org/lang/
- http://commons.apache.org/io/
- http://code.google.com/p/guava-libraries/
Should make life easier to implement them.
This question also mentions a solution for ls
Most of this functionality is available in Java, it just has different names.
If you want to call these applications you can use Runtime.exec();
精彩评论