-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild_java_engine.sh
More file actions
executable file
·37 lines (30 loc) · 1.03 KB
/
build_java_engine.sh
File metadata and controls
executable file
·37 lines (30 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/bash
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
# Build script for Java refactoring engine
#
# Author: Vaibhav-api-code
# Co-Author: Claude Code (https://claude.ai/code)
# Created: 2025-07-08
# Updated: 2025-07-23
# License: Mozilla Public License 2.0 (MPL-2.0)
echo "Building Java refactoring engine..."
# Check if Maven is installed
if ! command -v mvn &> /dev/null; then
echo "Error: Maven is not installed. Please install Maven first."
echo "On macOS: brew install maven"
echo "On Ubuntu: sudo apt-get install maven"
exit 1
fi
# Clean and build
mvn clean package
if [ $? -eq 0 ]; then
echo "Build successful! JAR file created at: target/java-refactor-engine.jar"
# Copy to the expected location
cp target/java-refactor-engine.jar java-refactor-engine.jar
echo "JAR file copied to: java-refactor-engine.jar"
else
echo "Build failed!"
exit 1
fi