ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matthias P. <groups.mpat...@gmx.de>
Subject Javac fails w. debuginfo
Date Mon, 18 Aug 2003 16:55:58 GMT
Hi,

running my buildscript on my local maschine works, running it on my
buildserver fails.

I guess because of the difference javac-versiond

local maschine: 1.4
buildserver 1.3

Here is the error message
---snip---
    [javac]    
D:\mif\buildbase\src\main\MIFCommon\de\t_systems\cfas\common\valuemodel\BaseObject.java
    [javac]    
D:\mif\buildbase\src\main\MIFCommon\de\t_systems\cfas\common\valuemodel\PropertyChangeable.java
    [javac]    
D:\mif\buildbase\src\main\MIFCommon\de\t_systems\cfas\common\valuemodel\ValueReference.java
    [javac] javac: invalid flag: -g:lines,var,source
    [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]   -O                        Optimize; may hinder debugging or
enlarge class file
    [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
files
    [javac]   -extdirs <dirs>           Override location of installed
extensions
    [javac]   -d <directory>            Specify where to place generated
class files
    [javac]   -encoding <encoding>      Specify character encoding used by
source files
    [javac]   -target <release>         Generate class files for specific VM
version


BUILD FAILED
file:D:/MIF/buildbase/build.xml:185: 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)
---end snip---

Here is the propertyenty: 
---snip---
  <property name="build.compiler" value="javac1.3"/>
  <property name="build.debug" value="on"/> 
  <property name="build.debuglevel" value="lines,var,source"/>
---end snip---

Here the compiletask
---snip---
    <javac srcdir="${src.xxx.dir}"
           destdir="${build.xxx.dir}"
           debug="${build.debug}" 
           debuglevel="${build.debuglevel}">
      <classpath refid="compile.xxx.classpath"/>
    </javac>
---end snip---

Is there an error because of the different javac-versions? Or something
else?

Matthias

-- 
COMPUTERBILD 15/03: Premium-e-mail-Dienste im Test
--------------------------------------------------
1. GMX TopMail - Platz 1 und Testsieger!
2. GMX ProMail - Platz 2 und Preis-Qualit├Ątssieger!
3. Arcor - 4. web.de - 5. T-Online - 6. freenet.de - 7. daybyday - 8. e-Post


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message