Skip to content
Snippets Groups Projects
Commit 39a823aa authored by Amaury Vanoorenberghe's avatar Amaury Vanoorenberghe :scroll:
Browse files

SETUP - Ajout des scripts de compilation/exécution réalisés au tp2

parent 623f7e14
No related branches found
No related tags found
No related merge requests found
[Bb]uild/
.class
\ No newline at end of file
@ECHO OFF
PUSHD %~dp0
MKDIR build > NUL
javac -d build/ src/*.java
POPD
\ No newline at end of file
#!/bin/bash
mkdir build > /dev/null
javac -d build/ src/*.java
\ No newline at end of file
run.cmd 0 → 100644
@ECHO OFF
SETLOCAL enabledelayedexpansion enableextensions
PUSHD %~dp0
SET LIBS=
FOR %%F IN (%CD%\lib\*.jar) DO SET LIBS=!LIBS!;%%F
SET LIBS=%LIBS:~1%
SET CLASSES=
FOR %%F IN (%CD%\build\*.class) DO SET CLASSES=!CLASSES!;%%F
SET CLASSES=%CLASSES:~1%
SET CLASSPATH=%CD%\build;%CD%\lib;%LIBS%;%CLASSES%
java "%1"
POPD
ENDLOCAL
\ No newline at end of file
run.sh 0 → 100644
#!/bin/bash
LIBS=$(ls -R lib/*.jar | tr "\n" ":").
java -cp "${LIBS}":./build "$1"
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment