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 |
Explain using ant and give an small example?
What is apache ant?
Explain how to use runtime in ant?
Explain how to test classes for junit using ant script?
Can I change/override ant properties when I use ant-contrib foreach task?
What is ivy?
How we can create a jar using ant?
Explain ant functionality?
How to use ant to run commandline command? How to get perl script running result?
In which language apache ant is written?
Explain how to use clean in ant script?
What is history of ant?