Skip to content

Commit 0483784

Browse files
authored
Merge pull request #3 from entityc/bobgarner/converted-to-maven-project
Bobgarner/converted to maven project
2 parents 458ec03 + 7083962 commit 0483784

File tree

338 files changed

+146
-37448
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

338 files changed

+146
-37448
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
out
22
entities/srcout
33
schema
4+
target
45
server/generated
56
client/javaclient/generated/src
67
client/javaclient/generated/target
@@ -11,3 +12,4 @@ client/zcios/ClubsProto
1112
server/clubs
1213
*.idea
1314
.ec
15+
*.iml

Entity-Compiler.iml

Lines changed: 0 additions & 24 deletions
This file was deleted.

README.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,20 @@ Although many working microservices have been built using this compiler and its
5353

5454
## Building and Running
5555

56-
The next release will include a Maven project file that will allow you to build. For now, the current Github release includes a `ec.jar` jar file. To run the compiler simply perform: `java -jar ec.jar` followed by arguments (for instance: `java -jar ec.jar -help`)
56+
> It is recommended to use version 3.6.0 or above of Maven (use `mvn --version` to get its version if it is already installed).
57+
58+
This repository includes a Maven project file (`pom.xml`). This allows you to build the project and create an "executable" jar file. To do this, open a shell and go inside the repository's local directory (aka Project Directory) and run:
59+
60+
mvn clean package
61+
62+
This will build the project and produce a directory called `target`. Inside this `target` directory there should be the built jar file `ec.jar`. You may want to move this jar file to a `bin` directory in your local account (such as `~/bin`), then also have a shell script in this `bin` directory that wraps this jar file to appear as a command line executable. For example, you could create a file called just `ec` (located in your `bin` directory) that looks like the following:
63+
64+
```shell
65+
#!/bin/sh
66+
java -jar ~/bin/ec.jar $@
67+
```
68+
69+
Then to run the compiler in a shell simply perform: `ec` followed by arguments (for instance: `ec -help`)
5770

5871
## Licensing
5972

0 commit comments

Comments
 (0)