I am creating some custom tasks in my SBT project and need to call other tasks for that.
How can i call inputTasks from inside my tasks and support them some input?
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.
Since you can factor your own tasks around this I’m assuming you’re trying to use the
runtask. It took a bit of digging, but I’ve finally made it work; in a nutshell, this is what you do (assuming your task is nameddeployTask, tweak to match your needs):This doesn’t invoke the
InputTaskdirectly (I haven’t found a way to do that yet), but it at least lets you run arbitrary Java code.