Skip to content
This repository has been archived by the owner on Nov 9, 2022. It is now read-only.

Export properties for a given environment #437

Closed
rlouapre opened this issue May 11, 2015 · 5 comments
Closed

Export properties for a given environment #437

rlouapre opened this issue May 11, 2015 · 5 comments

Comments

@rlouapre
Copy link
Contributor

I am looking for a way to export the list of propertie for a given environment and I was planning to use ml info for that.
The idea is to reuse the parameter defined in Roxy for other tools (gulp, mocha...).
The current format used by ml info can be easily formatted but we need to be careful with providing more feedback #414 (comment).
It would be event easier if Roxy could support standard format: xml, csv or yml.
Or is there a better way than using ml info

@paxtonhare - how MarkLogic Sublime does it?

@grtjn
Copy link
Contributor

grtjn commented May 13, 2015

It should be almost trivial to convert the output of ml info with sed or awk I'd say, but interesting anyhow I think.

XML or JSON output makes sense. CSV makes a bit less sense to me. INI or properties style more. And the current output is already compatible with YML I think, except that it is lacking hierarchy?

@rlouapre
Copy link
Contributor Author

Why would I need additional command line tools to convert it?
They might be available on OSX or Linux but maybe not out of box on Windows 😃

I am not sure the current is compatible with yml:

IS_JAR: false
Properties:
ml.xquery.dir: D:/Projects/ml/xxx/src
ml.xquery-test.dir: D:/Projects/xxx/roxy/src/test
ml.xcc-server-name: 8271-xxx-xdbc
...

I am happy to implement this feature once we agree on the supported format.

@grtjn
Copy link
Contributor

grtjn commented May 13, 2015

I meant sed and awk as a workaround.

I would be happy with something like ml local info --format=xml. @paxtonhare, @dmcassel?

@dmcassel
Copy link
Collaborator

Seems reasonable to me. Something like: ml local info --format=json

{
  "isJar": false,
  "properties": {
    "ml.xquery.dir": "/Users/dcassel/git/roxy-dmc/src",
    "ml.xquery-test.dir": "/Users/dcassel/git/roxy-dmc/src/test",
    ...
  }
}

dmcassel added a commit that referenced this issue May 17, 2015
@dmcassel
Copy link
Collaborator

fixed in dev

@grtjn grtjn mentioned this issue Jun 19, 2015
@grtjn grtjn modified the milestone: 1.7.3 Jun 30, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants