This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Re[2]: none (Jakarta ant)


Op ma 16-12-2002, om 01:43 schreef John Murga:
> Hello Dhek,
He John,
> Where can I get the diffs from ?
UUuh well. Here you go, There are only 4, this is against the gcj 3.2.1
release version from mandrake, maybe it already works with cvs. I
included a list of tasks I removed. I have been write some ant scripts
and done some testing so far ant breaks if you have depends with ',' in
it, because of the java.util.StringTokenizer problem in 3.2.1. (well
known bug) I also included a note with an error I got somewhere and the
dependency list for this build. And a zipped file with all the java
files that I included in my own build.
So far the <exec><chmod><copy><untar> works. Note that the untar uses
his own tar implementation and failed to untar a specific gzipped file
(1 out of 10 up till now). Didn' get the <patch> working correctly yet.
I also included a properties.tbz2 this includes the modified properties
list. I didn't compile any deprecated tag btw. DateUtils got hacked
because the MessageFormat class seems to have a bug. I hacked Get
because there's like a senseless coding of sun.misc. whatever while the
guys at jakarta also made their own encoder.

My excuses up front if you don't get it to compile. I used this to get
ant working (and it works)

gcj -o ant -L/java/lib/ -l-javax-xml-parsers -l-javax-xml-transform
-l-org-apache-regexp -l-org-apache-bcel -l-org-apache-tools
--main=org.apache.tools.ant.Main


1057a1058
> 	File pathComponent = null;
1061,1062c1062
<                 File pathComponent = (File) e.nextElement();
<                 try {
---
>                 pathComponent = (File) e.nextElement();
1067,1073d1066
<                 } catch (SecurityException se) {
<                     throw se;
<                 } catch (IOException ioe) {
<                     // ioe.printStackTrace();
<                     log("Exception reading component " + pathComponent ,
<                         Project.MSG_VERBOSE);
<                 }
1076,1083c1069,1077
<             throw new ClassNotFoundException(name);
<         } finally {
<             try {
<                 if (stream != null) {
<                     stream.close();
<                 }
<             } catch (IOException e) {}
<         }
---
>         } catch (IOException e) {
>           log("Exception reading component "+pathComponent,Project.MSG_VERBOSE);
>           try {
>              if (stream!=null) stream.close();
> 	  } catch (IOException io) {}
>         } catch (SecurityException se) {
>           throw se;
> 	}
>         throw new ClassNotFoundException(name);
162,165c162,166
<         long seconds = millis / 1000;
<         long minutes = seconds / 60;
<         Object[] args = {new Long(minutes), new Long(seconds % 60)};
<         return MINUTE_SECONDS.format(args);
---
> 		//long seconds = millis / 1000;
>         	//long minutes = seconds / 60;
>         	//Object[] args = {new Long(minutes), new Long(seconds % 60)};
>         	//str = MINUTE_SECONDS.format(args);
>  	return millis/1000 + " seconds"; // HACK: MessageFormat has errors in CLASSPATH
148,154c148,154
<                 try {
<                     sun.misc.BASE64Encoder encoder =
<                         (sun.misc.BASE64Encoder)
<                         Class.forName("sun.misc.BASE64Encoder").newInstance();
<                     encoding = encoder.encode (up.getBytes());
< 
<                 } catch (Exception ex) { // sun's base64 encoder isn't available
---
>                 //try {
>                   //  sun.misc.BASE64Encoder encoder =
>                     //    (sun.misc.BASE64Encoder)
>                       //  Class.forName("sun.misc.BASE64Encoder").newInstance();
> //                    encoding = encoder.encode (up.getBytes());
> //
>   //              } catch (Exception ex) { // sun's base64 encoder isn't available
157,159c157,159
<                 }
<                 connection.setRequestProperty ("Authorization",
<                                                "Basic " + encoding);
---
>     //            }
>       //          connection.setRequestProperty ("Authorization",
>        //                                        "Basic " + encoding);
69c69
< public class ImplementationSpecificArgument extends Commandline.Argument {
---
> public class ImplementationSpecificArgument extends  org.apache.tools.ant.types.Commandline.Argument {

Attachment: error
Description: Text document

Attachment: removed.lst
Description: Text document

Attachment: notes
Description: Text document

Attachment: java.lst.tbz2
Description: application/bzip

Attachment: properties.tar.tbz2
Description: application/bzip


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]