-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue #7: Add Maven assembly to create binary distribution for UCanAc…
…cess console
- Loading branch information
Showing
4 changed files
with
104 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
@ECHO OFF | ||
SET PATH=%PATH%;. | ||
SET BASE_DIR=%~f0 | ||
|
||
:CONT | ||
SET RMVD=%BASE_DIR:~-1% | ||
SET BASE_DIR=%BASE_DIR:~0,-1% | ||
if NOT "%RMVD%"=="\" goto CONT | ||
|
||
SET UCANACCESS_HOME=%BASE_DIR% | ||
SET LOCAL_HOME_JAVA="%JAVA_HOME%" | ||
IF EXIST %LOCAL_HOME_JAVA%\bin\java.exe ( | ||
SET LOCAL_JAVA=%LOCAL_HOME_JAVA%\bin\java.exe | ||
) ELSE ( | ||
SET LOCAL_JAVA=java.exe | ||
) | ||
|
||
%LOCAL_JAVA% -version | ||
@ECHO. | ||
|
||
SET CLASSPATH="%UCANACCESS_HOME%\ucanaccess-${project.version}.jar;%UCANACCESS_HOME%\lib\hsqldb-${dep.hsqldb.version}.jar;%UCANACCESS_HOME%\lib\jackcess-${dep.jackcess.version}.jar" | ||
|
||
%LOCAL_JAVA% -classpath %CLASSPATH% ${ucanaccess.console.main} | ||
PAUSE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
|
||
UCANACCESS_HOME=$(cd -P -- "$(dirname -- "$0")" && pwd -P) | ||
echo $UCANACCESS_HOME | ||
|
||
CLASSPATH="$UCANACCESS_HOME/ucanaccess-${project.version}.jar:$UCANACCESS_HOME/lib/hsqldb-${dep.hsqldb.version}.jar:$UCANACCESS_HOME/lib/jackcess-${dep.jackcess.version}.jar" | ||
|
||
if [ -d "$JAVA_HOME" -a -x "$JAVA_HOME/bin/java" ]; then | ||
JAVACMD="$JAVA_HOME/bin/java" | ||
else | ||
JAVACMD=java | ||
fi | ||
|
||
"$JAVACMD" -cp $CLASSPATH ${ucanaccess.console.main} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<assembly xmlns="http://maven.apache.org/ASSEMBLY/2.2.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/ASSEMBLY/2.2.0 http://maven.apache.org/xsd/assembly-2.2.0.xsd"> | ||
|
||
<id>distrib-zip-assembly</id> | ||
<formats> | ||
<format>zip</format> | ||
</formats> | ||
<includeBaseDirectory>false</includeBaseDirectory> | ||
<files> | ||
<file> | ||
<source>${project.build.directory}/${project.artifactId}-${project.version}.jar</source> | ||
<outputDirectory>/</outputDirectory> | ||
</file> | ||
<file> | ||
<source>LICENSE.txt</source> | ||
<outputDirectory>/</outputDirectory> | ||
</file> | ||
<file> | ||
<source>src/main/assembly/console.bat</source> | ||
<outputDirectory>/</outputDirectory> | ||
<filtered>true</filtered> | ||
<fileMode>0755</fileMode> | ||
</file> | ||
<file> | ||
<source>src/main/assembly/console.sh</source> | ||
<outputDirectory>/</outputDirectory> | ||
<filtered>true</filtered> | ||
<fileMode>0755</fileMode> | ||
</file> | ||
</files> | ||
|
||
<dependencySets> | ||
<dependencySet> | ||
<outputDirectory>lib</outputDirectory> | ||
<useProjectArtifact>false</useProjectArtifact> | ||
<useTransitiveDependencies>false</useTransitiveDependencies> | ||
</dependencySet> | ||
</dependencySets> | ||
|
||
</assembly> |