You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Sr...@timeinc.com on 2006/02/10 20:47:57 UTC
Please help....Urgent..Using inside the script
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
<Sr...@timeinc.com>
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:srikrishnap@cvs.timeinc.com:/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:srikrishnap@cvs.timeinc.com:/cvsroot"
package="bosprint"
dest="checkout/project2"
/>
<ant antfile="build.xml" dir="checkout/project2/bosprint" />
</target>
</project>
Re: Please help....Urgent..Using inside the script
Posted by Jeffrey E Care <ca...@us.ibm.com>.
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
carej@us.ibm.com
IBM WebSphere Application Server Development
WAS Pyxis Lead Release Engineer
<Sr...@timeinc.com> 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
> <Sr...@timeinc.com>
> 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:srikrishnap@cvs.timeinc.com:/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:srikrishnap@cvs.timeinc.com:/cvsroot"
>
> package="bosprint"
>
> dest="checkout/project2"
>
> />
>
>
>
>
>
>
>
> <ant antfile="build.xml" dir="checkout/project2/bosprint" />
>
> </target>
>
>
>
>
>
> </project>
>