data: indexing java
* expanded appsettings to include java specific stuff * added java indexer as separate project that can be build via its build script * added dependencies for java indexer to the setup folder * added license files for these dependencies. * added sample project for java. this is just to test java on other machines and can be removed again in the future. * the java parser test suite is currently uncommented because java is not running on every machine. * added some more node types * removed TokenComponentAccess::AccessType and replaced all its usages by using AccessKind * moved access components from edges to nodes * using recordReference of ParserClient for java * removed recording access specifier of inheritance edges. * added styles for new node types
This commit is contained in:
+3
-1
@@ -1,6 +1,8 @@
|
||||
#!/bin/bash
|
||||
|
||||
ABORT="\033[31mAbort:\033[00m"
|
||||
SUCCESS="\033[32mSuccess:\033[00m"
|
||||
INFO="\033[33mInfo:\033[00m"
|
||||
|
||||
# Determine current platform
|
||||
PLATFORM='unknown'
|
||||
@@ -12,7 +14,6 @@ elif [ "$(expr substr $(uname -s) 1 10)" == "MINGW32_NT" ]; then
|
||||
PLATFORM='Windows'
|
||||
fi
|
||||
|
||||
|
||||
if [ $PLATFORM == "Windows" ]; then
|
||||
ORIGINAL_PATH_TO_SCRIPT="${0}"
|
||||
CLEANED_PATH_TO_SCRIPT="${ORIGINAL_PATH_TO_SCRIPT//\\//}"
|
||||
@@ -36,6 +37,7 @@ if [ $PLATFORM == "Windows" ]; then
|
||||
fi
|
||||
|
||||
# Remove folders and contents
|
||||
rm -rf java_indexer/lib
|
||||
rm -rf build
|
||||
rm -rf bin/app/Debug
|
||||
rm -rf bin/app/Release
|
||||
|
||||
@@ -24,9 +24,11 @@ fi
|
||||
|
||||
ROOT_DIR=$ROOT_DIR/..
|
||||
|
||||
|
||||
# Enter masterproject directory
|
||||
cd $ROOT_DIR
|
||||
|
||||
|
||||
# git settings
|
||||
echo -e $INFO "install git settings"
|
||||
|
||||
@@ -35,6 +37,22 @@ git config color.ui true
|
||||
cp setup/git/git_pre_commit_hook.sh .git/hooks/pre-commit
|
||||
cp setup/git/git_pre_push_hook.sh .git/hooks/pre-push
|
||||
|
||||
|
||||
# Copy necessary jars for java indexer
|
||||
echo -e $INFO "copy jars for java indexer"
|
||||
|
||||
mkdir -p java_indexer/lib
|
||||
|
||||
if [ $PLATFORM == "Windows" ]; then
|
||||
cp -u -r setup/jars/windows/*.jar java_indexer/lib
|
||||
elif [ $PLATFORM == "Linux" ]; then
|
||||
cp -u -r setup/jars/linux/*.jar java_indexer/lib
|
||||
# what about 32/64 bit?
|
||||
elif [ $PLATFORM == "MacOS" ]; then
|
||||
cp -u -r setup/jars/macos/*.jar java_indexer/lib
|
||||
fi
|
||||
|
||||
|
||||
# Create Debug and Release folders
|
||||
echo -e $INFO "create build folders"
|
||||
|
||||
@@ -46,6 +64,7 @@ mkdir -p bin/lib/Release
|
||||
mkdir -p bin/test/Debug
|
||||
mkdir -p bin/test/Release
|
||||
|
||||
|
||||
# Copy necessary dynamic libraries to bin folder
|
||||
if [ $PLATFORM == "Windows" ]; then
|
||||
echo -e $INFO "copy dynamic libraries"
|
||||
@@ -60,6 +79,7 @@ if [ $PLATFORM == "Windows" ]; then
|
||||
|
||||
BACKSLASHED_ROOT_DIR="${ROOT_DIR//\//\\}"
|
||||
|
||||
echo -e $INFO "create symbolic links for data"
|
||||
cmd //c 'mklink /d /j '$BACKSLASHED_ROOT_DIR'\bin\app\Debug\data '$BACKSLASHED_ROOT_DIR'\bin\app\data' &
|
||||
cmd //c 'mklink /d /j '$BACKSLASHED_ROOT_DIR'\bin\app\Debug\user '$BACKSLASHED_ROOT_DIR'\bin\app\user' &
|
||||
cmd //c 'mklink /d /j '$BACKSLASHED_ROOT_DIR'\bin\app\Release\data '$BACKSLASHED_ROOT_DIR'\bin\app\data' &
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
#!/bin/bash
|
||||
|
||||
ABORT="\033[31mAbort:\033[00m"
|
||||
SUCCESS="\033[32mSuccess:\033[00m"
|
||||
INFO="\033[33mInfo:\033[00m"
|
||||
|
||||
# Determine current platform
|
||||
PLATFORM='unknown'
|
||||
if [ "$(uname)" == "Darwin" ]; then
|
||||
PLATFORM='MacOS'
|
||||
elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then
|
||||
PLATFORM='Linux'
|
||||
elif [ "$(expr substr $(uname -s) 1 10)" == "MINGW32_NT" ]; then
|
||||
PLATFORM='Windows'
|
||||
fi
|
||||
|
||||
if [ $PLATFORM == "Windows" ]; then
|
||||
ORIGINAL_PATH_TO_SCRIPT="${0}"
|
||||
CLEANED_PATH_TO_SCRIPT="${ORIGINAL_PATH_TO_SCRIPT//\\//}"
|
||||
ROOT_DIR=`dirname "$CLEANED_PATH_TO_SCRIPT"`
|
||||
else
|
||||
ROOT_DIR="$( cd "$( dirname "$0" )" && pwd )"
|
||||
fi
|
||||
|
||||
ROOT_DIR=$ROOT_DIR/..
|
||||
|
||||
# Enter main directory
|
||||
cd $ROOT_DIR/
|
||||
|
||||
|
||||
echo -e $INFO "build java-indexer"
|
||||
java_indexer/build/build.sh
|
||||
|
||||
|
||||
echo -e $INFO "copy jars"
|
||||
mkdir -p bin/app/data/java
|
||||
cp -u -r java_indexer/lib/*.jar bin/app/data/java
|
||||
cp -u -r java_indexer/bin/*.jar bin/app/data/java
|
||||
Reference in New Issue
Block a user