What is dependency? How it is used into ant? What is its use?
Answer Posted / 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 |
Post New Answer View All Answers
No New Questions to Answer in this Category !! You can
Post New Questions
Answer Questions in Different Category