[ant-contrib - Help] RE: Problem: failed to create task or type cc
"SourceForge.net" <[email protected]> Thu, 25 Oct 2007 09:47:29 -0700
| Newsgroups | gmane.comp.java.ant-contrib.devel |
|---|---|
| Message-ID | <[email protected]> |
Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=4588103
By: sharadb
Thanks for the quick reply.
After I included the above target I get errors:
1) Could not load definitions from resource org/apache/tools/ant/antlib.xml.
It could not be found
2) Could not launch cl: java.io.IOException: CreateProcess: cl /c /nologo /DNDEBUG
/MD C:\Ant\hello.cpp error=2
I later used apache-ant-1.6.5, and the first issue was resolved, probably the
antlib.xml is not present in the apache-ant-1.7.0 version.
But I am facing the below issue now.
C:\Ant>ant -verbose -noclasspath
Apache Ant version 1.6.5 compiled on June 2 2005
Buildfile: build.xml
Detected Java version: 1.4 in: C:\j2sdk1.4.2_16\jre
Detected OS: Windows XP
parsing buildfile C:\Ant\build.xml with URI = file:///C:/Ant/build.xml
Project base dir set to: C:\Ant
Build sequence for target(s) `hello' is [cpptasks, init, hello]
Complete build sequence is [cpptasks, init, hello, ]
cpptasks:
parsing buildfile
jar:file:/C:/Ant/lib/cpptasks.jar!/net/sf/antcontrib/cpptasks/
antlib.xml with URI =
jar:file:/C:/Ant/lib/cpptasks.jar!/net/sf/antcontrib/cppta
sks/antlib.xml
init:
hello:
[cc] 1 total files to be compiled.
[cc] cl /c /nologo /DNDEBUG /MD C:\Ant\hello.cpp
BUILD FAILED
C:\Ant\build.xml:19: Could not launch cl: java.io.IOException: CreateProcess:
cl
/c /nologo /DNDEBUG /MD C:\Ant\hello.cpp error=2
at net.sf.antcontrib.cpptasks.CUtil.runCommand(CUtil.java:363)
at net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler.runCommand(Co
mmandLineCompiler.java:432)
at net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler.compile(Comma
ndLineCompiler.java:202)
at net.sf.antcontrib.cpptasks.compiler.CommandLineCompilerConfiguration.
compile(CommandLineCompilerConfiguration.java:133)
at net.sf.antcontrib.cpptasks.CCTask.execute(CCTask.java:702)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
cutor.java:40)
at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at org.apache.tools.ant.Main.runBuild(Main.java:668)
at org.apache.tools.ant.Main.startAnt(Main.java:187)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
Total time: 0 seconds
Would appreciate if anyone can help me with this.
Thanks,
Sharad.
______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit:
https://sourceforge.net/forum/unmonitor.php?forum_id=113701
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/