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

Explain using ant and give an small example?

1 Answers  


What is apache ant?

1 Answers  


Explain how to use runtime in ant?

1 Answers  


Explain how to test classes for junit using ant script?

1 Answers  


Can I change/override ant properties when I use ant-contrib foreach task?

1 Answers  


What is ivy?

1 Answers  


How we can create a jar using ant?

1 Answers  


Explain ant functionality?

1 Answers  


How to use ant to run commandline command? How to get perl script running result?

1 Answers  


In which language apache ant is written?

1 Answers  


Explain how to use clean in ant script?

1 Answers  


What is history of ant?

1 Answers  


Categories