Include git commit id in released versions
This commit is contained in:
parent
8a72d359e0
commit
ed6900f180
@ -112,9 +112,9 @@ public class RefineServlet extends Butterfly {
|
||||
}
|
||||
if (REVISION.equals("$REVISION")) {
|
||||
ClassLoader classLoader = getClass().getClassLoader();
|
||||
InputStream gitStats = classLoader.getResourceAsStream("git.properties");
|
||||
ObjectMapper mapper = new ObjectMapper();
|
||||
try {
|
||||
InputStream gitStats = classLoader.getResourceAsStream("git.properties");
|
||||
ObjectMapper mapper = new ObjectMapper();
|
||||
ObjectNode parsedGit = mapper.readValue(gitStats, ObjectNode.class);
|
||||
REVISION = parsedGit.get("git.commit.id.abbrev").asText("TRUNK");
|
||||
} catch (IOException e) {
|
||||
|
@ -46,6 +46,11 @@
|
||||
<exclude name="WEB-INF/lib/icu4j*.jar"/>
|
||||
</fileset>
|
||||
</copy>
|
||||
<copy todir="${built.webapp.dir}">
|
||||
<fileset dir="${webapp.dir}">
|
||||
<include name="**/*.properties"/>
|
||||
</fileset>
|
||||
</copy>
|
||||
<copy todir="${built.webapp.dir}/WEB-INF/lib/">
|
||||
<fileset dir="${webapp.target}">
|
||||
<include name="openrefine-main.jar" />
|
||||
|
Loading…
Reference in New Issue
Block a user