View RSS Feed

Apache Ant

Apache Portability

Rate this Entry
by , 02-19-2012 at 08:29 AM (712 Views)
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 command is used.

rm –rf classes/

rm is considered as a unix specified command.It is not present in any other operating system, like Microsoft windows.

In windows, this command is for deletion of all files of the Classes directory.

Rmdir /S /Q classes

Use this built-in command in Apache ant “build.xml” file.
<delete dir="classes"/>

Submit "Apache Portability" to Facebook Submit "Apache Portability" to Digg Submit "Apache Portability" to del.icio.us Submit "Apache Portability" to StumbleUpon Submit "Apache Portability" to Google

Categories
Tasks

Comments