Skip to content

Commit 6c4478d

Browse files
committed
Add alternative build script and manifest for local development
1 parent cab40d0 commit 6c4478d

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

META-INF/MANIFEST.MF

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Manifest-Version: 1.0
2+
Main-Class: com.filenest.FileOrganizer

build.sh

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/bin/bash
2+
3+
# Simple build script for FileOrganizer
4+
echo "Building FileOrganizer..."
5+
6+
# Create target directory
7+
mkdir -p target
8+
9+
# Compile the main class
10+
javac -d target the src/com/filenest/FileOrganizer.java
11+
12+
# Create JAR file
13+
cd target
14+
jar cfm ../target/file-organizer.jar ../META-INF/MANIFEST.MF com/filenest/*.class
15+
cd ..
16+
17+
echo "Build complete! JAR file created at target/file-organizer.jar"
18+
echo "Run with: java -jar target/file-organizer.jar"

0 commit comments

Comments
 (0)