Portability problems are solved by the Apache Ant. All the required actions for creation of a target are being specified as the shell commands, in Make file. All commands are platform specified. For running the Make at varying platforms, platform specific commands shall be written.
Built in functionality is being provided largely by the Apache Ant which would be behaving similary at all platforms.
For cleaning targets or to delete files present in class directory, this