Rose_Taylor
asked on
How to add new files or images when doing ant build file ?
Hello ,
I have checked in the source files from clear case and try to build source code with adding some new files.Deleting these new files when deploying the ant build using ant -f ant/xxxx/build.xml deploy file, those files are not coming to into .war file.
I didn't create exsiting ant build file , please help me to update new files to deploy into .war file.What command need use to update the ant build file to take new files ?
Thanks,
I have checked in the source files from clear case and try to build source code with adding some new files.Deleting these new files when deploying the ant build using ant -f ant/xxxx/build.xml deploy file, those files are not coming to into .war file.
I didn't create exsiting ant build file , please help me to update new files to deploy into .war file.What command need use to update the ant build file to take new files ?
Thanks,
Please post the build file and be specific about what you want to see where
ASKER
I have added new files in source code , but those new files not adding into .war file(after deploy the code using ant script).
Please post the build fileBe aware that that general principle with Ant builds is that any new code must be under the source root and nowhere else
ASKER
<!DOCTYPE project [
<!ENTITY common SYSTEM "../common.xml">
<!ENTITY jaxb SYSTEM "../jaxb.xml">
<!ENTITY weblogic SYSTEM "../weblogic.xml">
<!ENTITY aaa-entity SYSTEM "./entity.xml">
]>
<project name="aaa Analytics" default="deploy" basedir=".">
<property file="../../.ant.propertie s"/>
&common;
&jaxb;
&weblogic;
&aaa-entity;
<target name="clean" depends="clean.aaa"/>
<target name="compile" depends="compile.aaa"/>
<target name="create.war" depends="compile,prepare.a aa.war.pro perties,pr epare.aaa. web.inf,pr epare.aaa. jsp,create .aaa.war"/ >
<target name="deploy" depends="create.war,deploy .aaa.war"/ >
<target name="test" depends="test.aaa"/>
</project>
<!ENTITY common SYSTEM "../common.xml">
<!ENTITY jaxb SYSTEM "../jaxb.xml">
<!ENTITY weblogic SYSTEM "../weblogic.xml">
<!ENTITY aaa-entity SYSTEM "./entity.xml">
]>
<project name="aaa Analytics" default="deploy" basedir=".">
<property file="../../.ant.propertie
&common;
&jaxb;
&weblogic;
&aaa-entity;
<target name="clean" depends="clean.aaa"/>
<target name="compile" depends="compile.aaa"/>
<target name="create.war" depends="compile,prepare.a
<target name="deploy" depends="create.war,deploy
<target name="test" depends="test.aaa"/>
</project>
Just make sure your source is under the source tree (usually in directory 'src')
ASKER
my all existing source code is deploying and working fine. but if am adding new image under ../image/img.gif not adding into .war file.
Note : ../image/.. Already lot of images are there and those are working good.
Note : ../image/.. Already lot of images are there and those are working good.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I've requested that this question be deleted for the following reason:
I got answer
I got answer
I got answerSorry - that tells us nothing and doesn't help future visitors to this question
ASKER
Really don't know how it is working. I had closed all the applications and restarted the systems it took all the files.