Skip to content

Commit

Permalink
Use Maven of frank-runner to build ladybug-frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
Martijn Dirkse committed Sep 27, 2024
1 parent be767b0 commit 4ef012c
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,8 @@ Here are short descriptions of the options provided in the `specials` folder:
* `specials/iaf-example`: Runs the example Frank application included in
the F!F source code.
* `specials/test-startup-times`
* `ladybug-frontend`: Runs Maven build of ladybug-frontend but does not launch
anything.

In each mentioned subfolder, there is a `restart.bat` and a `restart.sh`
to build the Frank!Framework, ladybug or ladybug-test-webapp and to
Expand Down
17 changes: 17 additions & 0 deletions specials/ladybug-frontend/build.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<project default="run-ladybug-frontend-maven-build" xmlns:if="ant:if" xmlns:unless="ant:unless">
<target name="run-ladybug-frontend-maven-build">
<condition property="ladybug.frontend.not.present"><not><resourceexists><file file="../../../ladybug-frontend"/></resourceexists></not></condition>
<fail message="Folder 'ladybug-frontend' not found, please clone https://github.com/wearefrank/ladybug-frontend.git" if:set="ladybug.frontend.not.present"/>
<property name="ladybug.frontend.dir" location="../../../ladybug-frontend" />
<condition property="mvn.exe" value="../frank-runner/mvn.bat" else="/bin/bash"><os family="windows"/></condition>
<condition property="mvn.arg" value="../frank-runner/mvn.sh" else=""><os family="unix"/></condition>

<echo message="ladybug: Build ibis-echo2" if:true="${build.echo2}"/>
<property name="build.echo2" value="false"/>
<exec executable="${mvn.exe}" dir="${ladybug.frontend.dir}" vmlauncher="false" failonerror="true">
<arg value="${mvn.arg}" unless:blank="${mvn.arg}"/>
<arg value="clean" unless:true="${maven.skip.clean}"/>
<arg value="install"/>
</exec>
</target>
</project>
6 changes: 6 additions & 0 deletions specials/ladybug-frontend/run.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
call ..\..\ant.bat
if %errorlevel% equ 0 goto end
rem https://superuser.com/questions/527898/how-to-pause-only-if-executing-in-a-new-window
set arg0=%0
if [%arg0:~2,1%]==[:] if not [%TERM_PROGRAM%] == [vscode] pause
:end
2 changes: 2 additions & 0 deletions specials/ladybug-frontend/run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/bash
../../ant.sh

0 comments on commit 4ef012c

Please sign in to comment.