You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bu...@apache.org on 2010/05/30 09:03:20 UTC

DO NOT REPLY [Bug 49356] javac task is ignoring source and target

https://issues.apache.org/bugzilla/show_bug.cgi?id=49356

J.M. (Martijn) Kruithof <jk...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO

--- Comment #1 from J.M. (Martijn) Kruithof <jk...@apache.org> 2010-05-30 03:03:18 EDT ---
Using the following build file


<?xml version="1.0"?>
<project default="test" name="test">

    <target name ="test">
        <delete dir="$basedir}/classes"/>
        <mkdir dir="${basedir}/classes/5f/"/>
        <mkdir dir="${basedir}/classes/6f/"/>
        <mkdir dir="${basedir}/classes/5nf/"/>
        <mkdir dir="${basedir}/classes/6nf/"/>
        <javac debug="on" 
                fork="true"
                source="1.5"
                target="1.5"
                destdir="${basedir}/classes/5f/" 
                srcdir="${basedir}/src"
                includeantruntime="false"/>
        <javac debug="on" 
                fork="true"
                destdir="${basedir}/classes/6f/" 
                srcdir="${basedir}/src"
            includeantruntime="false"/>
        <javac debug="on" 
                fork="false"
                source="1.5"
                target="1.5"
                destdir="${basedir}/classes/5nf/" 
                srcdir="${basedir}/src"
            includeantruntime="false"/>
        <javac debug="on" 
                fork="false"
                destdir="${basedir}/classes/6nf/" 
                srcdir="${basedir}/src"
            includeantruntime="false"/>
    </target>
</project>


classes in compiled to version 5: 0000000: cafe babe 0000 0031 
classes in compiled to version 6: 0000000: cafe babe 0000 0032
forking or not does not influence the result.

Are you sure the destination dir did not contain pre-compiled classes or
classes? / classes compiled by another target?


Please verify the above build file in your environment, and check whether the
problem is reproducible.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.