ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brad G. Kyer" <bgk...@yahoo.com>
Subject Re: ant build script failing
Date Tue, 19 Apr 2005 20:13:17 GMT
> <property name="src.home" value="${srchome}"/>

I believe needs to be =>

> <property name="src.home" value="${env.srchome}"/>

-B

--- Nishi Prafull <nishiprafull@gmail.com> wrote:
> 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: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message