Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
evshvarov authored Aug 7, 2017
1 parent 6640598 commit 4c0fc8b
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ import the [release](https://github.com/intersystems-ru/cache-udl/releases) to t

Map sc package to %All namespace to make it visible in any namespace.

# Usage

## Setup working directory ( optional )
```
NS> w ##class(sc.code).workdir("/path/to/your/working/directory/")
Expand All @@ -23,3 +25,29 @@ NS> d ##class(sc.code).export()
```
NS> d ##class(sc.code).import()
```

## Compile and Release:

Introduce cos.json file in the source root directory with settings for the code mask and for the name of the project. e.g.
```
cos.json
"compileList": "Classes*.INC,classes*.CLS,*.DFI",
"projectName": "myproject"
```
Run init method to initialize project settings:
```
NS> d ##class(sc.code).init()
```
Then run release to export all the classes in comileList into one "myproject.xml" release file. It will export it into the default for current Namespace directory.
```
NS> d ##class(sc.code).release()
```
Or compile it whenever you want to compile all the proejct related resources.
```
NS> d ##class(sc.code).compile()
```





0 comments on commit 4c0fc8b

Please sign in to comment.