Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 349509

Summary: JAXB RM: Allow Managed File to contain Script-like content
Product: [Tools] PTP Reporter: Albert L. Rossi <arossi>
Component: RMAssignee: Albert L. Rossi <arossi>
Status: CLOSED FIXED QA Contact:
Severity: enhancement    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
XML Definition for use case example
none
Screenshot of Launch Tab (1)
none
Screenshot of Launch Tab (2) none

Description Albert L. Rossi CLA 2011-06-15 17:40:28 EDT
Right now the ManagedFile object can either point to the path of a pre-existent file, or it can have a string contents.  These contents are either resolved against the environment or not, and when not, it is assumed that it will be a reference to an attribute or property.

It would make more sense to change the content possibilities to the following:

1. reference to the value of another property or attribute
2. list of <line> types containing <arg> types, as in the <script> type.

This makes the script type a subtype of managed file (which it implicitly is), and allows more control over the resolution of the contents.
Comment 1 Albert L. Rossi CLA 2011-06-15 21:22:50 EDT
Created attachment 198055 [details]
XML Definition for use case example

Demonstration of feature
Comment 2 Albert L. Rossi CLA 2011-06-15 21:23:33 EDT
Created attachment 198056 [details]
Screenshot of Launch Tab (1)
Comment 3 Albert L. Rossi CLA 2011-06-15 21:24:01 EDT
Created attachment 198057 [details]
Screenshot of Launch Tab (2)
Comment 4 Albert L. Rossi CLA 2011-06-15 21:26:09 EDT
the input file is staged to "input" in home directory in this example.

Inspection after run submission:

[arossi@honest1 ~]$ cd input
[arossi@honest1 ~/input]$ ls
namelist.input
[arossi@honest1 ~/input]$ cat namelist.input 
&run
runname = 'cloud2d',
runlabel = 'cloud2d',
simtime = 7200.,
dt = 10.,
nsmall = 12.,
nx = 181.,
nz = 36.,
xdomain = 180000.,
zdomain = 17500.,
ugrid = 14.,
&end
c
&dump
tprint = 100.,
tplot = 300.,
tsave = 600.,
&end
c
&init_params
tbble = -15.,
xcntr = 18000.,
zcntr = 3000.,
xrad = 4000.,
zrad = 2000.,
sndtype = 0,
inittype = 0,
&end