I got it. Thanks. ant -buildfile build2.xml. On 4/19/05, Nishi Prafull <[EMAIL PROTECTED]> wrote: > Thanks, that worked! > > One other question, if I have to pass in a new build script to the ant > command such as build2.xml and not use the default one, whats the > command line parameter to do that? > > Thanks. > > On 4/19/05, Conelly, Luis (GE Energy, Non GE, GENE) > <[EMAIL PROTECTED]> wrote: > > Nishi, > > > > If you intend to use a variable previously set on the environment, you > > should get it from your environment. I.e. > > > > <property environment="env"/> > > <property name="src.home" value="${env.srchome}"/> > > > > On the other hand, if you defined the property's value by passing an > > argument on the command line such as > > > > $ ant -Dyourprop=foo > > > > then, the way you are using is the right way. > > > > Regards > > -Luis > > > > -----Original Message----- > > From: Nishi Prafull [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, April 19, 2005 3:00 PM > > To: user@ant.apache.org > > Subject: ant build script failing > > > > Hi: > > I have following ant script to build a project but its failing at the > > clean target as below, can someone please let me know what could be > > the cause? > > I made sure that the srchome variable was set in the environment > > > > [C:\temp\dc\src\java\DiscOEM]ant > > Buildfile: build.xml > > > > clean: > > [delete] C:\temp\dc\src\java\DiscOEM\${srchome}\dc_bin_1\dist\DiscOEM > > not found. > > > > init: > > > > BUILD FAILED > > C:\temp\dc\src\java\DiscOEM\build.xml:117: Directory > > C:\temp\dc\src\java\DiscOEM\${srchome}\dc_bin_1\dist\DiscOEM creation > > was not successful for an unknown reason > > ======================================================== > > <project name="OEM" default="jar" basedir="."> > > > > <!-- ********************************************* --> > > > > <!-- Directory structure --> > > > > <!-- ********************************************* --> > > <property environment="env"/> > > <property name="src.home" value="${srchome}"/> > > <property name="discoem.tempsrc" value="tempsrc"/> > > > > <!-- True positon of dist in clearcase --> > > <property name="discoem.dist" value="../../../../dc_bin_1/dist/DiscOEM"/> > > > > <property name="dsc.lib" value="lib"/> > > > > <property name="dsc.classes" value="classes"/> > > > > <property name="dsc.src" value="src"/> > > > > <property name="dsc.resources" value="src/oracle/disco/oem/resources"/> > > > > <property name="dsc.resmakeclass" > > value="oracle.bali.rts.tools.CustomRTSMakeBundle"/> > > > > <property name="dsc.resmaketoolsdir" value="${src.home}/dc/src/java/tools"/> > > > > <property name="dsc.Beansdist" value="${src.home}/dc_bin_1/dist/DiscBeans"/> > > > > <property name="dsc.dist" value="${src.home}/dc_bin_1/dist/DiscOEM"/> > > > > <!-- ********************************************* --> > > > > <!-- Output files --> > > > > <!-- ********************************************* --> > > > > <property name="dsc.dscjar" value="${dsc.dist}/disco_dsc.jar"/> > > > > <property name="dsc.smijar" value="${dsc.dist}/disco_dsc_smi.jar"/> > > > > <property name="dsc.docjar" value="${dsc.dist}/disco_dsc_doc.jar"/> > > > > <!-- ********************************************* --> > > > > <!-- Initialise --> > > > > <!-- ********************************************* --> > > > > <target name="init" description="Performs all of the necessary setup"> > > > > <!-- - --> > > > > <mkdir dir="${dsc.dist}"/> > > > > <!-- - --> > > > > <!-- Create a directory to put all of the compiled classes in --> > > > > <mkdir dir="${dsc.classes}"/> > > <mkdir dir="${discoem.tempsrc}"/> > > <mkdir dir="${discoem.dist}"/> > > > > </target> > > > > <!-- ********************************************* --> > > > > <!-- Clean up --> > > > > <!-- ********************************************* --> > > > > <target name="clean" description="Cleans out results of a previous build."> > > > > <!-- - --> > > > > <!-- Delete the classes directory --> > > > > <delete dir="${dsc.classes}"/> > > <!-- Its failing here --> > > <delete dir="${discoem.tempsrc}"/> > > <delete failonerror="false"> > > <fileset dir="${discoem.dist}" includes="*.jar"/> > > </delete> > > > > <!-- - --> > > > > <!-- Delete all of the jars from the distribution directory --> > > > > <delete failonerror="false"> > > > > <fileset dir="${dsc.dist}"> > > > > <include name="disco_dsc.jar"/> > > > > <include name="disco_dsc_smi.jar"/> > > > > </fileset> > > > > </delete> > > > > </target> > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > >
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]