Click to See Complete Forum and Search --> : war task add folders that be should avoid/ignore it


dr_pompeii
03-06-2007, 06:32 AM
Hi guys

i have a problem with ant war task
my build.xml are located in


myapp
WEB-INF
build.xml


this is my war task target


<target name="war-creatror">
<war basedir="${basedir}/../" destfile="myapp.war" webxml="web.xml" >
<fileset dir="${sourcedir}" >
<exclude name="**/*.java" />
</fileset>
</war>
</target>


where
<property name="sourcedir" value="${basedir}/src" />

well the weird part is that the war file has include the src folder!!!!
thats mean


myapp.war
jsp
js
css
WEB-INF/
src <---- it shouldnt be there
...
more folders
...


so please, what is wrong??????
according with 2 books my code shown should work

really i need your help,

thanks for advacned

p.d: i work in linux, ant version 1.6.5