How you can clean or delete workspace using ant?



How you can clean or delete workspace using ant?..

Answer / Sulekha Kumari

"To clean or delete the workspace using Ant, you can define a 'clean' target in your buildfile and use the <delete> task to remove specific directories. Here's an example:nn<target name="clean">n <delete dir="bin"></delete>n <delete dir="dist"></delete>n</target>n

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Apache Ant Interview Questions

Explain how to test classes for junit using ant script?

1 Answers  


What are the capabilities of ant?

1 Answers  


How does ant read properties? How to set my property system?

1 Answers  


How you can explain ant property?

1 Answers  


How we can run jar using ant?

1 Answers  


Why do you call it ant?

1 Answers  


List some basic functions performed by ant.

1 Answers  


Explain how to debug my ant script?

1 Answers  


How to hide password input?

1 Answers  


How can I write my own ant task?

1 Answers  


What is apache ant?

1 Answers  


Can you define build tool?

1 Answers  


Categories