Solved

How to add new files or images when doing ant build file ?

Posted on 2013-05-18
11
368 Views
Last Modified: 2013-05-25
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
Comment
Question by:Rose_Taylor
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 5
11 Comments
 
LVL 86

Expert Comment

by:CEHJ
ID: 39178472
Please post the build file and be specific about what you want to see where
0
 

Author Comment

by:Rose_Taylor
ID: 39178745
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
 
LVL 86

Expert Comment

by:CEHJ
ID: 39179313
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
Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

 

Author Comment

by:Rose_Taylor
ID: 39179425
<!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
 
LVL 86

Expert Comment

by:CEHJ
ID: 39179480
Just make sure your source is under the source tree (usually in directory 'src')
0
 

Author Comment

by:Rose_Taylor
ID: 39179514
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
 
LVL 86

Accepted Solution

by:
CEHJ earned 500 total points
ID: 39179610
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
 

Author Comment

by:Rose_Taylor
ID: 39180301
I've requested that this question be deleted for the following reason:

I got answer
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 39180302
I got answer
Sorry - that tells us nothing and doesn't help future visitors to this question
0
 

Author Comment

by:Rose_Taylor
ID: 39185258
Really don't know how it is working. I had closed all the applications and restarted the systems it took all the files.
0

Featured Post

Webinar: Aligning, Automating, Winning

Join Dan Russo, Senior Manager of Operations Intelligence, for an in-depth discussion on how Dealertrack, leading provider of integrated digital solutions for the automotive industry, transformed their DevOps processes to increase collaboration and move with greater velocity.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
ejb message driven bean mdb creation steps 2 35
what is the best Integrated development environment 2 39
What browser will run Java? 7 127
Java array sort 10 33
When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question