----- Original Message -----
From: "Ian Zabel" <[EMAIL PROTECTED]>
To: "Ant Users List" <[EMAIL PROTECTED]>
Sent: Thursday, September 05, 2002 10:04 AM
Subject: Re: "Unclosed comment" error with jdk1.4.1 while compiling
> I am reasonably sure that I can compiling with javac, not jikes. And I
tried
> compiling with different parameters, to no avail.
>
> Here's some output:
> <project name="Build Script" default="compile" basedir=".">
> <target name="init">
> <echo message="Java Version: ${java.version}"/>
> <echo/>
> <property name="appname" value="Order-It"/>
> <property name="packages" value="com.cirqit.*" />
> .. some properties
> </target>
> <target name="compile" depends="init" description="Compiles all
classes.
> Run clean first if you switch jdks.">
> <javac srcdir="${src}" destdir="${build.classesdir}"/>
> </target>
> </project>
>
> When running JDK1.4.1RC gives this:
>
> init:
> [echo] Java Version: 1.4.1-rc
> compile:
> [javac] Compiling 295 source files to D:\OrderIt\build\classes
> [javac]
>
D:\OrderIt\Order-It_6_currproject_src\com\cirqit\core\estimates\CqtEmailLog.
> java:228: unclosed comment
> [javac] } // end class CqtEmailLog
> [javac] ^
> [javac]
>
D:\OrderIt\Order-It_6_currproject_src\com\cirqit\core\estimates\CqtEmailLogA
> ddress.java:31: unclosed comment
> [javac] } // end class CqtEmailLogAddress
> [javac] ^
> [javac]
>
D:\OrderIt\Order-It_6_currproject_src\com\cirqit\core\estimates\CqtEstimateC
> ustomField.java:57: unclosed comment
> [javac] //end CqtEstimateCustomField.java
> [javac] ^
> [javac]
>
D:\OrderIt\Order-It_6_currproject_src\com\cirqit\core\estimates\CqtEstimateR
> eference.java:65: unclosed comment
> [javac] // *** End Of CqtEstimateReference.java
> [javac] ^
> [javac]
>
D:\OrderIt\Order-It_6_currproject_src\com\cirqit\core\estimates\CqtEstimateS
> pecKey.java:152: unclosed comment
> [javac] // *** End Of CqtEstimateSpecKey.java
> [javac] ^
> [javac]
>
D:\OrderIt\Order-It_6_currproject_src\com\cirqit\core\headers\CqtClientHdrs.
> java:92: unclosed comment
> [javac] // *** End Of CqtClientHdrs.java
> [javac] ^
I'd argue it's just a fussiness of the compiler, but the way it apparently
works on the cmd line but not from ant surprises me. Nothing springs to mind
other than using something to clean up the source; I know in idea3.0 (in
beta) I can do that for all the files in a project with two keypresses. Or
do some sed search and replace to add a line ending to the comments.
I think you may also be on the bleeding edge with Java1.4.1: has anyone run
the full ant test suite on this java version yet?
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>