[kaffe] trying to build ant with kaffe [Re: using ant to build kaffe - ant needs non-free java!]

Grzegorz Prokopski gadek@debian.org
04 Aug 2002 23:34:33 +0200


--=-ekJPpcqCODy9Cx0sIkHR
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Hi!

I think I am finished with it for now.
No - it didn't work finally.

After I added to build.xml single line:
<property name=3D"build.compiler" value=3D"jikes"/>
I managed to get it further.

However after what I saw - no swing - no go.

It seem however, that this is the "optional" stuff, that could be
cut off the ant package, unfortunatelly some probably depend on that
"optional" stuff and that would no longer be "that" ant package.

Will have to think it over once again.
Don't know - maybe "freeant" package without some features - would
make a sense? None of my java packages that use ant to compile - use
any graphical ant interface.

Thank you for your help.

				Grzegorz B. Prokopski

PS: I think there are other libs, that could be moved from contrib to
main thanks to kaffe 1.0.7. I'll dig into that topic more once 1.0.7
is in debian archive (my current quick&dirty package causes problems
I won't be describing here, but it's a hedache to use it)

PSS: What's the time you think we will have free implementation of
swing? If that's a few months - new "freed" branches of packages
don't make much sense. But if that's more than 1 year issue - that
could be considered I think (we could have more java in main for
sarge).

And here's the end of build log FYI:


Compiling 200 source files to /opt/media/build/ant-1.5/build/classes

Found 19 semantic errors compiling
"/opt/media/build/ant-1.5/src/main/org/apache/tools/ant/taskdefs/optional/s=
plash/SplashScreen.java":

    60. import javax.swing.JWindow;
               <----------------->
*** Error: "javax/swing/JWindow" is either a misplaced package name or a
non-existent entity.


    61. import javax.swing.JLabel;
               <---------------->
*** Error: "javax/swing/JLabel" is either a misplaced package name or a
non-existent entity.


    62. import javax.swing.JPanel;
               <---------------->
*** Error: "javax/swing/JPanel" is either a misplaced package name or a
non-existent entity.


    63. import javax.swing.JProgressBar;
               <---------------------->
*** Error: "javax/swing/JProgressBar" is either a misplaced package name
or a non-existent entity.


    64. import javax.swing.BorderFactory;
               <----------------------->
*** Error: "javax/swing/BorderFactory" is either a misplaced package
name or a non-existent entity.


    65. import javax.swing.ImageIcon;
               <------------------->
*** Error: "javax/swing/ImageIcon" is either a misplaced package name or
a non-existent entity.


    74. class SplashScreen extends JWindow implements ActionListener,
BuildListener {
                                   <----->
*** Error: Type org/apache/tools/ant/taskdefs/optional/splash/JWindow
was not found.


    76.     private JLabel text;
                    <---->
*** Error: Type org/apache/tools/ant/taskdefs/optional/splash/JLabel was
not found.


    77.     private JProgressBar pb;
                    <---------->
*** Error: Type
org/apache/tools/ant/taskdefs/optional/splash/JProgressBar was not
found.


    87.     public SplashScreen(ImageIcon img) {
                                <------->
*** Error: Type org/apache/tools/ant/taskdefs/optional/splash/ImageIcon
was not found.


    93.         JPanel pan =3D (JPanel) getContentPane();
                <---->
*** Error: Type org/apache/tools/ant/taskdefs/optional/splash/JPanel was
not found.


    93.         JPanel pan =3D (JPanel) getContentPane();
                                      <-------------->
*** Error: No method named "getContentPane" was found in type
"org/apache/tools/ant/taskdefs/optional/splash/SplashScreen".


   101.       =20
piccy.setBorder(BorderFactory.createLineBorder(Color.black, 1));
                                <----------->
*** Error: "BorderFactory" is either a misplaced package name or a
non-existent entity.


   104.         text.setBorder(BorderFactory.createEtchedBorder());
                               <----------->
*** Error: "BorderFactory" is either a misplaced package name or a
non-existent entity.


   107.       =20
pb.setBorder(BorderFactory.createBevelBorder(javax.swing.border.BevelBorder=
.LOWERED));
                                                           =20
<------------------------------------>
*** Error: "javax/swing/border/BevelBorder/LOWERED" is either a
misplaced package name or a non-existent entity. An expression name is
expected in this context.


   118.       =20
pan.setBorder(BorderFactory.createBevelBorder(javax.swing.border.BevelBorde=
r.RAISED));
                                                            =20
<----------------------------------->
*** Error: "javax/swing/border/BevelBorder/RAISED" is either a misplaced
package name or a non-existent entity. An expression name is expected in
this context.


   120.         pack();
                <---->
*** Error: No method named "pack" was found in type
"org/apache/tools/ant/taskdefs/optional/splash/SplashScreen".


   122.         Dimension size =3D getSize();
                                 <------->
*** Error: No method named "getSize" was found in type
"org/apache/tools/ant/taskdefs/optional/splash/SplashScreen".


   126.         setBounds(x, y, size.width, size.height);
                <-------------------------------------->
*** Error: No method named "setBounds" was found in type
"org/apache/tools/ant/taskdefs/optional/splash/SplashScreen".

BUILD FAILED
file:/opt/media/build/ant-1.5/build.xml:573: Compile failed; see the
compiler error output for details.

Total time: {1,number} seconds
... Failed Building Ant Distribution !



--=-ekJPpcqCODy9Cx0sIkHR
Content-Type: application/pgp-signature; name=signature.asc

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQA9TZ3pcxjwiKS4/ekRAlzKAKDIT6e8z2tHOsYFFAydVHpGdSA4ngCeOPWQ
PTvwPwxycDh3BMqVCgvmdOQ=
=9AiO
-----END PGP SIGNATURE-----

--=-ekJPpcqCODy9Cx0sIkHR--