set DESTDIR=Console

cd %DESTDIR%
javac -Xlint:deprecation -Xlint:unchecked -source 1.3 -target 1.3 Console.java
javac -Xlint:deprecation -Xlint:unchecked -source 1.3 -target 1.3 FrameConsole.java
javac -Xlint:deprecation -Xlint:unchecked -source 1.3 -target 1.3 ConsoleReader.java
javac -Xlint:deprecation -Xlint:unchecked -source 1.3 -target 1.3 ConsolePrinter.java
javac -Xlint:deprecation -Xlint:unchecked -source 1.3 -target 1.3 CanvasConsole.java
javac -Xlint:deprecation -Xlint:unchecked -source 1.3 -target 1.3 CurseurCanvasConsole.java
cd ..

copy TD13-14\Pile.java %DESTDIR%
copy TD13-14\Position.java %DESTDIR%
copy TD13-14\Cercle.java %DESTDIR%
copy TD13-14\Personne.java %DESTDIR%
copy TD13-14\Compteur.java %DESTDIR%

GenerationJarConsole TP12\ApplicationPiles                %DESTDIR%
GenerationJarConsole TP12\ApplicationCercles              %DESTDIR%
GenerationJarConsole TP12\ApplicationPersonnes            %DESTDIR%
GenerationJarConsole TP12\ApplicationCompteurs            %DESTDIR%

del %DESTDIR%\Pile.java
del %DESTDIR%\Position.java
del %DESTDIR%\Cercle.java
del %DESTDIR%\Personne.java
del %DESTDIR%\Compteur.java

cd %DESTDIR%

jar uvf applicationPilesEnConsole.jar Pile.class
jar uvf applicationPersonnesEnConsole.jar Personne.class
jar uvf applicationCerclesEnConsole.jar Cercle.class
jar uvf applicationCerclesEnConsole.jar Position.class
jar uvf applicationCompteursEnConsole.jar Compteur.class

cd ..

del %DESTDIR%\Pile.class
del %DESTDIR%\Position.class
del %DESTDIR%\Cercle.class
del %DESTDIR%\Personne.class
del %DESTDIR%\Compteur.class

pause
