Running on GNU/Linux is a bit...broken

54 views
Skip to first unread message

Mark Holmquist

unread,
Nov 8, 2012, 1:08:41 PM11/8/12
to collide...@googlegroups.com
Having stumbled through the underdocumented build process for ant, and
the slightly difficult build process for collide, I now have a bin/
directory, which in turn includes classes/, gen/, and gwt-extra/. There
is no deploy/. The README specifies nothing about bin/*, but I tried
./bin/classes/collide anyway. Then it complains that vertx is missing,
because apparently that didn't get copied over correctly.

Is there something that I'm missing, here? Did my files get copied
somewhere totally different? I can clearly see that the configuration is
pointing to the right place, but maybe it's getting overridden with my
ANT_HOME or JAVA_HOME variables? Any help here?

--
Mark Holmquist
Software Engineer, Wikimedia Foundation
mtra...@member.fsf.org
http://marktraceur.info
* Sent from Ubuntu GNU/Linux *

James Nelson

unread,
Aug 23, 2013, 2:17:34 AM8/23/13
to collide...@googlegroups.com, mtra...@member.fsf.org
I recommend symlinking your /deploy/collide to somewhere on your $PATH.

Also, I modified the .sh launcher to enable reading symlinks:

#Make sure readlink exists before trying to resolve symlinks
if command -v readlink >/dev/null; then
  BASE=$(readlink $0)
  if [ -z "$BASE" ]; then
    BASE=.
  else
    BASE=$(dirname $BASE)
  fi
else
  BASE=$(dirname $BASE)
fi

WEBROOT=$(pwd)
CONFIG="{
  \"webRoot\": \"$WEBROOT\",
  \"staticFiles\": \"$BASE/static\"
}"

James Nelson

unread,
Aug 23, 2013, 2:19:04 AM8/23/13
to collide...@googlegroups.com, mtra...@member.fsf.org
Oops, that should be 

#Make sure readlink exists before trying to resolve symlinks
if command -v readlink >/dev/null; then
  BASE=$(readlink $0)
  if [ -z "$BASE" ]; then
    BASE=.
  else
    BASE=$(dirname $BASE)
  fi
else
  BASE=$(dirname $0)  # <- not $BASE
fi
Reply all
Reply to author
Forward
0 new messages