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 |
What is history of ant?
How we can echo message in ant?
How we can create a jar using ant?
What is apache ant?
Explain how to make ant user interactive?
How we can run jar using ant?
How to set classpath in ant script?
What are the capabilities of ant?
Can you explain ant functionality?
How you can compile, jar and run into ant command prompt?
In which language apache ant is written?
List some basic functions performed by ant.