Create jar from plugin

I am developing plugin with custom run configuration.
After pressing run it should compile current project, create jar file and deploy it to my own server.
So question is how I can compile and create jar inside plugin?

3 comments
Comment actions Permalink

Why don't you simply set up a "Before launch: Build Artifacts" task for your run configuration that will build the jar for you? That's by far the simplest possible solution.

0
Comment actions Permalink

Thank you for answer. Could you please help me how to do it from code?

0
Comment actions Permalink

You can use the BuildArtifactsBeforeRunTaskProvider.setBuildArtifactBeforeRun() method to set this up.

0

Please sign in to leave a comment.