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

Grzegorz Prokopski gadek at debian.org
Sun Aug 4 14:34:33 PDT 2002


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="build.compiler" value="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/splash/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 = (JPanel) getContentPane();
                <---->
*** Error: Type org/apache/tools/ant/taskdefs/optional/splash/JPanel was
not found.


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


   101.        
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.        
pb.setBorder(BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.LOWERED));
                                                            
<------------------------------------>
*** 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.        
pan.setBorder(BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
                                                             
<----------------------------------->
*** 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 = 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 !


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://kaffe.org/pipermail/kaffe/attachments/20020804/c9148764/attachment-0003.pgp 


More information about the kaffe mailing list