It's all about the answers!

Ask a question

Is there a way to get FILE properties out of the RTC server?


Kevin Hoyt (314) | asked Nov 08 '16, 2:56 p.m.
 I'm looking for file properties, like the file encoding, line endings, and binary status.  Access to custom tags would be idea.  Looking for a command line interface to enable us to work with several files...

I'm obviously searching in the wrong location for help so thought I'd ask before I give up :-(

Reason I'm looking for this information is to validate a set of files has the correct settings.  There are several dozen, if not hundreds to check.

Optionally, being able to update them would be great.

Accepted answer


permanent link
Shashikant Padur (4.3k27) | answered Nov 08 '16, 10:30 p.m.
JAZZ DEVELOPER
edited Nov 08 '16, 10:33 p.m.
The scm command line has the 'scm show properties <files>' command that lists the standard properties as well as user set properties. 'scm get property <key> <files>' gets a specific property value and 'scm set property <key> <value> <files>' sets a property.

For ex:
$ scm show properties plugin.xml
<absolute path of plugin.xml>
  jazz.encoding       - UTF-8
  jazz.executable     - false
  jazz.line-delimiter - Platform
  jazz.mime           - application/xml
  jazz.read-access    - Component scoped
  local.encoding      - UTF-8
Kevin Hoyt selected this answer as the correct answer

Comments
Kevin Hoyt commented Nov 09 '16, 10:55 a.m.

This will get the jazz.* properties.  


To get the custom property I needed to use the 'get property' command.

Bottom line, I can get what I need.

Thank you for the help!

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.