mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-11-01 21:17:13 +00:00
Add build-checkpoints shell wrappers.
This commit is contained in:
13
tools/build-checkpoints
Executable file
13
tools/build-checkpoints
Executable file
@@ -0,0 +1,13 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
# Check if the jar has been built.
|
||||||
|
if [ ! -e target/build-checkpoints.jar ]; then
|
||||||
|
echo "Compiling BuildCheckpoints to a JAR"
|
||||||
|
cd ..
|
||||||
|
mvn package -DskipTests
|
||||||
|
cd tools
|
||||||
|
fi
|
||||||
|
|
||||||
|
java -jar target/build-checkpoints.jar "$@"
|
||||||
18
tools/build-checkpoints.cmd
Normal file
18
tools/build-checkpoints.cmd
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
@echo off
|
||||||
|
rem Check if the jar has been built.
|
||||||
|
set TARGET_JAR=build-checkpoints.jar
|
||||||
|
|
||||||
|
if not exist "target/%TARGET_JAR%" goto BUILD
|
||||||
|
goto RUN
|
||||||
|
|
||||||
|
:BUILD
|
||||||
|
|
||||||
|
echo Compiling BuildCheckpoints to a JAR
|
||||||
|
cd ..
|
||||||
|
call mvn package -DskipTests
|
||||||
|
cd tools
|
||||||
|
|
||||||
|
:RUN
|
||||||
|
|
||||||
|
for /R "target/" %%F in (%TARGET_JAR%) do set JAR_NAME=%%~nxF
|
||||||
|
java -jar "target/%JAR_NAME%" %1 %2 %3 %4 %5 %6 %7 %8
|
||||||
@@ -52,19 +52,37 @@
|
|||||||
</excludes>
|
</excludes>
|
||||||
</filter>
|
</filter>
|
||||||
</filters>
|
</filters>
|
||||||
<transformers>
|
|
||||||
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
|
|
||||||
<mainClass>org.bitcoinj.tools.WalletTool</mainClass>
|
|
||||||
</transformer>
|
|
||||||
</transformers>
|
|
||||||
<outputFile>target/wallet-tool.jar</outputFile>
|
|
||||||
</configuration>
|
</configuration>
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
|
<id>shade-wallet-tool</id>
|
||||||
<phase>package</phase>
|
<phase>package</phase>
|
||||||
<goals>
|
<goals>
|
||||||
<goal>shade</goal>
|
<goal>shade</goal>
|
||||||
</goals>
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<transformers>
|
||||||
|
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
|
||||||
|
<mainClass>org.bitcoinj.tools.WalletTool</mainClass>
|
||||||
|
</transformer>
|
||||||
|
</transformers>
|
||||||
|
<outputFile>target/wallet-tool.jar</outputFile>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
<execution>
|
||||||
|
<id>shade-build-checkpoints</id>
|
||||||
|
<phase>package</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>shade</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<transformers>
|
||||||
|
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
|
||||||
|
<mainClass>org.bitcoinj.tools.BuildCheckpoints</mainClass>
|
||||||
|
</transformer>
|
||||||
|
</transformers>
|
||||||
|
<outputFile>target/build-checkpoints.jar</outputFile>
|
||||||
|
</configuration>
|
||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|||||||
Reference in New Issue
Block a user