ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pritesh saharey <prit...@sqatester.com>
Subject Re: dist does not exist
Date Tue, 18 Mar 2003 04:50:29 GMT
hi there 

<project name="las" default="dist" basedir="H:/Projects">
>   <target name="init">
>         <property name="project" value="las" />
>         <property name="src" location="${basedir}/${project}/src/" />
>         <property name="build" location="${basedir}/${project}/classes"
/>
>         <property name="dist" location="${basedir}/${project}/dist" />
>   </target>
> </project>

just do it like this

<project name="las" default="final" basedir="H:/Projects">
>   <target name="init">
>         <property name="project" value="las" />
>         <property name="src" location="${basedir}/${project}/src/" />
>         <property name="build" location="${basedir}/${project}/classes"
/>
>         <property name="dist" location="${basedir}/${project}/dist" />
>   </target>
	<target name="final" depends="init">
		<echo message="Running final ......"/>
	</target>
> </project>

don't use dist inside property as it is your directory and the error is obvious project default
should be their bcoz ant searches for the project deafult after it finds build.xml file tryout
this

pritesh

+++++++++++++++++++++++++++++++++++++++++++++++++

--- Vidhya <vidhya@siptech.co.in> wrote:
>hi there,
>when you run the build file,what ever is specified in the default tag will be
>executed ,by default.
>eg :default="run" and if you have a target with the name 'run ' that will be
>exceuted by default .
>since you have not specified any target with dist , it throwing an error.
>may be you can try out like this .
>change the default to "init" and try running it.
>vidhya.
>
>"Gundapu, Srinivasa (MBS)" wrote:
>
>> DD,
>>
>> I know it is problem with default="dist". I didi not understand why you put
>> default="dist" between markers. Is that wrong. dist is a location of the
>> directory that is defined in the property. Why is it reporting error.. Could
>> you please explain.
>>
>> -----Original Message-----
>> From: Dominique Devienne [mailto:DDevienne@lgc.com]
>> Sent: Monday, March 17, 2003 3:11 PM
>> To: 'Ant Users List'
>> Subject: RE: dist does not exist
>>
>> <project name="las"
>>          vvvvvvvvvvvvvv
>>          default="dist"
>>          ^^^^^^^^^^^^^^
>>          basedir="H:/Projects">
>>
>> --DD
>>
>> -----Original Message-----
>> From: Gundapu, Srinivasa (MBS) [mailto:Srinivasa.Gundapu@mortgagefamily.com]
>>
>> Sent: Monday, March 17, 2003 2:05 PM
>> To: 'Ant Users List'
>> Subject: dist does not exist
>>
>> Hello guys, need some help. Just started using ant.
>> This is my build file which is included at the last.
>>
>> I am getting this error..... saying dist does not exist
>> H:\Projects\las>ant
>> Buildfile: build.xml
>>
>> BUILD FAILED
>> Target `dist' does not exist in this project.
>>
>> Total time: 1 second
>> H:\Projects\las>
>>
>> <project name="las" default="dist" basedir="H:/Projects">
>>   <target name="init">
>>         <property name="project" value="las" />
>>         <property name="src" location="${basedir}/${project}/src/" />
>>         <property name="build" location="${basedir}/${project}/classes" />
>>         <property name="dist" location="${basedir}/${project}/dist" />
>>   </target>
>> </project>
>>
>> ---------------------------------------------------------------------
>> 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
>>
>> ---------------------------------------------------------------------
>> 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

_____________________________________________________________
Join SQAtester.com Community  ---> http://www.sqatester.com/testersarea/joinus.htm

_____________________________________________________________
Select your own custom email address for FREE! Get you@yourchoice.com w/No Ads, 6MB, POP &
more! http://www.everyone.net/selectmail?campaign=tag

Mime
View raw message