From 1645a794af17a62906344a70de1e18b0af2e7c1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20Garc=C3=ADa-Dom=C3=ADnguez?= Date: Thu, 23 May 2024 10:29:51 +0100 Subject: [PATCH] Rename tool across docs and build --- .github/workflows/gradle.yml | 4 ++-- .github/workflows/release-native.yml | 8 ++++---- README.md | 14 +++++++------- .../eclipse/emfatic/cli/Ecore2EmfaticCommand.java | 2 +- src/main/resources/application.properties | 2 +- 5 files changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index c7db919..741e781 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -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* diff --git a/.github/workflows/release-native.yml b/.github/workflows/release-native.yml index e26fb08..d2648f5 100644 --- a/.github/workflows/release-native.yml +++ b/.github/workflows/release-native.yml @@ -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 diff --git a/README.md b/README.md index 76f232f..8ed3828 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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: @@ -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" ``` diff --git a/src/main/java/org/eclipse/emfatic/cli/Ecore2EmfaticCommand.java b/src/main/java/org/eclipse/emfatic/cli/Ecore2EmfaticCommand.java index b409faa..4dfb081 100644 --- a/src/main/java/org/eclipse/emfatic/cli/Ecore2EmfaticCommand.java +++ b/src/main/java/org/eclipse/emfatic/cli/Ecore2EmfaticCommand.java @@ -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 { diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 2654a4b..6b4c966 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -1,2 +1,2 @@ #Tue May 21 17:03:57 BST 2024 -micronaut.application.name=ecore2Emfatic +micronaut.application.name=ecore2emfatic