Déploiement d'un WAR dans Tomcat 6 avec ANT
Bonjour
Voilà, j'ai une archive war et je voudrais la déployer sur un serveur Tomcat 6 avec un script ANT.
Voici mon code :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
| <project name="Hello" default="install">
<property name="tomcat.home" value="D:\Applis\Tomcat 6.0" />
<!-- Propriété d'accès au Manager -->
<property name="url" value="http://localhost:8081/manager" />
<property name="username" value="admin" />
<property name="password" value="" />
<!-- Chemin du contexte de l'application -->
<property name="path" value="/intranet" />
<!-- Configure the custom Ant tasks for the Manager application -->
<taskdef name="install" classname="org.apache.catalina.ant.InstallTask"/>
<target name="install">
<echo message="Debut du deploiement"/>
<install url="${url}" username="${username}" password="${password}" path="${path}" war="C:\intranet.war"/>
<echo message="Deploiement => OK"/>
</target>
</project> |
Sachant que lorsque j'éxécute, j'obtiens ça :
Code:
1 2 3
| Buildfile: D:\Applis\Projets\Eclipse-ganymede\birtwebapp\build.xml
install:
[echo] Debut du deploiement |
et c'est tout. Aucun message d'erreur. Quelqu'un peut-il m'aider ?