Bug 817050 - Provide a way to use multiple JS files in non-interactive mode
Summary: Provide a way to use multiple JS files in non-interactive mode
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: RHQ Project
Classification: Other
Component: CLI
Version: 4.4
Hardware: Unspecified
OS: Unspecified
medium
unspecified
Target Milestone: ---
: ---
Assignee: RHQ Project Maintainer
QA Contact: Mike Foley
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-04-27 14:07 UTC by Libor Zoubek
Modified: 2015-11-02 00:42 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-09-05 14:27:57 UTC
Embargoed:


Attachments (Terms of Use)

Description Libor Zoubek 2012-04-27 14:07:22 UTC
Description of problem: Our JS codebase is growing and we are experiencing duplicating code. We tend to write some common.js script that would contain common functions, that would be reused in other scripts. 

Currently RHQ Client does not provide a way to include or import one JS into another or pass multiple JS files as arguments.

Version-Release number of selected component (if applicable):
RHQ 4.4
  
According to http://workingrhino.blogspot.com/2007/10/readdir.html there is a 'load' function, that could be part of one JS file to import another. In RHQ client this function is not available.

Another way would be allowing to pass multiple files to -f option of CLI

Comment 1 Mike Foley 2012-04-30 16:02:08 UTC
triaged 4/30/2012 by loleary, ccrouch, mfoley

Comment 2 Libor Zoubek 2014-09-05 14:27:57 UTC
fixed long time ago by adding commonjs module support


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