You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Maybe use environment variables defined in Pharo before the LibC call, to pass the output file for verveinej.sh. Escaping spaces in the output path (MSE file) is difficult when it goes to a script and is massaged later.
@NicolasAnquetil Here's a script that works, but I didn't test it from Windows yet. The trouble is that as soon as you assign any of the $@ elements to a variable, the quoting (to preserve spaces) breaks. Maybe there's a better way, but this way works.
#!/usr/bin/env bash# find the location of the "--" argument((ddashloc=0))((i=0))forfin"$@";do((i++))#echo "$f";if [ "$f"=="--" ]
then((ddashloc=$i+1))fidone# Directory for verveine source
BASELIB=`dirname "$0"`/lib
# on windows, convert backslashes to slashes so that file expansion will work
BASELIB=$(sed 's:\\:/:g'<<<"$BASELIB")
pathsep=":"# handle path separator for flavors of windows (MINGW in LibC via Pharo)case$(uname)in
MINGW*|CYGWIN*)
pathsep=";"esacforiin"$BASELIB"/*.jar;do
CLASSPATH="$CLASSPATH"$pathsep"$i"done
CLASSPATH=`echo $CLASSPATH| cut -c2-`# without the special "--" argument, all options are assumed to be for Verveineif [ $ddashloc!= 0 ]
then
java ${@:1:(($ddashloc-2))} -cp "$CLASSPATH" fr.inria.verveine.extractor.java.VerveineJParser "${@:$ddashloc}"else
java -cp "$CLASSPATH" fr.inria.verveine.extractor.java.VerveineJParser "${@:1}"fi
I suspect the
verveinej.sh
script doesn't handle well theCLASSPATH
when there are spaces, but more investigation is needed.The image I was using was in WSL at ~/Pharo/images/Moose Suite 8.0 (development version)
The text was updated successfully, but these errors were encountered: