Bonjour,
suite a mon sujet de stage ,je cherche à mettre une place un script ant qui permet de traduire des page jsp en pages java via jspc et ensuite les compilées en utilisant javac .j'ai vu sur le net +eurs facon de le faire mais j'arrive pas à faire un scripte compatible à ce que j'ai déja realisé pr le deploiement :

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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
<project name="webmodulebuilder"  default="deploy"  basedir=".">
 
  <!-- set global properties for this build -->
  <property file="build.properties"/>
  <property name="dist" value="${project.chemin}dist" />
  <property name="web" value="../" />
 
 
  <target name="init">
    <!-- Create the dist directory structure used by compile
         and copy the deployment descriptors into it-->
    <mkdir dir="${dist}"/>
    <mkdir dir="${dist}/WEB-INF"/>
    <mkdir dir="${dist}/WEB-INF/classes"/>
    <mkdir dir="${dist}/WEB-INF/lib"/>
  	<ant dir="${taglibproject.dir}/META-INF" description="Récupération de la TagLib" inheritall="false" >
 		<property name="deploy.dir" value="${dist}/WEB-INF/lib"/>
  	</ant>
  	<copy file="${dist}/WEB-INF/lib/taglib_gxp.jar" todir="${web}/WEB-INF/lib">
  	</copy>
    <copy todir="${dist}">
      <fileset dir="${web}">
        <include name="**/*.*"/>
        <exclude name="**/*.java"/>
        <exclude name="**/jsp_servlet/*.class"/>
        <exclude name="**/build.xml"/>
        <exclude name="**/deploy.xml"/>
        <exclude name="**/build.properties"/>
        <exclude name="**/servers.xml"/>
        <exclude name="**/targets.xml"/>
        <exclude name="**/*.war"/>
      	<exclude name="**/appserv-jstl.jar"/>
      	<exclude name="**/Fichiers/*.*"/>
      </fileset>
    </copy>
    <copy todir="${dist}/WEB-INF/classes">
      <fileset dir="${project.dir}/${bin.dir}">
        <include name="**/*.*"/>
        <exclude name="**/jsp_servlet/*.class"/>
        <exclude name="**/*.java"/>
      </fileset>
    </copy>
 
  </target>
  <target name="FichierDeConfig">
    <delete file="${gxpfilepath}/ServiceLetList.xml" failonerror="false" />
  	<delete dir="${gxpfilepath}/MODEL" failonerror="false"/>
  	<copy file="${project.chemin}\\${module}\\Fichiers\\GxpFiles\\ServiceLetList.xml" todir="${gxpfilepath}" failonerror="false"> 		
  	</copy>
  	<copy todir="${gxpfilepath}/MODEL">
  	  	<fileset dir="${project.chemin}\\${module}\\Fichiers\\GxpFiles\MODEL"> 	  		
  	  	</fileset>
  	</copy>
  </target>
  <target name="deploy" depends="undeploy,init,FichierDeConfig" >
    <!-- Create the distribution directory -->
    <delete file="${war}.war" failonerror="false" />
	<jar jarfile="${war}.war" basedir="${dist}" manifest="${dist}/META-INF/MANIFEST.MF"/>
  	<copy file="${war}.war" todir="${deploy.dir}"/>
    <delete file="${war}.war" failonerror="false" />
    <delete dir="${dist}" failonerror="false" />
 
  </target>
 
  <target name="deployTool">
	  <ant antfile="./deploy.xml" dir="." target="deploy" inheritall="true">
	  </ant>
  </target> 
 
 
  <target name="undeploy">
    <!-- Sometimes you can undeploy with deleting the module file but it is best dealt on an appserver basis
         at undeployTool target -->
  </target>
  <target name="undeployTool">
	  <ant antfile="./undeploy.xml" dir="." target="undeploy" inheritall="true">
	  </ant>
  </target>   
 
 
	<target name="toj2eemodule">
		    <!-- Create the dist directory structure used by compile
		         and copy the deployment descriptors into it-->
		    <mkdir dir="${j2eemodule}${module}"/>
		    <mkdir dir="${j2eemodule}${module}/WEB-INF"/>
		    <mkdir dir="${j2eemodule}${module}/WEB-INF/classes"/>
		    <mkdir dir="${j2eemodule}${module}/WEB-INF/lib"/>
		  	<ant dir="${taglibproject.dir}/META-INF" description="Récupération de la TagLib" inheritall="false" >
		 		<property name="deploy.dir" value="${j2eemodule}${module}/WEB-INF/lib"/>
		  	</ant>
		  	<copy file="${j2eemodule}${module}/WEB-INF/lib/taglib_gxp.jar" todir="${web}/WEB-INF/lib">
		  	</copy>
		    <copy todir="${j2eemodule}${module}">
		      <fileset dir="${web}">
		        <include name="**/*.*"/>
		        <exclude name="**/*.java"/>
		        <exclude name="**/jsp_servlet/*.class"/>
		        <exclude name="**/build.xml"/>
		        <exclude name="**/deploy.xml"/>
		        <exclude name="**/build.properties"/>
		        <exclude name="**/servers.xml"/>
		        <exclude name="**/targets.xml"/>
		        <exclude name="**/*.war"/>
		      	<exclude name="**/appserv-jstl.jar"/>
 
		      </fileset>
		    </copy>
		    <copy todir="${j2eemodule}${module}/WEB-INF/classes">
		      <fileset dir="${project.dir}/${bin.dir}">
		        <include name="**/*.*"/>
		        <exclude name="**/jsp_servlet/*.class"/>
		        <exclude name="**/*.java"/>
		      </fileset>
		    </copy>
		  </target>
En fin j'espére trouver des indication sur cette fil de discussion et notament de ceux qui ont déja eu le mém cas .

Merci d'avanace