Restcomm-Connect
Restcomm-Connect copied to clipboard
What is the right way to build from source?
I was a little confused by finding both a build.xml
, as well as a pom.xml
in the project, so I was wondering whether I should be building using ant or maven...
I then came across the building from source guide, however that instructed me to create a new build script:
You will need to create a script to build Restcomm-Connect. Copy the script below into a bash script on your local directory at the root of the RestComm-Connect. In this tutorial, the script below is stored in the file restcomm-connect-build.sh.
I did create the script, and that did help me build the project, but then I realized there's already another bash script in the project root already (yeah, i know, i should have noticed!) , which is also titled build.sh
- implying that's what I should be using.
I am therefore a little confused...
The .travis.yml
file, does imply that the build.sh
is the right script to use... But then again the README.md
mentions CloudBees
..
Clearly, something needs to be updated, so I'm wondering where I can help.
In addition, I am wondering if the build process itself can be simplified. From what I have seen, this currently entails:
- running a bash script, which:
- invokes a maven plugin to set some versions, and then,
- invokes an ant build, which:
- invokes a maven build,
- and once that's finished, more maven plugins are used.
I am wondering if there is already an ongoing effort to just switch everything to maven and get rid of the ant build... ?
I could help. As long as there are no legacy / backward-compatibility reasons that are keeping this from happening, I'd be happy to look into this in more detail and open a PR.
@gsaslis @gvagenas can comment better on the bash scripts but yes this is one of the tech debt that needs to be fixed to move everything to maven. @jaimecasero can provide additional comments here as well as he was the one raising this tech debt first as it's present in other projects as well.
If you could help on this that would be great
Hi @gsaslis , I write this script to compile & run restcomm. Hope it will help in your case. Just need to type a couple of commands:
. RC
rc_build
rc_start
rc_stop
In my case, to use rc_start
I prepared some predefined files & configurations as below. I did not put them here because they store some of MySQL credentials. I just follow this guideline to create them
As part of upcoming Wildfly10 support, the assembly ant script will be converted into different maven modules using assemblyPlugin, so there will be no more ant scripts to generate RC binary files.
This branch is containing the in-progress work on that https://github.com/RestComm/Restcomm-Connect/tree/restcomm1657/release . Once completed/reviewed we will remove any presence of ant scripts,and corresponding resources.
Legacy versions will still use ant script until we discontinue all previous versions