Skip to content

Commit

Permalink
Rename tool across docs and build
Browse files Browse the repository at this point in the history
  • Loading branch information
agarciadom committed May 23, 2024
1 parent 91dc1f0 commit 1645a79
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@ jobs:
- name: Upload binary
uses: actions/upload-artifact@v4
with:
name: ecore2Emfatic-${{ matrix.os }}
path: build/native/nativeCompile/ecore2Emfatic*
name: ecore2emfatic-${{ matrix.os }}
path: build/native/nativeCompile/ecore2emfatic*
8 changes: 4 additions & 4 deletions .github/workflows/release-native.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
zip -j ${{ matrix.os }}-ecore2Emfatic.zip build/native/nativeCompile/ecore2Emfatic*
gh release upload $GITHUB_REF_NAME ${{ matrix.os }}-ecore2Emfatic.zip
zip -j ${{ matrix.os }}-ecore2emfatic.zip build/native/nativeCompile/ecore2emfatic*
gh release upload $GITHUB_REF_NAME ${{ matrix.os }}-ecore2emfatic.zip
- name: Upload release asset (Windows)
if: ${{ matrix.os == 'windows-latest' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
Compress-Archive -Path build/native/nativeCompile/ecore2Emfatic* -DestinationPath ${{ matrix.os }}-ecore2Emfatic.zip
gh release upload ${{ github.ref_name }} ${{ matrix.os }}-ecore2Emfatic.zip
Compress-Archive -Path build/native/nativeCompile/ecore2emfatic* -DestinationPath ${{ matrix.os }}-ecore2emfatic.zip
gh release upload ${{ github.ref_name }} ${{ matrix.os }}-ecore2emfatic.zip
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ It is recommended to use [SDKMAN](https://sdkman.io/) for installing and managin
To produce Emfatic sources from an `.ecore` file, using the all-in-one JAR file in `build/libs/*-all.jar`:

```sh
java -jar path/to/ecore2Emfatic-VERSION-all.jar path/to/your.ecore
java -jar path/to/ecore2emfatic-VERSION-all.jar path/to/your.ecore
```

When using one of the native binaries, this can be simplified to:

```sh
path/to/ecore2Emfatic path/to/your.ecore
path/to/ecore2emfatic path/to/your.ecore
```

## Using native binaries as a Git filter
Expand All @@ -34,13 +34,13 @@ In order to compute differences between `.ecore` file versions using a Git `text
In Linux/Mac:

```sh
cp build/native/nativeCompile/ecore2Emfatic /folder/in/PATH
cp build/native/nativeCompile/ecore2emfatic /folder/in/PATH
```

You will then need to define the `ecore` differencing algorithm:

```sh
git config --global diff.ecore.textconv ecore2Emfatic
git config --global diff.ecore.textconv ecore2emfatic
```

You can then use this conversion from any Git repository, by adding a `.gitattributes` file to its root folder with this content:
Expand Down Expand Up @@ -71,18 +71,18 @@ index 84da8c9..f611dd1 100644
If your `.ecore` files import other metamodels through URIs, you can provide mappings from URIs to specific `.ecore` files or folders via the `--from` and `--to` options:

```sh
path/to/ecore2Emfatic --from platform:/resource --to path/to/base/folder your.ecore
path/to/ecore2emfatic --from platform:/resource --to path/to/base/folder your.ecore
```

You can specify multiple pairs of `--from` and `--to` options, as in:

```sh
path/to/ecore2Emfatic --from A --to B --from C --to D your.ecore
path/to/ecore2emfatic --from A --to B --from C --to D your.ecore
```

If you are using this tool as a `textconv` filter via Git, you would need to provide these options in your repository's configuration.
For example:

```sh
git config diff.ecore.textconv "ecore2Emfatic --from A --to B"
git config diff.ecore.textconv "ecore2emfatic --from A --to B"
```
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
EStringToStringMapEntryImpl[].class,
ETypeParameter[].class
})
@Command(name = "ecore2Emfatic", description = "Generates Emfatic sources from an .ecore file", mixinStandardHelpOptions = true)
@Command(name = "ecore2emfatic", description = "Generates Emfatic sources from an .ecore file", mixinStandardHelpOptions = true)
public class Ecore2EmfaticCommand implements Runnable {

static class URIMapping {
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/application.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#Tue May 21 17:03:57 BST 2024
micronaut.application.name=ecore2Emfatic
micronaut.application.name=ecore2emfatic

0 comments on commit 1645a79

Please sign in to comment.