Skip to content

Commit

Permalink
support clojure binaries with or without standalone in them
Browse files Browse the repository at this point in the history
  • Loading branch information
FarazPatankar committed Nov 13, 2024
1 parent 52a58e4 commit 112264a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/clojure.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ impl Provider for ClojureProvider {
let mut build = Phase::build(Some(format!("{build_cmd}; {move_file_cmd}")));
build.depends_on_phase("setup");

let start = StartPhase::new("JAR_FILE=$(find ./target -name \"*standalone.jar\"); bash -c \"java $JAVA_OPTS -jar $JAR_FILE\"");
let start = StartPhase::new(r#"JAR_FILE=$(find /app/target -name "*-standalone.jar" -o -name "*.jar" ! -name "*-SNAPSHOT.jar" | head -n 1) && bash -c "java $JAVA_OPTS -jar $JAR_FILE""#);

let plan = BuildPlan::new(&vec![setup, build], Some(start));
Ok(Some(plan))
Expand Down

0 comments on commit 112264a

Please sign in to comment.