HI, Supareno Tnx for the response.But the problem is same.Actually me war is in dist folder which is in root folder and build is also at the root folder. d:/root/dist/abc.war d:/root/build.xml I had tried all the occurances but its unable to find the path. Its says /dist/abc.war not found(IOEception)
these are the different ways i am trying war="${name}" war="${dist}/${name}" war="./${dist}/${name}" war="${top}/${dist}/${name}" please send me the response . supareno wrote: > > have you try with the ${warname} for the war param... > you don't have to write 'file:.\....' > > this example works well > > <target name="install" description="Install application in Tomcat"> > <install url="${tomcat.manager.url}" > username="${tomcat.manager.username}" > password="${tomcat.manager.password}" > path="/${name}" > war="${name}"/> > </target> > > hope this help > > supareno > > sandyg a écrit : >> Hi, >> please can u help me. >> >> I am using ant install to install my project in to server with following >> code. >> <target name="remove" description="Remove application in Tomcat"> >> <install url="${tomcat.manager.url}" >> username="${tomcat.username}" >> password="${tomcat.manager.password}" >> path="/${warname}" >> war="file:.\${dist}\${warname}.war"/> >> </target> >> >> here it is unable to find the file in my project that is at (.) and >> throws >> IOException. >> But if i give full path its running fine. >> >> Now i need help for to get the folder path where my ant is running. >> >> >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/ant-home-path-tp18255567p18273668.html Sent from the Ant - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]