Skip to content

Commit

Permalink
NUTCH-327 fix log path under cygwin
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/lucene/nutch/trunk@424779 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
siren committed Jul 23, 2006
1 parent b031744 commit 6feface
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,8 @@ Trunk (unreleased changes)

73. NUTCH-293 - Support for Crawl-Delay (Stefan Groschupf via ab)

74. NUTCH-327 - Fixed logging directory on cygwin (siren)

Release 0.7 - 2005-08-17

1. Added support for "type:" in queries. Search results are limited/qualified
Expand Down
12 changes: 11 additions & 1 deletion bin/nutch
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
#
# NUTCH_OPTS Extra Java runtime options.
#
cygwin=false
case "`uname`" in
CYGWIN*) cygwin=true;;
esac

# resolve links - $0 may be a softlink
THIS="$0"
Expand Down Expand Up @@ -128,6 +132,12 @@ fi
if [ "$NUTCH_LOGFILE" = "" ]; then
NUTCH_LOGFILE='hadoop.log'
fi

#Fix log path under cygwin
if $cygwin; then
NUTCH_LOG_DIR=`cygpath -p -w "$NUTCH_LOG_DIR"`
fi

NUTCH_OPTS="$NUTCH_OPTS -Dhadoop.log.dir=$NUTCH_LOG_DIR"
NUTCH_OPTS="$NUTCH_OPTS -Dhadoop.log.file=$NUTCH_LOGFILE"

Expand Down Expand Up @@ -173,7 +183,7 @@ else
fi

# cygwin path translation
if expr `uname` : 'CYGWIN*' > /dev/null; then
if $cygwin; then
CLASSPATH=`cygpath -p -w "$CLASSPATH"`
fi

Expand Down

0 comments on commit 6feface

Please sign in to comment.