This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
To create a symbolic link you could use Runtime.exec(String command). As for copying a file, it could be done in many different ways. A simple option is to create a FileInputStream reading bytes from the source and writing them to the target FileOutputStream.
If you would like to simplify the whole process then maybe you would like to use Jakarta Commons IO, which provides a few method in the IOUtilities class that could make your life easier.
I hope this helps! [ May 23, 2006: Message edited by: Edwin Dalorzo ]
Originally posted by Edwin Dalorzo: To create a symbolic link you could use Runtime.exec(String command).
Which means, you just execute a system command (like "ln" on Unix) to do it. There is no method in the standard API to create a symbolic link. Note that symbolic links are a platform-specific feature (most Unix variants have it, but Windows doesn't). The standard API generally does not contain methods to do such platform-specific things.