Bug 744004 - CLI script examples references unknown external function
Summary: CLI script examples references unknown external function
Status: CLOSED DUPLICATE of bug 738063
Alias: None
Product: RHQ Project
Classification: Other
Component: Documentation
Version: 4.1
Hardware: Unspecified
OS: Unspecified
high vote
Target Milestone: ---
: ---
Assignee: Deon Ballard
QA Contact: Mike Foley
Depends On:
TreeView+ depends on / blocked
Reported: 2011-10-06 18:03 UTC by Mike Foley
Modified: 2011-10-24 15:03 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2011-10-24 15:03:23 UTC

Attachments (Terms of Use)
CLI script (2.34 KB, text/javascript)
2011-10-06 18:03 UTC, Mike Foley
no flags Details

Description Mike Foley 2011-10-06 18:03:33 UTC
Created attachment 526764 [details]
CLI script

Description of problem:  CLI script examples references unknown external function


at lines 1, 11, 16, 29, and 51 ... the example script references an unknown external function named usage();  

Actual results:
Exception in thread "main" org.rhq.enterprise.client.script.CLIScriptException: javax.script.ScriptException: sun.org.mozilla.javascript.EcmaError: ReferenceError: "usage" is not defined. (<Unknown source>#29) in <Unknown source> at line number 29

Expected results:
example script works.  

Additional info:

Comment 1 Deon Ballard 2011-10-13 01:16:41 UTC
Hmm. I could have sworn that this example was on the RHQ wiki, but I cannot find it. I can find and article on the JBoss wiki (http://community.jboss.org/wiki/JON23ScriptedGroupDeploymentsUsingTheCLIAPI), but I don't recognize the author.

I'll check the example scripts in the source and see what I come up with.

Comment 2 Deon Ballard 2011-10-24 15:03:23 UTC

*** This bug has been marked as a duplicate of bug 738063 ***

Note You need to log in before you can comment on or make changes to this bug.