java - Gradle : How to call implicit task provided by application plugin from other task -
i need execute run task provide 'application' plugin after completion of 'copysrctotempdir' task.
i tried
1)run.dependson copysrctotempdir -> buildfail
2)run.mustrunafter copysrctotempdir ->but won't execute run task.
apply plugin:'application' repositories { flatdir { dirs 'lib' } } dependencies { compile name: 'zip4j_1.3.2' } mainclassname = "com.md.zippwd.zipwithpassword" task copysrctotempdir(type: copy){ "d:\\demoproject" "d:\\temp" } } // run.dependson copysrctotempdir // run.mustrunafter copysrctotempdir provided gradle command accordingly gradle copysrctotempdir gradle run please suggest me i'm not finding solution.
run.dependson copysrctotempdir working me. using gradle 2.5. gradle task executing? run?
try using:
tasks.run.dependson("copysrctotempdir")
Comments
Post a Comment