Skip to content

Commit

Permalink
testing issue #2
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisg committed Jan 31, 2014
1 parent e7c8544 commit 3ed8402
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
12 changes: 6 additions & 6 deletions README.md
Expand Up @@ -2,7 +2,7 @@ Heroku buildpack: Java (with Apache Ant)
=========================

This is a [Heroku buildpack](http://devcenter.heroku.com/articles/buildpack) for Java apps.
It uses Apache Ant 1.9.2 to build your application and OpenJDK 1.6.0_20 to run it.
It uses Apache Ant 1.9.3 to build your application and OpenJDK 1.6.0_27 (currently) to run it.

Usage
-----
Expand All @@ -18,8 +18,8 @@ Example usage:
...
-----> Heroku receiving push
-----> Fetching custom buildpack... done
-----> Java (using Apache Ant 1.9.2) app detected
-----> Installing Apache Ant 1.9.2.....done!
-----> Java (using Apache Ant 1.9.3) app detected
-----> Installing Apache Ant 1.9.3.....done!
-----> executing /tmp/build_1i100c5e7xm9u/.buildpack/apache-ant-1.8.4/bin/ant -Duser.home=/tmp/build_1i100c5e7xm9u clean install
Buildfile: /tmp/build_1i100c5e7xm9u/build.xml
Expand Down Expand Up @@ -56,12 +56,12 @@ Example Procfile:

Config Update
-------
If you have been using this buildpack before, the upgrade from 1.9.x to 1.9.2 now requires a heroku config update.
If you have been using this buildpack before, the upgrade from 1.9.x to 1.9.3 now requires a heroku config update.

Please issue:

heroku config:set ANT_HOME=.buildpack/apache-ant-1.9.2
heroku config:set PATH=/usr/local/bin:/usr/bin:/bin:.buildpack/apache-ant-1.9.2/bin
heroku config:set ANT_HOME=/app/.buildpack/apache-ant-1.9.3
heroku config:set PATH=/usr/local/bin:/usr/bin:/bin:/app/.buildpack/apache-ant-1.9.3/bin

to make it work again...

Expand Down
10 changes: 6 additions & 4 deletions bin/release
@@ -1,22 +1,24 @@
#!/usr/bin/env bash
# bin/release <build-dir>

BUILD_DIR=$1
BUILD_DIR="$1"

. $(dirname $0)/common

#here, we need to override the ANT_HOME variable
ANT_HOME="/app/.buildpack/apache-ant-${ANT_VER}"
cat <<EOF
---
default_process_types:
web: ant run
config_vars:
#ANT_HOME: "${ANT_HOME}"
PATH: "/usr/local/bin:/usr/bin:/bin:${ANT_HOME}/bin"
JAVA_OPTS: -Xmx384m -Xss512k -XX:+UseCompressedOops
ANT_OPTS: -Xmx384m -Xss512k -XX:+UseCompressedOops
ANT_OPTS: -Xmx384m -Xss512k -XX:+UseCompressedOops
addons:
shared-database:5mb
default_process_types:
web: ant run
EOF

0 comments on commit 3ed8402

Please sign in to comment.