Author: andy
Date: Thu Mar 29 16:51:06 2012
New Revision: 1306982
URL: http://svn.apache.org/viewvc?rev=1306982&view=rev
Log: (empty)
Modified:
incubator/jena/Jena2/TDB/trunk/bin/tdb_path
Modified: incubator/jena/Jena2/TDB/trunk/bin/tdb_path
URL:
http://svn.apache.org/viewvc/incubator/jena/Jena2/TDB/trunk/bin/tdb_path?rev=1306982&r1=1306981&r2=1306982&view=diff
==============================================================================
--- incubator/jena/Jena2/TDB/trunk/bin/tdb_path (original)
+++ incubator/jena/Jena2/TDB/trunk/bin/tdb_path Thu Mar 29 16:51:06 2012
@@ -15,34 +15,28 @@
## See the License for the specific language governing permissions and
## limitations under the License.
-# Check for development system
-if [ -e "$TDBROOT/lib" ]
-then
- CP="$TDBROOT/lib/"'*'
- echo "$CP"
- exit
-fi
-
M2_REPO="${M2_REPO:-$HOME/.m2/repository}" ;
# Looking in the POM would be better but it is very slow.
X=$(perl -ne 'next unless /\spath="M2_REPO([^"]*)"/s ; print "$1","\n"'
$TDBROOT/.classpath)
SEP=':'
CP="${CP:-}"
-[ "$CP" != "" ] && CP="${SEP}${CP}"
-
-for x in $X
-do
- [ -z "$CP" ] || CP="${CP}${SEP}"
- CP="$CP$M2_REPO$x"
-done
if [ -e "$TDBROOT/classes" ]
then
- CP="$TDBROOT/classes${SEP}$CP"
+ [ -z "$CP" ] || CP="${CP}${SEP}"
+ CP="${CP}$TDBROOT/classes"
elif [ -e "$TDBROOT/target/classes" ]
then
- CP="$TDBROOT/target/classes{SEP}$CP"
+ [ -z "$CP" ] || CP="${CP}${SEP}"
+ CP="${CP}$TDBROOT/target/classes"
fi
+
+for x in $X
+do
+ [ -z "$CP" ] || CP="${CP}${SEP}"
+ CP="$CP$M2_REPO$x"
+done
+
echo "$CP"