-
Notifications
You must be signed in to change notification settings - Fork 132
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'OneBusAway:master' into features/stops-for-agency
- Loading branch information
Showing
47 changed files
with
853 additions
and
794 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,3 @@ | ||
{ | ||
"java.configuration.updateBuildConfiguration": "automatic" | ||
} |
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,30 @@ | ||
# | ||
# Copyright (C) 2012 Brian Ferris <bdferris@onebusaway.org> | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
|
||
FROM maven:3-eclipse-temurin-11 | ||
|
||
# Install additional development tools if needed | ||
RUN apt-get update && apt-get install -y \ | ||
git \ | ||
vim \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
mkdir -p /root/.m2/repository | ||
|
||
WORKDIR /src | ||
|
||
# Set the entrypoint to bash so the container doesn't exit immediately | ||
ENTRYPOINT ["/bin/bash"] |
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,83 @@ | ||
#!/usr/bin/env bash | ||
# | ||
# Copyright (C) 2012 Brian Ferris <bdferris@onebusaway.org> | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
|
||
#!/bin/bash | ||
|
||
# Function to print help message | ||
print_help() { | ||
echo "Usage: $0 [OPTIONS]" | ||
echo "Wrapper script for Maven build command with customizable options." | ||
echo | ||
echo "Options:" | ||
echo " --help Display this help message" | ||
echo " --clean Run the clean phase before building (optional)" | ||
echo " --check-updates Force a check for updated releases and snapshots" | ||
echo " --test Run tests (disabled by default)" | ||
echo " --javadoc Generate JavaDoc (disabled by default)" | ||
echo " --validate-silent VALUE Set the validate.silent option (default: true)" | ||
echo " --log4j-config VALUE Set the log4j.configuration option (default: empty)" | ||
echo | ||
echo "Example:" | ||
echo " $0 --clean --check-updates --test --javadoc --validate-silent false --log4j-config my-log4j.properties" | ||
} | ||
|
||
# Default values | ||
clean="" | ||
check_updates="" | ||
run_tests="false" | ||
generate_javadoc="false" | ||
validate_silent="true" | ||
log4j_config="" | ||
|
||
# Parse command line arguments | ||
while [[ "$#" -gt 0 ]]; do | ||
case $1 in | ||
--help) print_help; exit 0;; | ||
--clean) clean="clean ";; | ||
--check-updates) check_updates="-U ";; | ||
--test) run_tests="true";; | ||
--javadoc) generate_javadoc="true";; | ||
--validate-silent) validate_silent="$2"; shift;; | ||
--log4j-config) log4j_config="$2"; shift;; | ||
*) echo "Unknown parameter: $1"; print_help; exit 1;; | ||
esac | ||
shift | ||
done | ||
|
||
# Construct the Maven command | ||
cmd="mvn ${check_updates}${clean}install" | ||
|
||
# Add options based on parsed arguments | ||
if [ "$run_tests" = "false" ]; then | ||
cmd="$cmd -DskipTests=true" | ||
fi | ||
|
||
if [ "$generate_javadoc" = "false" ]; then | ||
cmd="$cmd -Dmaven.javadoc.skip=true" | ||
fi | ||
|
||
cmd="$cmd -Dvalidate.silent=$validate_silent" | ||
|
||
if [ -n "$log4j_config" ]; then | ||
cmd="$cmd -Dlog4j.configuration=$log4j_config" | ||
else | ||
cmd="$cmd -Dlog4j.configuration=" | ||
fi | ||
|
||
# Execute the command | ||
echo "Executing: $cmd" | ||
eval $cmd |
Empty file.
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,26 @@ | ||
# | ||
# Copyright (C) 2012 Brian Ferris <bdferris@onebusaway.org> | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
|
||
services: | ||
builder: | ||
build: | ||
context: . | ||
dockerfile: Dockerfile | ||
volumes: | ||
- ./build:/root/.m2/repository | ||
- .:/src | ||
stdin_open: true | ||
tty: true |
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
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
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
Oops, something went wrong.