Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 349509 - JAXB RM: Allow Managed File to contain Script-like content
Summary: JAXB RM: Allow Managed File to contain Script-like content
Status: CLOSED FIXED
Alias: None
Product: PTP
Classification: Tools
Component: RM (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Albert L. Rossi CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-15 17:40 EDT by Albert L. Rossi CLA
Modified: 2011-06-15 21:26 EDT (History)
0 users

See Also:


Attachments
XML Definition for use case example (38.10 KB, application/xml)
2011-06-15 21:22 EDT, Albert L. Rossi CLA
no flags Details
Screenshot of Launch Tab (1) (292.41 KB, image/jpeg)
2011-06-15 21:23 EDT, Albert L. Rossi CLA
no flags Details
Screenshot of Launch Tab (2) (506.73 KB, image/jpeg)
2011-06-15 21:24 EDT, Albert L. Rossi CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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