Compare commits
98 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| b30d46a687 | |||
| f6f30469d2 | |||
| 2e0d1bdab7 | |||
| a3b8bf3259 | |||
| 6b5441e5a6 | |||
| 2eb5f32322 | |||
| 01e4430033 | |||
| 23d2fe0139 | |||
| 388f756412 | |||
| 19b9702d15 | |||
| f34ceff95a | |||
| b7b9ab0cdc | |||
| 8d4f37762b | |||
| feb1e3ee0f | |||
| 56151b0a47 | |||
| f05e5375de | |||
| d5f64601a4 | |||
| a001e08f4a | |||
| 4bf2e75bab | |||
| 0beba32b0b | |||
| 4e44a4d915 | |||
| 92e0dec362 | |||
| 1ce86a4ee3 | |||
| 2387ebfe11 | |||
| 178580d4f1 | |||
| 86b133562e | |||
| e3b13a908a | |||
| a8103f87dc | |||
| 3d6f93949c | |||
| 7016ca44bd | |||
| 44ecaae3c5 | |||
| 2197f64c2f | |||
| 23e1a76d81 | |||
| 88aadf38e2 | |||
| 7eced15ce4 | |||
| 8b162d7b2f | |||
| b62dcbbf46 | |||
| 7f31cd5f39 | |||
| 365eab6ed6 | |||
| b4e1866152 | |||
| a89b37814c | |||
| 749ecc3021 | |||
| 8e25bb44eb | |||
| b5f63df5c4 | |||
| 8a8fa044a9 | |||
| 1bd5a81817 | |||
| 94861cbace | |||
| 6a654372b6 | |||
| bb745d675c | |||
| ad4868870f | |||
| a09118f3d9 | |||
| cd4672e6af | |||
| 5cb3629153 | |||
| 9d6383fe2f | |||
| 18bae38c6d | |||
| ec01573ab1 | |||
| c43e7d8f47 | |||
| 3e2f3d6560 | |||
| 5b71dc5553 | |||
| a747e2867e | |||
| 5bfaff0f62 | |||
| b1248bb5e2 | |||
| e72892c85a | |||
| b9ff23396f | |||
| 36cc51d990 | |||
| 8710600b37 | |||
| f2f054631f | |||
| 5e6155861a | |||
| b1ca41dcc1 | |||
| 49516eb980 | |||
| e061448588 | |||
| ab04a8daae | |||
| 1caa8d9f92 | |||
| 3bdd3e9431 | |||
| 8361921964 | |||
| 208b2194aa | |||
| d8385d4ca7 | |||
| aee2b5888a | |||
| 07525b46dc | |||
| 95e8ef3171 | |||
| 7318941579 | |||
| ef2ee630ef | |||
| e9463cd282 | |||
| ea39de544e | |||
| 83123d5324 | |||
| bf136d74a8 | |||
| 55af93deac | |||
| 4ac96b4a7a | |||
| ca60cdc8a5 | |||
| 12f638c308 | |||
| 29d12bc372 | |||
| 2a3a2e9497 | |||
| cc1eb3200f | |||
| c25c4e2a46 | |||
| 5d6146e448 | |||
| f445f9dbca | |||
| 16bfe69c86 | |||
| 720ff7e502 |
+26
@@ -0,0 +1,26 @@
|
||||
# ---> 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.
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,71 @@
|
||||
# === 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
|
||||
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.
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.
BIN
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
Reference in New Issue
Block a user