jEdit Community - Resources for users of the jEdit Text Editor
Can't run ant buildfiles that use cpptasks from ant-contrib
Submitted by ilkka on Tuesday, 21 August, 2007 - 10:22
Hi, I'm having trouble using cpptasks in my Ant buildfiles in jEdit. The builds run fine when I run Ant from the command line or using standalone Antelope. When I try to use the AntFarm or Antelope plugins however, with either the Ant plugin or the standalone Ant, I get this error message (output is from Antelope but it's the same either way):
===== BUILD STARTED =====
BUILD FAILED
C:\workspaces\ ... \build.xml:7: Problem: failed to create task or type antlib:net.sf.antcontrib.cpptasks:compiler
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any / declarations have taken place.

This appears to be an antlib declaration. 
Action: Check that the implementing library exists in one of:
        -C:\apache-ant-1.7.0\lib
        -C:\Documents and Settings\USERNAME\.ant\lib
        -a directory added on the command line with the -lib argument Total time: 0 seconds ===== BUILD FINISHED ===== Tue Aug 21 11:58:51 EEST 2007
The required ant-contrib and cpptasks jars are in both the systemwide ant lib directory and in .ant\lib under my home directory. The tasks are imported into the buildfile using the antlib functionality, like this:
<?xml version="1.0"?>
<project name="blah"
	default="compile"
	xmlns:cpptasks="antlib:net.sf.antcontrib.cpptasks"
	xmlns:antcontrib="antlib:net.sf.antcontrib">
	
	<target name="compile">
		<cpptasks:cc ... >
		</cpptasks:cc>
	</target>
</project>
Any help greatly appreciated.
User login
Browse archives
« March 2024  
MoTuWeThFrSaSu
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Poll
Are you interested in language packs for jEdit?
Yes, and I could help maintain translations
26%
Yes, I'd like to have translations
32%
Indifferent
35%
No, that'd be bad (please comment)
7%
Total votes: 1093
Syndication
file   ver   dls
German Localization light   4.4.2.1   82339
Context Free Art (*.cfdg)   0.31   46046
JBuilder scheme   .001   18487
BBEdit scheme   1.0   18108
ColdFusion scheme   1.0   18016
R Edit Mode - extensive version   0.1   17465
Advanced HTML edit mode   1.0   16198
Matlab Edit Mode   1.0   16060
jEdit XP icons   1.0   15221
XP icons for jEdit   1.1   14285