Summary: | kdevelop applies CLASSPATH to cd instead of ant on a java Project | ||
---|---|---|---|
Product: | [Applications] kdevelop | Reporter: | Stephen Leaf <smileaf> |
Component: | general | Assignee: | kdevelop-bugs-null |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | greg_g |
Priority: | NOR | ||
Version: | 3.1.2 | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Attachments: | Move the classpath to the right hand side. |
Description
Stephen Leaf
2005-03-04 14:38:24 UTC
Wow, what a schoolboy error this is. :-) I can confirm that it is an accurate report. For anyone that isn't wised up on ant you can get around this temporarily by editing your build.xml file. So, instead (or as well as, so that it works when kdevelop gets fixed) of setting your classpath in the classpath tab, edit build.xml and put in a property line like this: <property name="classpath" location="/home/douglas/sunxacml-1.2/src/sunxacml/build/classes" /> but obviously putting in your classpaths instead of mine and also edit the javac line with a classpath element so it reads something like this: <javac srcdir="${src}" destdir="${build}" classpath="${classpath}"/> Created attachment 12002 [details]
Move the classpath to the right hand side.
This patch simply moves the CLASSPATH="stuff" to the right hand side of the &&
following the cd command.
Can this be applied? Thanks. SVN commit 471757 by mattr: Fix bug 100813. put CLASSPATH in the right place BUG: 100813 M +2 -2 antprojectpart.cpp --- branches/KDE/3.5/kdevelop/buildtools/ant/antprojectpart.cpp #471756:471757 @@ -431,7 +431,7 @@ void AntProjectPart::ant(const QString &target) { - QString cmd = "%0 cd %1 && ant %2 -buildfile %3 %4 %5"; + QString cmd = "cd %0 && %1 ant %2 -buildfile %3 %4 %5"; QString verb = ""; switch (m_antOptions.m_verbosity) @@ -457,7 +457,7 @@ if (!m_classPath.count() == 0) cp = "CLASSPATH="+m_classPath.join(":"); - makeFrontend()->queueCommand(m_projectDirectory, cmd.arg(cp).arg(m_projectDirectory).arg(target).arg(m_antOptions.m_buildXML).arg(verb).arg(options)); + makeFrontend()->queueCommand(m_projectDirectory, cmd.arg(m_projectDirectory).arg(cp).arg(target).arg(m_antOptions.m_buildXML).arg(verb).arg(options)); } |