ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 26195] New: - pb in WAR task : Bad web-inf repository
Date Fri, 16 Jan 2004 14:25:48 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26195>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26195

pb in WAR task : Bad web-inf repository

           Summary: pb in WAR task : Bad web-inf repository
           Product: Ant
           Version: 1.5.3
          Platform: PC
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Core tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: bertrand.lancelot@libertysurf.fr
                CC: bertrand.lancelot@libertysurf.fr


The war generated in using "WAR" task create a "web-inf" repository with files 
(web.xml, *.tld, ...) and a "WEB-INF" repository with other repositories and 
their files (classes, ...).

Note : My application has a "WEB-INF" repository and not a "web-inf".

See below the code :

   	<target name="dist" if="application" depends="splashScreen">
		<tstamp/>

		<!-- initialisation variables de distribution -->
		<property name="DestinationArchivage" value="${repArchivage}
\build_${num_build}"/>
		<property name="archive_bin" value="${DestinationArchivage}
\${application}_bin_${DSTAMP}.war"/>
		<property name="archive_src" value="${DestinationArchivage}
\${application}_src_${DSTAMP}.zip"/>
		<property name="build" value="${repertoireSource}\build"/>
		<property name="java_doc" value="${DestinationArchivage}\doc"/>

		<!-- creation du repertoire source -->
		<mkdir dir="${DestinationArchivage}"/>

		<!-- Copie des fichiers LibProjet vers Lib -->
		<copy todir="${repertoireSource}\${application}\WEB-INF\lib">
		    <fileset dir="${repertoireSource}\${application}\WEB-
INF\LibProjet">
		    	<exclude name="*.zip"/>
		    </fileset>
  		</copy>
		<delete dir="${repertoireSource}\${application}\WEB-
INF\LibProjet"/>

		<!-- Creation de l'archive WAR: binaires -->
		<war destfile="${archive_bin}" webxml="${repertoireSource}
\${application}\WEB-INF\web.xml" update="false">
			<classes dir="${build}"/>
			<lib dir="${repertoireSource}\${application}\WEB-
INF\lib">
				<!-- exclure les services techniques -->
				<exclude name="at*.jar"/>
			</lib>
			<fileset dir="${repertoireSource}\${application}" 
casesensitive="true">
				<include name="**\*"/>
				<!-- exclure web.xml: present dans la 
definition du WAR -->
				<exclude name="**\web.xml"/>
				<exclude name="WEB-INF\src\**\*"/>
				<exclude name="WEB-INF\lib\*"/>
				<exclude name=".*"/>
				<exclude name="_ccmwaid.inf"/>
			</fileset>
			
			<zipfileset dir="${repertoireSource}\${application}\WEB-
INF\src" prefix="WEB-INF\classes">
				<include name="*.tld"/>
				<include name="*.xml"/>
				<include name="*.properties"/>
			</zipfileset>
    		</war>
   </target>

I tested it on 1.5.1, 1.5.3 and the last one 1.6.0 and the is the same for all.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message