Guide d'utilisation Formpublisher Factory hors Studio
Mode commande
Ce chapitre traite de l'appel de Factory en mode batch "ligne de commande" hors Studio.
Voici un script batch à titre d'indication, consulter J-Way pour des besoins d'intégration plus avant.
@echo off
rem ==========================
rem Set the two variables below
set JAVA_EXE="C:\Program Files\Java\jdk1.6.0_23\bin\java"
set FACTORY=c:\jway\formPublisher2.0\factory
rem ==========================
set CP=
set CP=%CP%;%FACTORY%\classes;%FACTORY%\properties;%FACTORY%\log\factoryBuild
set CP=%CP%;%FACTORY%\lib\core\xercesImpl.jar
set CP=%CP%;%FACTORY%\lib\core\xalan.jar;%FACTORY%\lib\core\serializer.jar
set CP=%CP%;%FACTORY%\lib\core\commons-codec.jar;%FACTORY%\lib\build\sac.jar;%FACTORY%\lib\build\cssparser.jar;%FACTORY%\lib\build\ant.jar;%FACTORY%\lib\build\ant-launcher.jar
set CP=%CP%;%FACTORY%\lib\build\eclipse-ecj.jar
set CP=%CP%;%FACTORY%\lib\build\servlet-api.jar
set CP=%CP%;%FACTORY%\lib\core\commons-io.jar;%FACTORY%\lib\core\wstx-asl.jar
rem ==========================
rem lu.jway.build.FormPublisher [project] [-options]
rem options:
rem -Dfactory_build=true Build the web application from the project
rem -Dfactory_test=true Test the web application built from the project with Jetty
rem -Dfactory_package=true Package the web application built from the project
rem ==========================
%JAVA_EXE% -Dfactory_home="%FACTORY%" -Xmx512m -cp %CP% -Dfactory_build=true lu.jway.build.FormPublisher %1