I want to use one of Ant’s task (scp) from inside my code. Is there any way to do it?
Should I simply reference one of Ant’s library and call the API directly from my code?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes, you can invoke Ant tasks quite easily from your code.
Here’s an example of how to extend an Ant Task:
Here’s how to use it in your code:
Here’s some more info: