-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sh
More file actions
21 lines (17 loc) · 772 Bytes
/
build.sh
File metadata and controls
21 lines (17 loc) · 772 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash
echo "Building ForgeGrid..."
# Create bin directory if it doesn't exist
mkdir -p bin
# Compile Java source files with Java 17 compatibility
javac -cp "lib/*" -d bin --release 17 src/main/java/com/forgegrid/app/*.java src/main/java/com/forgegrid/auth/*.java src/main/java/com/forgegrid/config/*.java src/main/java/com/forgegrid/db/*.java src/main/java/com/forgegrid/model/*.java src/main/java/com/forgegrid/ui/*.java src/main/java/com/forgegrid/ui/components/*.java
# Copy resources to bin directory
cp -r src/main/resources/* bin/
if [ $? -eq 0 ]; then
echo "Build successful!"
echo ""
echo "You can now run the application from your IDE:"
echo "- Right-click on Main.java"
echo "- Select \"Run Java\""
else
echo "Build failed!"
fi