ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: cvs commit: ant/src/etc/testcases/taskdefs/optional/vss vss.xml
Date Tue, 15 Apr 2003 06:09:54 GMT
On 15 Apr 2003, <jesse@apache.org> wrote:
> jesse       2003/04/14 21:26:52
> 
>   Modified: src/main/org/apache/tools/ant/taskdefs/optional/vss
>   MSVSS.java

This makes the VSS tasks JDK 1.4 dependent.

[bodewig@bodewig jakarta-ant]$ java -fullversion
java full version "1.3.1_07-b02"
/home/bodewig/ASF/jakarta/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/vss/MSVSS.java:723:
cannot resolve symbol
symbol  : method indexOf  (java.lang.String)
location: class java.lang.StringBuffer
        int indexUser = sBuff.indexOf(FLAG_LOGIN);
/home/bodewig/ASF/jakarta/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/vss/MSVSS.java:725:
cannot resolve symbol
symbol  : method indexOf  (java.lang.String,int)
location: class java.lang.StringBuffer
            int indexPass = sBuff.indexOf(",", indexUser);
                                 ^
/home/bodewig/ASF/jakarta/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/vss/MSVSS.java:726:
cannot resolve symbol
symbol  : method indexOf  (java.lang.String,int)
location: class java.lang.StringBuffer
            int indexAfterPass = sBuff.indexOf(" ", indexPass);
                                      ^
Note: Some input files use or override a deprecated API.
Note: Recompile with -deprecation for details.
3 errors

You'll probably have to go around and use sBuff.substring(0).indexOf
instead.

Cheers

        Stefan

Mime
View raw message