Yep, already tried the autoResponse set to "Y". Below is my vsscheckout
task and resulting errors I get. I guess according to Nico's reply, I can't
avoid this situation. Guess I could check to see on a per file basis if
they are writable first before trying to check them out...
-----Snippet of my build.xml--------
<target name="checkout-library">
<echo message="Checking out lib directory..."/>
<vsscheckout vsspath="/Shipping eServices/lib"
localpath="./lib"
recursive="true"
login="${vss.username},${vss.password}"
autoResponse="Y"/>
</target>
<target name="library" depends="checkout-library">
<echo message="Getting latest libraries..."/>
<echo message="ant.real.home=${ant.real.home}"/>
<echo message="regexp.home=${regexp.home}"/>
<echo message="jdom.home=${jdom.home}"/>
<echo message="validation.home=${validation.home}"/>
<echo message="wl.home=${wl.home}"/>
<copy todir="${basedir}/lib">
<fileset dir="${ant.real.home}/lib" includes="*.jar"/>
<fileset dir="${regexp.home}" includes="*.jar"/>
<fileset dir="${jdom.home}/build" includes="jdom.jar"/>
<fileset dir="${validation.home}/build" includes="validation.jar"/>
<fileset dir="${wl.home}/lib" includes="weblogic*.jar"/>
<!-- See if Crimson can be used instead of Xerces. JDOM execution
should be real test
<fileset dir="${jdom.home}" includes="xerces.jar"/>
-->
</copy>
</target>
-----Result-----
>ant library
Buildfile: build.xml
checkout-library:
[echo] Checking out lib directory...
[vsscheckout] $/Shipping eServices/lib:
[vsscheckout]
[vsscheckout] You currently have file $/Shipping eServices/lib/ant.jar
checked o
ut.
[vsscheckout] You currently have file $/Shipping eServices/lib/crimson.jar
check
ed out.
[vsscheckout] You currently have file $/Shipping
eServices/lib/jakarta-ant-1.4al
pha-optional.jar checked out.
[vsscheckout] You currently have file $/Shipping
eServices/lib/jakarta-regexp-1.
2.jar checked out.
[vsscheckout] You currently have file $/Shipping eServices/lib/jaxp.jar
checked
out.
[vsscheckout] You currently have file $/Shipping eServices/lib/jdom.jar
checked
out.
[vsscheckout] You currently have file $/Shipping eServices/lib/README
checked ou
t.
[vsscheckout] You currently have file $/Shipping
eServices/lib/validation.jar ch
ecked out.
[vsscheckout] You currently have file $/Shipping eServices/lib/weblogic.jar
chec
ked out.
BUILD FAILED
C:\data\jd\repositories\dhl\eservices\build.xml:360: Failed executing: ss
Checko
ut "$/Shipping
eServices/lib" -GLC:\data\jd\repositories\dhl\eservices\lib -I-Y
-R -Yjfagan,jordan23
Total time: 0 seconds
> -----Original Message-----
> From: Diane Holt [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 02, 2001 6:31 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Ant 1.4 -- failonerror attributes?
>
>
> I don't use (thankfully :) VSS, but the doc suggests that if you have
> autoResponse="Y" it will overwrite already checked-out files. Have you
> tried that?
>
> Diane
>
> --- "J.D. Fagan" <[EMAIL PROTECTED]> wrote:
> > Unfortunately, I'm stuck on a VSS based project at the moment :-( And
> > I'm
> > trying to build a target that depends on a VSS checkout.
> >
> > How can I ignore an error from vsscheckout and continue on? My error
> > sometimes occur when I already have a file checked out, and thus, just
> > want
> > to ignore this error and continue on. I think I might be asking for the
> > "failonerror" capability of javac task? Anyone have any insight?
> >
> > JD
> >
>
>
> =====
> ([EMAIL PROTECTED])
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Auctions - buy the things you want at great prices
> http://auctions.yahoo.com/
>