Red Hat Bugzilla – Bug 712436
Default ANT target is not executed when deploying bundle via JON/RHQ.
Last modified: 2011-10-07 15:00:35 EDT
Description of problem:
When you create a Bundle recipe file and define a 'default' ANT target (for example 'main'), this target will be executed by the RHQ Bundle Deployer, i.e. the command line test tool. However, when you deploy your bundle with JBoss Operations Network (2.4.1), this default ANT target is not executed
Version-Release number of selected component (if applicable):
JBoss Operations Network 2.4.1
Create an ANT bundle recipe with a default ANT target which, for example, creates a file in a certain directory. Deploy that bundle with the command line RHQ Bundle Deployer, the file will be created. Deploy the same bundle via JON, the file will not be created.
Steps to Reproduce:
1. Create a ANT Bundle file with a default ANT target which creates a file in a directory and deploy that bundle via JON
The default ANT target is not executed, so no file gets created.
Default target gets executed, file gets created.
Talked with Mazz about this on IRC and the problem is due to GIT commit: 8b50ba816d704ced7668a7fa6aa869416ba0c043 . This commit commented out the following code:
// Should we execute the default target here?