cancel
Showing results for 
Search instead for 
Did you mean: 

How to delete deployment with ant?

kingsword
Champ in-the-making
Champ in-the-making
hi,

We can delete or delete cascade deployment in acitiviti-probe. But It depend on tomcat. How can we delete deployment only with Ant? or execute sql?

Thank you!
3 REPLIES 3

frederikherema1
Star Contributor
Star Contributor
Hi,

Currently, there is no ant-task that allows this in activiti. If you don't want to depend on tomcat (using probe or REST), you can write your own Ant-task which uses the Activiti API:

repositoryService.deleteDeployment(id, true);

Take a look at org.activiti.engine.impl.ant.DeployBarTask to see how the process-engine is retrieved.

tombaeyens
Champ in-the-making
Champ in-the-making
Simpler then writing your own ant-task might be to write an executable Java class (with a public static void main(String[] args){…})
Then this class can be called from ant with the java ant task.

kingsword
Champ in-the-making
Champ in-the-making
Thank you!