Have you gone through the
Selenium tutorials? If not, please do, then you can come back with specific questions.
Or is you question more on how to integrate Selenium test scripts into your Ant build? If so,
this page gives instructions on running Selenium scripts form the command line.