Skip to content

Commit

Permalink
fix(jbang): fix packaging on release
Browse files Browse the repository at this point in the history
  • Loading branch information
tadayosi committed Nov 15, 2023
1 parent 4ad775c commit 098dc61
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion hawtio-jbang/dist/HawtioJBang.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
///usr/bin/env jbang "$0" "$@" ; exit $?

/**
/*
* Copyright (C) 2013 the original author or authors.
* See the NOTICE file distributed with this work for additional
* information regarding copyright ownership.
Expand Down
5 changes: 3 additions & 2 deletions hawtio-jbang/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,12 @@
<id>update-jbang-version</id>
<phase>prepare-package</phase>
<configuration>
<tasks>
<target>
<replaceregexp match="hawtio.jbang.version:(.*)}" replace="hawtio.jbang.version:${project.version}}">
<fileset dir="${basedir}" includes="**/HawtioJBang.java" />
</replaceregexp>
</tasks>
<chmod file="${dist.dir}/*.java" perm="u+x" />
</target>
</configuration>
<goals>
<goal>run</goal>
Expand Down
2 changes: 1 addition & 1 deletion hawtio-jbang/src/main/jbang/main/HawtioJBang.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
///usr/bin/env jbang "$0" "$@" ; exit $?

/**
/*
* Copyright (C) 2013 the original author or authors.
* See the NOTICE file distributed with this work for additional
* information regarding copyright ownership.
Expand Down

0 comments on commit 098dc61

Please sign in to comment.