我正在尝试将postgres Docker映像扩展为可能(通过环境变量标志)在 DB init 上执行 flyway DB 迁移。我的 Dockerfile 在这里:
FROM postgres:9.6
# Install curl and java (for Flyway)
RUN set -x \
&& apt-get update \
&& apt-get install -y --no-install-recommends ca-certificates curl openjdk-8-jre
# Install Flyway
ENV FLYWAY_VERSION 4.2.0
ENV FLYWAY_INSTALL_DIR /usr/src/flyway
ENV FLYWAY_CONF ${FLYWAY_INSTALL_DIR}/flyway-${FLYWAY_VERSION}/conf/flyway.conf
ENV FLYWAY_EXE ${FLYWAY_INSTALL_DIR}/flyway-${FLYWAY_VERSION}/flyway
RUN mkdir -p ${FLYWAY_INSTALL_DIR} && \
curl -L https://repo1.maven.org/maven2/org/flywaydb/flyway-commandline/${FLYWAY_VERSION}/flyway-commandline-${FLYWAY_VERSION}.tar.gz | \
tar -xzC ${FLYWAY_INSTALL_DIR} && \
chmod +x ${FLYWAY_EXE}
# Copy migration scripts
ENV MIGRATIONS_LOCATION /flyway/migrations
COPY migrations …Run Code Online (Sandbox Code Playgroud) 我正在尝试将android-support-v4.jar包含到我的命令行android项目中.我的导入声明很简单:
import android.support.v4.NavUtils;
Run Code Online (Sandbox Code Playgroud)
我已经将jar复制$ANDROID_HOME/extras/android/support/v4/android-support-v4.jar到我项目的libs/文件夹中,但是在构建时仍然会收到以下错误ant:
package android.support.v4 does not exist
Run Code Online (Sandbox Code Playgroud)
我的理解是放在libs/文件夹中的任何jar都会自动包含在项目类路径中.
根据要求,ls -l根项目文件夹的输出是
-rw-r--r-- 1 Nick staff 1192 4 Jan 15:08 AndroidManifest.xml
-rw-r--r-- 1 Nick staff 696 4 Jan 12:12 ant.properties
drwxr-xr-x 17 Nick staff 578 4 Jan 15:10 bin
-rw-r--r-- 1 Nick staff 3922 3 Jan 14:08 build.xml
drwxr-xr-x 4 Nick staff 136 3 Jan 15:11 gen
drwxr-xr-x 3 Nick staff 102 4 Jan 15:18 libs
-rw-r--r-- 1 Nick staff …Run Code Online (Sandbox Code Playgroud)