1 Commits

Author SHA1 Message Date
Val Jenson 08ce0e73d8 test d'une vue 2025-10-16 10:14:15 +02:00
354 changed files with 31 additions and 35497 deletions
-26
View File
@@ -1,26 +0,0 @@
# ---> Java
# Compiled class file
*.class
# Log file
*.log
# BlueJ files
*.ctxt
# Mobile Tools for Java (J2ME)
.mtj.tmp/
# Package Files #
*.jar
*.war
*.nar
*.ear
*.zip
*.tar.gz
*.rar
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*
replay_pid*
Binary file not shown.
File diff suppressed because it is too large Load Diff
-71
View File
@@ -1,71 +0,0 @@
# === Global variables ===
MAIN_CLASS = fr.iutfbleau.papillon.Start
BUILD_DIR = build
SRC_DIR = src/fr/iutfbleau/papillon
SRC_BUILD = fr\iutfbleau\papillon
LIB_DIR := lib
LIB := $(LIB_DIR)/mariadb
JAR_NAME = papillon.jar
DOC_DIR = doc
# === OS detection ===
ifeq ($(OS),Windows_NT)
SEP = ;
RM = del /Q
RMDIR = rmdir /S /Q
else
SEP = :
RM = rm -f
RMDIR = rm -rf
endif
# === Compilation ===
compile:
@echo === Compilation du projet ===
javac -encoding UTF-8 -cp "$(LIB_DIR)$(SEP)$(LIB_DIR)/org/mariadb/jdbc" -d $(BUILD_DIR) $(SRC_DIR)/*.java
@echo Compilation terminee
# === Run the program ===
run:
@echo === Execution du programme ===
ifeq ($(OS),Windows_NT)
java -cp "$(BUILD_DIR);$(LIB_DIR);$(LIB_DIR)/mariadb;$(LIB_DIR)/mariadb/org/mariadb/jdbc" $(MAIN_CLASS)
else
java -cp "$(BUILD_DIR):$(LIB_DIR):$(LIB_DIR)/mariadb:$(LIB_DIR)/mariadb/org/mariadb/jdbc" $(MAIN_CLASS)
endif
# === Create JAR ===
jar: compile
@echo === Creation du JAR autonome ===
echo Main-Class: $(MAIN_CLASS) > manifest.txt
jar cfm $(JAR_NAME) manifest.txt -C $(BUILD_DIR) .
@$(RM) manifest.txt 2>nul || true
@echo JAR cree avec succes: $(JAR_NAME)
# === Run from JAR ===
run-jar:
@echo === Execution du JAR ===
ifeq ($(OS),Windows_NT)
java -cp "$(JAR_NAME);$(LIB_DIR);$(LIB_DIR)/mariadb;$(LIB_DIR)/mariadb/org/mariadb/jdbc" $(MAIN_CLASS)
else
java -cp "$(JAR_NAME):$(LIB_DIR):$(LIB_DIR)/mariadb:$(LIB_DIR)/mariadb/org/mariadb/jdbc" $(MAIN_CLASS)
endif
# === Generate documentation ===
doc:
@echo === Generation de la documentation Javadoc ===
javadoc -d $(DOC_DIR) -encoding UTF-8 -cp "$(LIB_DIR)$(SEP)$(LIB_DIR)/org/mariadb/jdbc" $(SRC_DIR)/*.java
@echo Documentation generee dans le dossier doc/
# === Clean build and docs ===
clean:
@echo === Nettoyage des fichiers compiles ===
ifeq ($(OS),Windows_NT)
$(RM) $(BUILD_DIR)\$(SRC_BUILD)\*.class 2>nul || true
for /d %%i in ($(DOC_DIR)\*) do rmdir /S /Q "%%i" 2>nul || true
$(RM) $(DOC_DIR)\* 2>nul || true
else
$(RM) $(BUILD_DIR)/fr/iutfbleau/papillon/*.class
find $(DOC_DIR) -mindepth 1 -delete 2>/dev/null || true
endif
@echo Nettoyage termine
BIN
View File
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

Some files were not shown because too many files have changed in this diff Show More