#!/bin/bash

# Compiling Java program
echo "Compiling ScratchCrawler..."
javac ScratchCrawler.java

# Checking if compilation was successful
if [ $? -eq 0 ]; then
    echo "Compilation successful. Running ScratchCrawler with arguments: $@"
    java ScratchCrawler "$@"
else
    echo "Compilation failed."
    exit 1
fi