Browse files

Note maven copy-dependencies trick for bin scripts

I don't think anyone actually uses these, but better docs never hurt
anyone.
  • Loading branch information...
1 parent d7492a4 commit 0902a004135a5fa6832e4990ab177641507526dc @trptcolin committed May 24, 2013
Showing with 9 additions and 2 deletions.
  1. +4 −1 bin/reply.bat
  2. +5 −1 bin/reply.sh
View
5 bin/reply.bat
@@ -1,14 +1,17 @@
@echo off
REM NOTE: assumes dependencies in lib directory (leiningen 1 style).
+REM You can put these there with:
+REM mvn dependency:copy-dependencies -DoutputDirectory=lib
REM See README for normal Usage.
SETLOCAL enabledelayedexpansion
SET CURRENT_DIR=%~dp0
SET BASE_DIR=%CURRENT_DIR%..
-SET cp="%BASE_DIR%\src\clj";"%BASE_DIR%\classes"
+SET cp="%BASE_DIR%\src\clj";"%BASE_DIR%\classes";"%BASE_DIR%\target\classes"
+
FOR %%x IN ("%BASE_DIR%\lib\*.jar") DO (
SET cp=!cp!;"%%~pfx%"
)
View
6 bin/reply.sh
@@ -1,6 +1,8 @@
#!/bin/sh
# NOTE: assumes dependencies in lib directory (leiningen 1 style).
+# You can put these there with:
+# mvn dependency:copy-dependencies -DoutputDirectory=lib
# See README for normal Usage.
# normalize $0 on certain BSDs
@@ -28,7 +30,9 @@ if [ -z "$USER_CP" ]; then
fi
CP="$BASEDIR"/../src/clj/:\
-"$BASEDIR"/../classes/
+"$BASEDIR"/../classes/:\
+"$BASEDIR"/../target/classes/
+
for j in "$BASEDIR"/../lib/*.jar; do
CP=$CP:$j
done

0 comments on commit 0902a00

Please sign in to comment.