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] ^
etc.....
When changing the compile target to this:
<target name="compile" depends="init" description="Compiles all classes.
Run clean first if you switch jdks.">
<javac srcdir="${src}" destdir="${build.classesdir}" verbose="true"
compiler="javac1.4" debug="on" deprecation="on"/>
</target>
I get this:
init:
[echo] Java Version: 1.4.1-rc
compile:
[javac] Compiling 295 source files to D:\OrderIt\build\classes
[javac] [parsing started
D:\OrderIt\Order-It_6_currproject_src\com\cirqit\core\estimates\CqtDataValid
ate.java]
[javac] [parsing completed 190ms]
[javac] [parsing started
D:\OrderIt\Order-It_6_currproject_src\com\cirqit\core\estimates\CqtEmailLog.
java]
[javac]
D:\OrderIt\Order-It_6_currproject_src\com\cirqit\core\estimates\CqtEmailLog.
java:228: unclosed comment
[javac] } // end class CqtEmailLog
[javac] ^
[javac] [parsing completed 50ms]
[javac] [parsing started
D:\OrderIt\Order-It_6_currproject_src\com\cirqit\core\estimates\CqtEmailLogA
ddress.java]
[javac]
D:\OrderIt\Order-It_6_currproject_src\com\cirqit\core\estimates\CqtEmailLogA
ddress.java:31: unclosed comment
[javac] } // end class CqtEmailLogAddress
[javac] ^
[javac] [parsing completed 91ms]
[javac] [parsing started
D:\OrderIt\Order-It_6_currproject_src\com\cirqit\core\estimates\CqtEstimate.
java]
[javac] [parsing completed 40ms]
[javac] [parsing started
D:\OrderIt\Order-It_6_currproject_src\com\cirqit\core\estimates\CqtEstimateC
ustomField.java]
[javac]
D:\OrderIt\Order-It_6_currproject_src\com\cirqit\core\estimates\CqtEstimateC
ustomField.java:57: unclosed comment
[javac] //end CqtEstimateCustomField.java
[javac] ^
[javac] [parsing completed 10ms]
[javac] [parsing started
D:\OrderIt\Order-It_6_currproject_src\com\cirqit\core\estimates\CqtEstimateR
eference.java]
[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] [parsing completed 0ms]
[javac] [parsing started
D:\OrderIt\Order-It_6_currproject_src\com\cirqit\core\estimates\CqtEstimateS
pecKey.java]
[javac]
D:\OrderIt\Order-It_6_currproject_src\com\cirqit\core\estimates\CqtEstimateS
pecKey.java:152: unclosed comment
[javac] // *** End Of CqtEstimateSpecKey.java
[javac] ^
Any other ideas?
Ian.
----- Original Message -----
From: "Steve Loughran" <[EMAIL PROTECTED]>
To: "Ant Users List" <[EMAIL PROTECTED]>
Sent: Thursday, September 05, 2002 12:35 PM
Subject: Re: "Unclosed comment" error with jdk1.4.1 while compiling
> Are you calling the javac compiler with exactly the same options on the
> command line as in ant? What does verbose say? Are you sure you are
building
> with javac and not jikes in ant?
>
> Ant just hands off to the compiler classes in javac.jar, so there should
be
> no difference between command line and in-ant builds.
>
> regarding the error, I recall jikes complaining about something like this
a
> while back. You need to end on a blank line, not a comment. Its an easy
fix,
> good practice, and not really an ant issue per-se, just java language spec
> stuff.
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>