Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 379
  • Last Modified:

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,
0
Rose_Taylor
Asked:
Rose_Taylor
  • 5
  • 5
1 Solution
 
CEHJCommented:
Please post the build file and be specific about what you want to see where
0
 
Rose_TaylorAuthor Commented:
I have added new files in source code , but those new files not adding into .war file(after deploy the code using ant script).
0
 
CEHJCommented:
Please post the build file
Be aware that that general principle with Ant builds is that any new code must be under the source root and nowhere else
0
Get 10% Off Your First Squarespace Website

Ready to showcase your work, publish content or promote your business online? With Squarespace’s award-winning templates and 24/7 customer service, getting started is simple. Head to Squarespace.com and use offer code ‘EXPERTS’ to get 10% off your first purchase.

 
Rose_TaylorAuthor Commented:
<!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.properties"/>
  &common;
  &jaxb;
  &weblogic;
  &aaa-entity;
  <target name="clean" depends="clean.aaa"/>
  <target name="compile" depends="compile.aaa"/>
  <target name="create.war" depends="compile,prepare.aaa.war.properties,prepare.aaa.web.inf,prepare.aaa.jsp,create.aaa.war"/>
  <target name="deploy" depends="create.war,deploy.aaa.war"/>
  <target name="test" depends="test.aaa"/>
</project>
0
 
CEHJCommented:
Just make sure your source is under the source tree (usually in directory 'src')
0
 
Rose_TaylorAuthor Commented:
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.
0
 
CEHJCommented:
Well it's difficult to see what's happening in the build file. I suspect it's incomplete, there being a missing imported build file (in addition to the imported properties)
0
 
Rose_TaylorAuthor Commented:
I've requested that this question be deleted for the following reason:

I got answer
0
 
CEHJCommented:
I got answer
Sorry - that tells us nothing and doesn't help future visitors to this question
0
 
Rose_TaylorAuthor Commented:
Really don't know how it is working. I had closed all the applications and restarted the systems it took all the files.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

  • 5
  • 5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now