Hello
If I checkout in a particular dir by source and then do a build, I am
successful
C:\cvssource\bosprint>ant -lib .\lib
Buildfile: build.xml
[echo] C:\apache-ant-1.6.2
clean:
[delete] Deleting directory C:\cvssource\bosprint\build
[delete] Deleting directory C:\cvssource\bosprint\dist
build-ejb:
[mkdir] Created dir: C:\cvssource\bosprint\build
[mkdir] Created dir: C:\cvssource\bosprint\dist
[javac] Compiling 3 source files to C:\cvssource\bosprint\build
[copy] Copying 4 files to C:\cvssource\bosprint\build\META-INF
[jar] Building jar: C:\cvssource\bosprint\dist\OMSQueueEngine.jar
[wlappc] WARNING: Warning from ejbc:
[wlappc] The ejb 'statelessSession' has a Remote View. However, the
<jndi-na
me> is not set.
[wlappc]
ear:
[delete] Deleting directory C:\cvssource\bosprint\build
[mkdir] Created dir: C:\cvssource\bosprint\build
[copy] Copying 1 file to C:\cvssource\bosprint\build
[servicegen] Generating service "OMSQueueEngine" ...
all:
BUILD SUCCESSFUL
Total time: 9 seconds
I want to call my build.xml from another buildfile , I don't know on how
to do the antcall to
Achieve the same. I don't want all the jars to be dumped into
ant_home\lib directory.
<target name="buildbosprint">
<delete dir="checkout/project2" failonerror="false" />
<cvs cvsRoot=":ext:[EMAIL PROTECTED]:/cvsroot"
package="bosprint"
dest="checkout/project2"
/>
<ant antfile="build.xml" dir="checkout/project2/bosprint" />
</target>
If you need anything else , please let me know.
srikrishna
-----Original Message-----
From: Jeffrey E Care [mailto:[EMAIL PROTECTED]
Sent: Friday, February 10, 2006 4:10 PM
To: Ant Users List
Subject: Re: Please help....Urgent..Using inside the script
Sorry, I don't think you are providing enough information for anyone to
help you; I certainly can't understand your scenario, as you seem to
have two build.xml files you're working with, but you've only provided
one that I can see.
In any case, here is some helpful advice:
http://www.catb.org/~esr/faqs/smart-questions.html#urgent
I would highly recommend reading that document (the linked section in
particular).
________________________________________________________________________
____________________
Jeffrey E. (Jeff) Care
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
IBM WebSphere Application Server Development
WAS Pyxis Lead Release Engineer
WebSphere Mosiac
WebSphere Brandmark
<[EMAIL PROTECTED]> wrote on 02/10/2006 02:47:57 PM:
> One build file is calling another build file to do the build .But for
> the actual build to happen , I have to do ant -lib .\lib. How to
> accomplish this inside the 2nd target.
>
>
>
> -----Original Message-----
> From: Parthasarathy, Srikrishna - Information Technology
> <[EMAIL PROTECTED]>
> Sent: Friday, February 10, 2006 1:07 PM
> To: 'Ant Users List'
> Subject: Using ant task for doing builds.
> Importance: High
>
>
>
>
>
> In my 2nd build, when I actually do a ant -lib .\lib , it works. How
do
> I incorporate in my below mentioned build.xml file
>
>
>
> <project name="cc-build" default="build" basedir=".">
>
>
>
> <target name="build">
>
>
>
> <delete dir="checkout/project1" failonerror="false" />
>
>
>
> <cvs cvsRoot=":ext:[EMAIL PROTECTED]:/cvsroot"
>
> package="jinxweb"
>
> dest="checkout/project1"
>
> />
>
>
>
>
>
>
>
> <ant antfile="build.xml" dir="checkout/project1/jinxweb/jinxweb" />
>
> </target>
>
>
>
> <target name="buildbosprint">
>
>
>
> <delete dir="checkout/project2" failonerror="false" />
>
>
>
> <cvs cvsRoot=":ext:[EMAIL PROTECTED]:/cvsroot"
>
> package="bosprint"
>
> dest="checkout/project2"
>
> />
>
>
>
>
>
>
>
> <ant antfile="build.xml" dir="checkout/project2/bosprint" />
>
> </target>
>
>
>
>
>
> </project>
>