JDT batch compiler with Cruise-Control ANT

TKO <[email protected]>
Newsgroups gmane.comp.java.cruise-control.user
Message-ID <[email protected]>
Hello,
I am relatively new to Cruise-Control and I am playing around with it, but
now I am stuck to a problem:
I want to use the JDT batch compiler in an ant script which is started from
Cruise-Control. It it working when I start the ant script outside from
Cruise-Control, using the installed ant on my computer. To get it work I had
to add the property
    <property name="build.compiler"
value="org.eclipse.jdt.core.JDTCompilerAdapter" />
and to add the Compiler jar ecj-3.4.jar to my ants lib directory. 

Now when I try the same from Cruise-Control, I keep getting the error
message: (begin of stack trace)
Caused by: E:\build_cc.xml:83: Class not found:
org.eclipse.jdt.core.JDTCompilerAdapter
	at
org.apache.tools.ant.util.ClasspathUtils.newInstance(ClasspathUtils.java:277)
	at
org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.resolveClassName(CompilerAdapterFactory.java:171)
	at
org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler(CompilerAdapterFactory.java:136)
	at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:990)
	at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:820)

I noticed that Cruise-Control has its own ant in the programm directory, and
I also added ecj-3.4.jar to the ant lib dir of Cruise-Control, but obviously
this didn't do the trick. I also tried to add it directly to Cruise-Controls
lib directory, but then I got the error message 

E:\build_cc.xml:83: java.lang.NoSuchFieldError: EMPTY_STRING
	at
org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:541)
	at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:418)
	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
	at org.apache.tools.ant.Task.perform(Task.java:348)
	at org.apache.tools.ant.Target.execute(Target.java:357)

Does anyone have an idea what I am doing wrong...?

Greetings, 
Thorsten


-- 
View this message in context: http://www.nabble.com/JDT-batch-compiler-with-Cruise-Control-ANT-tp25080108p25080108.html
Sent from the CruiseControl - User mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.