Bonjour à tous.

J'ouvre cette discussion car j'ai vraiment besoin d'aide dans le cadre d'un développement de portlets.
J'aurai besoin de faire un script ant me permettant de générer les .war pour mes portlets.

Bon, je suis un gros noob en ANT.
J'ai lu un peu la doc officielle et je croyais avoir compris.

J'ai fait le fichier suivant que je lance avec la ligne de commande : ant -buildfile survey_ant.xml

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<project name="survey_module" default="creator" basedir=".">
    <description>
       this file deploys portlets and jboss_portal container for the module survey of the intermed project.
    </description>
  <property name="src" location="src"/>
  <property name="deploy" location="."/>
 
  <target name="creator">
    <!-- Create and deploy the portlet QuestionnaireCreateurPortlet.war -->
    <war destfile="${deploy}/QuestionnaireCreateurPortlet.war" webxml="QuestionnaireCreateurPortlet/WebContent/WEB-INF/web.xml">
      <lib dir="QuestionnaireCreateurPortlet/WebContent/WEB-INF/lib"/>
      <classes dir="QuestionnaireCreateurPortlet/src"/>
      <webinf dir="QuestionnaireCreateurPortlet/WebContent/WEB-INF"/>
    </war>
  </target>
 
  <target name="interviewee">
    <!-- Create and deploy the portlet QuestionnaireIntervieweePortlet.war -->
    <war destfile="${deploy}/QuestionnaireIntervieweePortlet.war" webxml="QuestionnaireIntervieweePortlet/WebContent/WEB-INF/web.xml">
      <lib dir="QuestionnaireIntervieweePortlet/WebContent/WEB-INF/lib"/>
      <classes dir="QuestionnaireIntervieweePortlet/src"/>
      <webinf dir="QuestionnaireIntervieweePortlet/WebContent/WEB-INF"/>
    </war>
  </target>
 
   <target name="stats">
    <!-- Create and deploy the portlet QuestionnaireStatsPortlet.war -->
    <war destfile="${deploy}/QuestionnaireStatsPortlet.war" webxml="QuestionnaireStatsPortlet/WebContent/WEB-INF/web.xml">
      <lib dir="QuestionnaireStatsPortlet/WebContent/WEB-INF/lib"/>
      <classes dir="QuestionnaireStatsPortlet/src"/>
      <webinf dir="QuestionnaireStatsPortlet/WebContent/WEB-INF"/>
    </war>
  </target>
 
</project>
J'obtiens bien un .war mais il n'y a aucun .class, que des .java.

Si quelqu'un pouvait m'aiguiller...
Merci d'avance.