mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-03-10 09:20:04 +01:00
Create a lightly optimised, dedicated JAR for wallet-tool instead of the oddly named bitcoinj-tools-0.12.jar
This commit is contained in:
parent
918665a6e4
commit
6778a51d45
3 changed files with 12 additions and 12 deletions
|
@ -33,13 +33,15 @@
|
||||||
<build>
|
<build>
|
||||||
|
|
||||||
<plugins>
|
<plugins>
|
||||||
|
|
||||||
|
<!-- Create wallet-tool.jar -->
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-shade-plugin</artifactId>
|
<artifactId>maven-shade-plugin</artifactId>
|
||||||
<version>1.6</version>
|
<version>1.6</version>
|
||||||
<configuration>
|
<configuration>
|
||||||
<!-- Remove dead classes -->
|
<!-- Remove dead classes -->
|
||||||
<minimizeJar>false</minimizeJar>
|
<minimizeJar>true</minimizeJar>
|
||||||
<filters>
|
<filters>
|
||||||
<filter>
|
<filter>
|
||||||
<!-- exclude signatures, the bundling process breaks them for some reason -->
|
<!-- exclude signatures, the bundling process breaks them for some reason -->
|
||||||
|
@ -56,6 +58,7 @@
|
||||||
<mainClass>com.google.bitcoin.tools.WalletTool</mainClass>
|
<mainClass>com.google.bitcoin.tools.WalletTool</mainClass>
|
||||||
</transformer>
|
</transformer>
|
||||||
</transformers>
|
</transformers>
|
||||||
|
<outputFile>target/wallet-tool.jar</outputFile>
|
||||||
</configuration>
|
</configuration>
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
|
@ -66,6 +69,7 @@
|
||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
|
|
|
@ -3,13 +3,11 @@
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
# Check if the jar has been built.
|
# Check if the jar has been built.
|
||||||
if [ ! -e target/bitcoinj-tools-*.jar ] || [[ "$ALWAYS_BUILD_WALLETTOOL" != "" ]]; then
|
if [ ! -e target/wallet-tool.jar ] || [[ "$ALWAYS_BUILD_WALLETTOOL" != "" ]]; then
|
||||||
echo "Compiling WalletTool to a JAR"
|
echo "Compiling WalletTool to a JAR"
|
||||||
cd ../core
|
cd ..
|
||||||
mvn install -DskipTests
|
|
||||||
cd ../tools
|
|
||||||
[ -e target/bitcoinj-tools-*.jar ] && rm target/bitcoinj-tools-*.jar
|
|
||||||
mvn package -DskipTests
|
mvn package -DskipTests
|
||||||
|
cd tools
|
||||||
fi
|
fi
|
||||||
|
|
||||||
java -jar target/bitcoinj-tools-*.jar "$@"
|
java -jar target/wallet-tool.jar "$@"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
@echo off
|
@echo off
|
||||||
rem Check if the jar has been built.
|
rem Check if the jar has been built.
|
||||||
set TARGET_JAR=bitcoinj-tools-*.jar
|
set TARGET_JAR=wallet-tool.jar
|
||||||
|
|
||||||
if not exist "target/%TARGET_JAR%" goto BUILD
|
if not exist "target/%TARGET_JAR%" goto BUILD
|
||||||
if defined ALWAYS_BUILD_WALLETTOOL goto BUILD
|
if defined ALWAYS_BUILD_WALLETTOOL goto BUILD
|
||||||
|
@ -9,11 +9,9 @@ goto RUN
|
||||||
:BUILD
|
:BUILD
|
||||||
|
|
||||||
echo Compiling WalletTool to a JAR
|
echo Compiling WalletTool to a JAR
|
||||||
cd ../core
|
cd ..
|
||||||
call mvn install -DskipTests
|
|
||||||
cd ../tools
|
|
||||||
if exist "target/%TARGET_JAR%" del "target\%TARGET_JAR%"
|
|
||||||
call mvn package -DskipTests
|
call mvn package -DskipTests
|
||||||
|
cd tools
|
||||||
|
|
||||||
:RUN
|
:RUN
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue