Skip to content

Commit

Permalink
Add install script
Browse files Browse the repository at this point in the history
  • Loading branch information
markt-asf committed May 9, 2024
1 parent 0860ec5 commit b81ddde
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 1 deletion.
11 changes: 10 additions & 1 deletion tck/tck-dist/src/main/assembly/assembly.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,16 @@
</file>
</files>
<!-- TODO user guide -->
<!-- TODO install script -->
<fileSets>
<fileSet>
<directory>${project.basedir}/src/main/resources</directory>
<outputDirectory>artifacts</outputDirectory>
<fileMode>755</fileMode>
<includes>
<include>*.sh</include>
</includes>
</fileSet>
</fileSets>
<dependencySets>
<dependencySet>
<includes>
Expand Down
36 changes: 36 additions & 0 deletions tck/tck-dist/src/main/resources/artifact-install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
#!/usr/bin/env bash
#
# Copyright (c) 2024 Contributors to the Eclipse Foundation
#
# This program and the accompanying materials are made available under the
# terms of the Eclipse Public License v. 2.0, which is available at
# http://www.eclipse.org/legal/epl-2.0.
#
# This Source Code may also be made available under the following Secondary
# Licenses when the conditions for such availability set forth in the
# Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
# version 2 with the GNU Classpath Exception, which is available at
# https://www.gnu.org/software/classpath/license.html.
#
# SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
#

##script to install the artifacts directory contents into a local maven repository

if [[ $1 =~ ^[0-9]+\.[0-9]+\.[0-9]+.*$ ]]; then
VERSION="$1"
else
VERSION="6.1.0"
fi

JAKARTAEE_VERSION="11.0.0-M1"

# servlet-tck-runtime jar
mvn org.apache.maven.plugins:maven-install-plugin:3.1.1:install-file \
-Dfile=servlet-tck-runtime-$VERSION.jar -DgroupId=jakarta.tck -DartifactId=servlet-tck-runtime \
-Dversion=$VERSION -Dpackaging=jar

# servlet-tck-util jar
mvn org.apache.maven.plugins:maven-install-plugin:3.1.1:install-file \
-Dfile=servlet-tck-util-$VERSION.jar -DgroupId=jakarta.tck -DartifactId=servlet-tck-util \
-Dversion=$VERSION -Dpackaging=jar

0 comments on commit b81ddde

Please sign in to comment.