Right, it didn't solve my issue as even if I am giving
escape characher '^' before '!' it is still not
finding the path. 

Thanks,
Madhu.

--- Dominique Devienne <[EMAIL PROTECTED]> wrote:

> The escape char for bat (cmd) is ^ but it's far from
> certain it will
> solve your issue. --DD
> 
> On 7/11/06, madhuvanti joshi
> <[EMAIL PROTECTED]> wrote:
> > Keith,
> >
> > I checked this, but it might not be the case as !
> is
> > not followed by \ as specified in the link you
> have
> > given below and it is not used in java prog, it is
> > used in batch file which calls ANT script.
> >
> > Could anybody pls tell me which escape characher
> could
> > be used for ! in command below:(I've tried a lot
> like
> > '/' or ! but couldn't find it) so that path is
> > found
> >
> > java -classpath %CP% org.apache.tools.ant.Main
> > -buildfile "C:\Program Files\Some!Path\AntMainDir"
> >
> >
> > --- Keith Hatton <[EMAIL PROTECTED]> wrote:
> >
> > > This could be because the ! character indicates
> a
> > > resource within a JAR
> > > file.
> > > (see
> > >
> >
>
http://java.sun.com/j2se/1.5.0/docs/api/java/net/JarURLConnection.html)
> > >
> > > Hope this helps
> > > Keith
> > >
> > >
> > >
> > > -----Original Message-----
> > > From: madhuvanti joshi
> > > [mailto:[EMAIL PROTECTED]
> > > Sent: 10 July 2006 06:20
> > > To: Ant Users List
> > > Subject: ANT script fails to run when path
> contains
> > > '!'
> > >
> > >
> > > Hi All,
> > >
> > > I have a batch file through which I am calling
> ANT
> > > script. Before calling ANT script, I am setting
> > > CLASSPATH through batch file to the path
> containing
> > > ANT libraries and product.
> > >
> > > Although CLASSPATH has been set properly when I
> have
> > > a
> > > '!' in the path ( e.g. C:\Program
> > > Files\Some!Path\AntMainDir), ANT script fails
> with
> > > return code 3 (on windows - path not found) with
> > > build exception "Can't
> > > load default task list". (It does not find
> > >
> org/apache/tools/ant/taskdefs/defaults.properties)
> > >
> > > I want to know why it is not finding the path
> when
> > > it
> > > contains '!'? (If I remove'!' from Some!Path
> then
> > > everything works fine.)
> > >
> > > Thanks in Advance.
> > >
> > > -Madhu.
> > >
> > >
> > >
> > >
> __________________________________________________
> > > Do You Yahoo!?
> > > Tired of spam?  Yahoo! Mail has the best spam
> > > protection around
> > > http://mail.yahoo.com
> > >
> > >
> >
>
---------------------------------------------------------------------
> > > 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]
> > >
> > >
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam?  Yahoo! Mail has the best spam
> protection around
> > http://mail.yahoo.com
> >
> >
>
---------------------------------------------------------------------
> > 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]
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to