#!/bin/sh

set -eu

"$CODEQL_DIST/codeql" database index-files \
    --include-extension=.config \
    --include-extension=.csproj \
    --include-extension=.props \
    --include-extension=.xml \
    --also-match-lgtm-index-filters \
    --size-limit 10m \
    --language xml \
    --working-dir=. \
    -- \
    "$CODEQL_EXTRACTOR_CSHARP_WIP_DATABASE" \
    > /dev/null 2>&1

"$CODEQL_JAVA_HOME/bin/java" -jar "$CODEQL_EXTRACTOR_CSHARP_ROOT/tools/extractor-asp.jar" .
