Skip to content

Commit

Permalink
chore: Update build scripts to include logging level in echo statements
Browse files Browse the repository at this point in the history
  • Loading branch information
mkjsix committed Aug 5, 2024
1 parent a32135d commit c69ae40
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
14 changes: 7 additions & 7 deletions core/build.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<project basedir=".">
<target name="start-server">
<echo>***** Initializing MongoDB as Replica Set</echo>
<echo level="info">***** Initializing MongoDB as Replica Set</echo>
<sleep seconds="3" />
<!-- mongo shell command is mongo for v <=5.x then mongosh -->
<condition property="mongoshellcmd" value="mongo" else="mongosh">
Expand All @@ -16,7 +16,7 @@
<arg value="--eval" />
<arg value="rs.initiate()" />
</exec>
<echo>***** Printing Replica Set status:</echo>
<echo level="info">***** Printing Replica Set status:</echo>
<exec executable="docker">
<arg value="run" />
<arg value="--rm" />
Expand All @@ -28,18 +28,18 @@
<arg value="rs.status()" />
</exec>
<copy file="../test-plugins/target/restheart-test-plugins.jar" todir="./target/plugins" overwrite="true" />
<echo>***** Starting RESTHeart server</echo>
<echo>NOTE: in order to execute the integration test suite you need:</echo>
<echo>1 - Linux, OSX or Solaris (server is started with --fork option via bash script)</echo>
<echo level="info">***** Starting RESTHeart server</echo>
<echo level="info">NOTE: in order to execute the integration test suite you need:</echo>
<echo level="info">1 - Linux, OSX or Solaris (server is started with --fork option via bash script)</echo>
<exec dir="${basedir}" executable="bin/start.sh">
<arg value="-o" />
<arg value="${basedir}/src/test/resources/etc/conf-overrides.yml" />
<arg value="--fork" />
</exec>
<echo>***** Waiting RESTHeart process to start...</echo>
<echo level="info">***** Waiting RESTHeart process to start...</echo>
<waitfor maxwait="10" maxwaitunit="second" checkevery="500">
<http url="http://localhost:8080/ping" />
</waitfor>
<echo>***** RESTHeart process started</echo>
<echo level="info">***** RESTHeart process started</echo>
</target>
</project>
6 changes: 3 additions & 3 deletions core/copy-plugins.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<project basedir=".">
<target name="copy">
<echo message="***** Copying plugins to target/plugins" />
<echo message="***** Copying plugins to target/plugins" level="info" />
<mkdir dir="./target/plugins" />
<copy file="../mongoclient/target/restheart-mongoclient-provider.jar" todir="./target/plugins" overwrite="true" />
<copy file="../security/target/restheart-security.jar" todir="./target/plugins" overwrite="true" />
Expand All @@ -9,7 +9,7 @@
<copy file="../graphql/target/restheart-graphql.jar" todir="./target/plugins" overwrite="true" />
<copy file="../metrics/target/restheart-metrics.jar" todir="./target/plugins" overwrite="true" />

<echo message="***** Copying plugins dependencies to target/plugins/lib" />
<echo message="***** Copying plugins dependencies to target/plugins/lib" level="info" />
<mkdir dir="./target/plugins/lib" />
<!-- <copy todir="./target/plugins/lib" overwrite="true"><fileset dir="../mongoclient/target/lib"></fileset></copy> -->
<copy todir="./target/plugins/lib" overwrite="true">
Expand All @@ -27,6 +27,6 @@
<copy todir="./target/plugins/lib" overwrite="true">
<fileset dir="../metrics/target/lib"></fileset>
</copy>
<echo message="***** Done copying plugins" />
<echo message="***** Done copying plugins" level="info" />
</target>
</project>
2 changes: 1 addition & 1 deletion core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@
<skip>${skipITs}</skip>
<target>
<delete file="./target/plugins/restheart-test-plugins.jar" />
<echo>***** Stopping RESTHeart process...</echo>
<echo level="info">***** Stopping RESTHeart process...</echo>
<exec dir="${basedir}" executable="bin/stop.sh">
</exec>
</target>
Expand Down

0 comments on commit c69ae40

Please sign in to comment.