Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How we can deploy file on server using ant?



How we can deploy file on server using ant?..

Answer / Pratibha Nandan

To deploy files to a server using Ant, you need to use the `<copy>` task. Here's an example:

```
<project>
<target name="deploy">
<copy todir="${server.root.dir}">
<fileset dir="${build.dir}"/>
</copy>
</target>
</project>
```

Replace `${server.root.dir}` and `${build.dir}` with the actual paths.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Apache Ant Interview Questions

What is history of ant?

1 Answers  


How we can echo message in ant?

1 Answers  


How we can create a jar using ant?

1 Answers  


What is apache ant?

1 Answers  


Explain how to make ant user interactive?

1 Answers  


How we can run jar using ant?

1 Answers  


How to set classpath in ant script?

1 Answers  


What are the capabilities of ant?

1 Answers  


Can you explain ant functionality?

1 Answers  


How you can compile, jar and run into ant command prompt?

1 Answers  


In which language apache ant is written?

1 Answers  


List some basic functions performed by ant.

1 Answers  


Categories