Skip to content

Commit

Permalink
Fix java build
Browse files Browse the repository at this point in the history
  • Loading branch information
jbeers committed Sep 4, 2024
1 parent ea53937 commit 77636a2
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
8 changes: 6 additions & 2 deletions tasks/Build.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ component {
}

function buildJavaDeps(){
print
.line()
.boldMagentaLine( "Running task tasks/buildJavaDeps" )
.toConsole();
task( "tasks/BuildJavaDeps" )
.inWorkingDirectory( variables.cwd )
.run();
Expand Down Expand Up @@ -139,8 +143,8 @@ component {
command( "tokenReplace" )
.params(
path = "/#variables.projectBuildDir#/**",
token = ( arguments.branch == "master" ? "@build.number@" : "+@build.number@" ),
replacement = ( arguments.branch == "master" ? arguments.buildID : "-snapshot" )
token = ( arguments.branch == "main" ? "@build.number@" : "+@build.number@" ),
replacement = ( arguments.branch == "main" ? arguments.buildID : "-snapshot" )
)
.run();

Expand Down
11 changes: 9 additions & 2 deletions tasks/BuildJavaDeps.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ component {

var rootDir = getCWD().reReplace( "[\\/]$", "" );

print.line( rootDir );
return;
print
.line()
.boldMagentaLine( "Executing java build" )
.toConsole();

command( "run" )
.inWorkingDirectory( rootDir & "/java/cbsso-opensaml" )
Expand All @@ -25,6 +27,11 @@ component {
command( "cd" )
.params( rootDir )
.run();

print
.line()
.boldMagentaLine( "Finished building java dependences: cbsso-opensaml-all.jar" )
.toConsole();
}

}

0 comments on commit 77636a2

Please sign in to comment.