What is dependency? How it is used into ant? What is its use?
Answer / Sanjay Kumar Maurya
"Dependency" in Apache Ant refers to a file or resource that one build target depends on. It can be another target, a Java class, an external library, or any other file required for the successful execution of the build target. Dependencies are specified using the "depends" attribute in the target element. The main use of dependencies is to ensure that the prerequisites for a target are met before its execution.nnFor example:n<target name="my-target" depends="init, another-target">n...n</target>nIn this example, the "my-target" depends on the initialization of the "init" target and the successful execution of the "another-target".
| Is This Answer Correct ? | 0 Yes | 0 No |
Can I change/override ant properties when I use ant-contrib foreach task?
How we can deploy file on server using ant?
How to set classpath in ant script?
How you can prepare a project in ant?
In which language apache ant is written?
Why do you call it ant?
Explain how to modify properties in ant?
What is ant?
How does ant read properties? How to set my property system?
What is ivy? What are the key features of 2.5.0?
Explain using ant and give an small example?
What is ivy?