jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject svn commit: r1209552 - /incubator/jena/Jena2/TDB/trunk/bin/make_classpath_mvn
Date Fri, 02 Dec 2011 15:58:25 GMT
Author: andy
Date: Fri Dec  2 15:58:25 2011
New Revision: 1209552

URL: http://svn.apache.org/viewvc?rev=1209552&view=rev
Log:
Fix for  running from any current working directory

Modified:
    incubator/jena/Jena2/TDB/trunk/bin/make_classpath_mvn

Modified: incubator/jena/Jena2/TDB/trunk/bin/make_classpath_mvn
URL: http://svn.apache.org/viewvc/incubator/jena/Jena2/TDB/trunk/bin/make_classpath_mvn?rev=1209552&r1=1209551&r2=1209552&view=diff
==============================================================================
--- incubator/jena/Jena2/TDB/trunk/bin/make_classpath_mvn (original)
+++ incubator/jena/Jena2/TDB/trunk/bin/make_classpath_mvn Fri Dec  2 15:58:25 2011
@@ -12,13 +12,15 @@ M2_REPO="${M2_REPO:-$HOME/.m2/repository
 X=$(perl -ne 'next unless /\spath="M2_REPO([^"]*)"/s ; print "$1","\n"' $DIRROOT/.classpath)
 
 CP=
+SEP=':'
 for x in $X
 do
-   CP="$CP:$M2_REPO$x"
+    [ -z "$CP" ] || CP="${CP}${SEP}"
+    CP="$CP$M2_REPO$x"
 done
 
-[ -e "classes" ] && CP="$DIRROOT/classes:$CP"
-[ -e "target/classes" ] && CP="$DIRROOT/target/classes:$CP"
+#[ -e "$DIRROOT/target/classes" ] && CP="$DIRROOT/target/classes:$CP"
+[ -e "$DIRROOT/classes" ] && CP="$DIRROOT/classes:$CP"
 
 echo "$CP"
 



Mime
View raw message