Bug 712436

Summary: Default ANT target is not executed when deploying bundle via JON/RHQ.
Product: [Other] RHQ Project Reporter: Duncan Doyle <ddoyle>
Component: ProvisioningAssignee: Nobody <nobody>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 3.0.1CC: hrupp
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Duncan Doyle 2011-06-10 15:42:36 UTC
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

How reproducible:
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
  
Actual results:
The default ANT target is not executed, so no file gets created.

Expected results:
Default target gets executed, file gets created.

Additional info:
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?
//project.executeTarget(project.getDefaultTarget());