[kaffe] problems with kaffe-1.1.2 + ant-1.5.4
Juan Antonio Martinez
jantonio@dit.upm.es
Thu Oct 30 09:03:18 2003
--=-9LXYYafcupEMTQNJfJov
Content-Type: text/plain; charset=ISO-8859-15
Content-Transfer-Encoding: quoted-printable
I'm trying to use kaffe jdk in my java developments, but found
several problems when using ant to build projects:
1- I need to invoke ant with "-Dbuild.compiler=3DextJavac"=20
option. Else doesn't ever run
optionally can use compiler=3D"extJavac" in javac task to get it
working. =BFIs this normal or a bug?
2- Take a look at these build.xml extract:
[.......]
<target name=3D"compile" depends=3D"init"
description=3D"Compile the java code">
<javac srcdir=3D"${src}" destdir=3D"${build}" compiler=3D"extJavac">
<classpath refid=3D"project.class.path"/>
</javac>
<!-- here comes some non-relevant items
.....
-->
</target>
[.....]
when invoked "ant -v compile" just get this message:
--------------------------------------------
[....]
ga/javaxml/example/PersonExample.java
[javac] =20
/home/jantonio/public_html/almacen/cosas/skaringa/src/com/skaringa/javaxml/=
example/Person.java
[javac] =20
/home/jantonio/public_html/almacen/cosas/skaringa/src/com/skaringa/javaxml/=
example/OrgMember.java
[javac] Kjc: invalid option -- :
=20
BUILD FAILED
file:/home/jantonio/public_html/almacen/cosas/skaringa/build.xml:33:
Compile failed; see the compiler error output for details.
at org.apache.tools.ant.taskdefs.Javac.compile (Javac.java:844)
at org.apache.tools.ant.taskdefs.Javac.execute (Javac.java:682)
at org.apache.tools.ant.Task.perform (Task.java:341)
at org.apache.tools.ant.Target.execute (Target.java:309)
at org.apache.tools.ant.Target.performTasks (Target.java:336)
at org.apache.tools.ant.Project.executeTarget (Project.java:1339)
at org.apache.tools.ant.Project.executeTargets (Project.java:1255)
at org.apache.tools.ant.Main.runBuild (Main.java:609)
at org.apache.tools.ant.Main.start (Main.java:196)
at org.apache.tools.ant.Main.main (Main.java:235)
=20
Total time: 2 seconds
-------------------------------------------------
Of course, it works fine on Sun's JDK
What am i doing wrong?
Thanks in advance
--=20
Juan Antonio Martinez <jantonio@dit.upm.es>
Dpto Ingenieria Telematica
--=-9LXYYafcupEMTQNJfJov
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: Esta parte del mensaje =?ISO-8859-1?Q?est=E1?= firmada
digitalmente
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQA/oPn391t204u+Bn4RAg0pAJ4ksSqzSgpCMCpU3sgnWFfZwSZgEACdFUOE
apNAK9hAW2VpnUuoRD402CM=
=Z91e
-----END PGP SIGNATURE-----
--=-9LXYYafcupEMTQNJfJov--