forked from spring-io/initializr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Dave Syer
committed
Aug 4, 2013
1 parent
9d4a6bf
commit 0ccc883
Showing
6 changed files
with
165 additions
and
60 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,6 @@ | |
.classpath | ||
.project | ||
.settings | ||
bin | ||
build | ||
target | ||
.springBeans | ||
|
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 |
---|---|---|
@@ -1,22 +1,10 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<configuration> | ||
<property name="CONSOLE_LOG_PATTERN" value="%d{yyyy-MM-dd HH:mm:ss.SSS} %5p ${PID:- } [%t] --- %-40.40logger{39} : %m%n%wex"/> | ||
|
||
<conversionRule conversionWord="wex" converterClass="org.springframework.bootstrap.logging.logback.WhitespaceThrowableProxyConverter" /> | ||
|
||
<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender"> | ||
<encoder> | ||
<pattern>${CONSOLE_LOG_PATTERN}</pattern> | ||
</encoder> | ||
</appender> | ||
|
||
<root level="INFO"> | ||
<appender-ref ref="CONSOLE" /> | ||
</root> | ||
|
||
<logger name="org.springframework.zero" level="DEBUG"/> | ||
<logger name="org.springframework.security" level="DEBUG"/> | ||
<logger name="sun.net.www.protocol.http.HttpURLConnection" level="TRACE"/> | ||
<include resource="org/springframework/boot/logging/logback/base.xml"/> | ||
|
||
<logger name="org.springframework" level="DEBUG"/> | ||
<logger name="org.springframework.core.env" level="WARN"/> | ||
<logger name="org.springframework.jndi" level="WARN"/> | ||
|
||
</configuration> |
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,96 @@ | ||
#!/bin/sh | ||
|
||
set -e | ||
# set -x | ||
|
||
VERSION="0.5.0.M1" | ||
if [ -z "${PREFIX}" ]; then | ||
PREFIX="/usr/local/bin" | ||
fi | ||
if [ -z "${JAR_FILE}" ]; then | ||
JAR_FILE="/tmp/spring.jar" | ||
if [ -z "${JAR_URL}" ]; then | ||
|
||
echo "Downloading spring ${VERSION} distribution" | ||
echo | ||
|
||
JAR_URL="https://repo.springsource.org/milestone/org/springframework/boot/spring-boot-cli/${VERSION}/spring-boot-cli-${VERSION}.jar" | ||
curl --progress-bar --fail "$JAR_URL" -o "$JAR_FILE" | ||
|
||
fi | ||
fi | ||
trap "echo Installation failed." EXIT | ||
|
||
test -f "${JAR_FILE}" | ||
|
||
SPRING_HOME="${HOME}/.spring" | ||
mkdir -p "$SPRING_HOME" | ||
cp "$JAR_FILE" "${SPRING_HOME}/spring.jar" | ||
cd "${SPRING_HOME}" | ||
echo | ||
|
||
rm -rf "${SPRING_HOME}"/spring | ||
cat > "${SPRING_HOME}"/spring <<"EOF" | ||
#!/bin/sh | ||
java -jar ${SPRING_HOME}/spring.jar \$* | ||
EOF | ||
chmod +x "${SPRING_HOME}/spring" | ||
test -x "${SPRING_HOME}/spring" | ||
|
||
echo "spring ${VERSION} has been installed in your home directory (~/.spring)." | ||
echo | ||
|
||
if rm -f "$PREFIX/spring" && ln -sf "${SPRING_HOME}/spring" "$PREFIX/spring" >/dev/null 2>&1; then | ||
echo | ||
echo "Linking ~/.spring/spring to $PREFIX/spring for your convenience." | ||
cat <<"EOF" | ||
To get started: | ||
$ spring --version | ||
$ spring help | ||
And take a look at the README at https://github.com/springsource/spring-boot#readme. | ||
EOF | ||
elif type sudo >/dev/null 2>&1; then | ||
echo "Linking ~/.spring/spring to $PREFIX/spring for your convenience." | ||
echo "This may prompt for your password." | ||
if sudo rm -f "$PREFIX/spring" && sudo ln -sf "${SPRING_HOME}/spring" "$PREFIX/spring" >/dev/null 2>&1; then | ||
cat <<"EOF" | ||
To get started: | ||
$ spring --version | ||
$ spring help | ||
And take a look at the README at https://github.com/springsource/spring-boot#readme. | ||
EOF | ||
else | ||
cat <<"EOF" | ||
Couldn't create the symlink. Please either: | ||
(1) Run the following as root: | ||
cp ~/.spring/spring /usr/bin/spring | ||
(2) Add ~/.spring to your path, or | ||
(3) Rerun this command to try again. | ||
Then to get started, take a look at 'spring help' or see the README at | ||
https://github.com/springsource/spring-boot#readme. | ||
EOF | ||
fi | ||
else | ||
cat <<"EOF" | ||
Now you need to do one of the following: | ||
(1) Add ~/.spring to your path, or | ||
(2) Run this command as root: | ||
cp ~/.spring/spring /usr/bin/spring | ||
Then to get started, take a look at 'spring help' or see the README at | ||
https://github.com/springsource/spring-boot#readme. | ||
EOF | ||
fi | ||
|
||
trap - EXIT |
This file was deleted.
Oops, something went wrong.