Bug 76919 - ANT ignores CLASSPATH from project settings
Summary: ANT ignores CLASSPATH from project settings
Status: RESOLVED INTENTIONAL
Alias: None
Product: kdevelop
Classification: Applications
Component: Build tools: ANT (show other bugs)
Version: 3.0.1
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: KDevelop Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-07 05:05 UTC by Autumn
Modified: 2008-07-05 21:42 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Autumn 2004-03-07 05:05:40 UTC
Version:           3.0.1 (using KDE 3.1.5)
Installed from:     (testing/unstable)
Compiler:          gcc version 3.3.3 20031229 (prerelease) (Debian)
OS:          Linux (i686) release 2.4.24-1-686-smp

For ANT projects only, the value of the CLASSPATH dialog is ignored at buildtime.

KDevelop sets CLASSPATH prior to calling ANT, which sets an overriding value.  In the output below, I have added an
    <echo> ecp = ${env.CLASSPATH}"</echo>
to the <target name=compile> section of build.xml.

*CLASSPATH=/home/aumanetz/data/dev/robocode/robocode.jar cd /home/aumanetz/kdd && ant dist -buildfile build.xml -verbose  

<snip>
*[echo] ecp = /usr/share/ant/lib/ant-optional.jar:/usr/share/ant/lib/ant.jar:/usr/share/ant/lib/antlr.jar:/usr/share/ant/lib/bsf.jar:/usr/share/ant/lib/jdepend.jar:/usr/share/ant/lib/junit.jar:/usr/share/ant/lib/jython.jar:/usr/share/ant/lib/log4j-1.2.jar:/usr/share/ant/lib/oro.jar:/usr/share/ant/lib/regexp.jar:/usr/share/ant/lib/xalan2.jar:/usr/share/ant/lib/xercesImpl.jar:/usr/share/ant/lib/xmlParserAPIs.jar:/usr/lib/j2se/1.4//lib/tools.jar"

<snip>

*[javac] Using modern compiler 
*[javac] Compilation arguments: 
*[javac] '-d' 
*[javac] '/home/aumanetz/kdd/build' 
*[javac] '-classpath' 
*[javac] '/home/aumanetz/kdd/build:/usr/share/ant/lib/ant-optional.jar:/usr/share/ant/lib/ant.jar:/usr/share/ant/lib/antlr.jar:/usr/share/ant/lib/bsf.jar:/usr/share/ant/lib/jdepend.jar:/usr/share/ant/lib/junit.jar:/usr/share/ant/lib/jython.jar:/usr/share/ant/lib/log4j-1.2.jar:/usr/share/ant/lib/oro.jar:/usr/share/ant/lib/regexp.jar:/usr/share/ant/lib/xalan2.jar:/usr/share/ant/lib/xercesImpl.jar:/usr/share/ant/lib/xmlParserAPIs.jar:/usr/lib/j2se/1.4/lib/tools.jar' 
*[javac] '-sourcepath' 
*[javac] '/home/aumanetz/kdd' 
*[javac] '-g:none'
Comment 1 Andreas Pakulat 2008-07-05 21:42:43 UTC
ant support is dead since a long time, this won't get fixed.