Hi all-,
 Sun re-freshed their Java Generics (jsr014) EA bundle
and I decided to build the latest Mavent b8 and switch
to it for my GJ projects. I want to replace the below
ANT 1.5.1 task (which works fine, by the way):
---------------------------------------------
<target name="compile" depends="prepare" >
        <mkdir dir="${build.dir}/classes"/>
    <javac
           fork="yes"
           executable="${java.home}/../bin/javac"
           destdir="${build.dir}/classes"
           source="1.5"
           deprecation="on"
           debug="${jcompiler.debug}"
           optimize="${jcompiler.optimize}">
           
           <compilerarg
line="-J-Xbootclasspath/p:${lib.dir}/gj/javac.jar"/>
           <compilerarg line="-bootclasspath
${lib.dir}/gj/collect.jar;${java.home}/lib/rt.jar"/>
           
                   <classpath
refid="project.classpath"/>
           
           <src path="${src.dir}/java"/>
           
    </javac>
  </target>

-------------------------------------------

by a standard Maven b8 project. I have a
project.properties file
like this :
-------------------------------------------
maven.compile.debug =on
maven.compile.optimize =off
maven.compile.deprecation =on

#Java generics
lib.dir=./lib
maven.compile.source=1.5
maven.compile.fork =yes
maven.compile.executable ="${java.home}/../bin/javac"
maven.compile.compilerargs="-J-Xbootclasspath/p:${lib.dir}/gj/javac.jar
-bootclasspath
${lib.dir}/gj/collect.jar;${java.home}/lib/rt.jar"
-------------------------------------------

When I ran Maven I got the following output (see
attachment). Given that the equivalent ANT 1.5.1
build.xml works, I thing Maven b8 does not handle
"maven.compile.fork". Is this an error? Has anyone
compiled with JIKES, KJC or JSR014's javac?

Thanks,
Hristo



__________________________________________________
Do you Yahoo!?
U2 on LAUNCH - Exclusive greatest hits videos
http://launch.yahoo.com/u2
    [javac] [DEBUG] Execute:Java13CommandLauncher: Executing '"c:\java\j2sdk1.4\
jre\..\bin\javac"' with arguments:
'-deprecation'
'-d'
'N:\jprojects\target\classes'
'-classpath'
'N:\jprojects\target\classes;C:\java\maven\repository\poi\jars\poi-1.8.0-dev-200
20919.jar;C:\java\maven\repository\ant\jars\ant-1.5.jar;C:\java\maven\lib\forehe
ad-1.0-beta-4.jar'
'-sourcepath'
'N:\jprojects\src\census\java'
'-g'
'-J-Xbootclasspath/p:./lib/gj/javac.jar -bootclasspath ./lib/gj/collect.jar;c:\j
ava\j2sdk1.4\jre/lib/rt.jar'
'-source'
'1.5'

... A BUNCH OF .JAVA FILES FOLLOWS ...

The ' characters around the executable and arguments are
not part of the command.

    [javac] javac: invalid source release: 1.5
    [javac] Usage: javac <options> <source files>
    [javac] where possible options include:
    [javac]   -g                        Generate all debugging info
    [javac]   -g:none                   Generate no debugging info
    [javac]   -g:{lines,vars,source}    Generate only some debugging info
    [javac]   -nowarn                   Generate no warnings
    [javac]   -verbose                  Output messages about what the compiler
is doing
    [javac]   -deprecation              Output source locations where deprecated
 APIs are used
    [javac]   -classpath <path>         Specify where to find user class files
    [javac]   -sourcepath <path>        Specify where to find input source files

    [javac]   -bootclasspath <path>     Override location of bootstrap class fil
es
    [javac]   -extdirs <dirs>           Override location of installed extension
s
    [javac]   -d <directory>            Specify where to place generated class f
iles
    [javac]   -encoding <encoding>      Specify character encoding used by sourc
e files
    [javac]   -source <release>         Provide source compatibility with specif
ied release
    [javac]   -target <release>         Generate class files for specific VM ver
sion
    [javac]   -help                     Print a synopsis of standard options
    [javac]

[ERROR] BUILD FAILED
[ERROR] File...... file:/c:/java/maven/plugins/maven-java-plugin-1.2-SNAPSHOT/pl
ugin.jelly
[ERROR] Element... javac
[ERROR] Line...... 54
[ERROR] Column.... 48
--
To unsubscribe, e-mail:   <mailto:turbine-maven-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:turbine-maven-user-help@;jakarta.apache.org>

Reply via email to