Re: Compiling Cruisecontrol source

Zach <[email protected]>
Newsgroups gmane.comp.java.cruise-control.user
Message-ID <1258641715.2927.6.camel@saintmichelle>
Thank you for your reply.  Inside /usr/share/ant/lib I have both
junit.jar and ant-junit.jar.  I've specified this path with the -lib
flag, although it should already be in the path.  I also tried
adding /usr/share/java with -lib, since that's where the .jar was
originally, with the same result.

I ended up finding somewhere on the internet a 2.8.3 binary release.  I
don't think it's the official one, but it does contain the fixes for
some of the widgets and runs well on my machine.  I would like to solve
this building problem, though.

Zach

On Thu, 2009-11-19 at 18:37 +0530, Onkar Shinde wrote:
> On Wed, Nov 18, 2009 at 9:42 PM, Zach <[email protected]> wrote:
> > Since there hasn't been a recent release of Cruisecontrol with the
> > AntBuildOutput fixes, I'm attempting to compile from source.  I have ant
> > installed as well as JUnit.  When I try to compile ant (by running "ant"
> > in the source directory) I get an error:
> >
> > BUILD FAILED
> > /opt/cruisecontrol-src-trunk/cruisecontrol/build.xml:35: The following
> > error occurred while executing this line:
> > /opt/cruisecontrol-src-trunk/cruisecontrol/main/build.xml:325: The
> > following error occurred while executing this line:
> > /opt/cruisecontrol-src-trunk/cruisecontrol/main/loggers/build.xml:31:
> > Problem: failed to create task or type junit
> > Cause: the class org.apache.tools.ant.taskdefs.optional.junit.JUnitTask
> > was not found.
> >        This looks like one of Ant's optional components.
> > Action: Check that the appropriate optional JAR exists in
> >        -/usr/share/ant/lib
> >        -/home/cruisecontrol/.ant/lib
> >        -a directory added on the command line with the -lib argument
> >
> > I have ant-junit.jar and junit.jar in /usr/share/ant/lib
> > and /home/cruisecontrol/.ant/lib.  I've tried specifying the -lib
> > argument to both of these directories as well.  The machine is Fedora
> > Core 8.  Info on packages:
> > Ant:
> > Name   : ant
> > Arch   : i386
> > Version: 1.7.0
> > Release: 1jpp.2.fc8
> > Size   : 5.0 M
> > Repo   : installed
> > Summary: Ant build tool for java
> > Ant-nodeps:
> > Name   : ant-nodeps
> > Arch   : i386
> > Version: 1.7.0
> > Release: 1jpp.2.fc8
> > Size   : 1.6 M
> > Repo   : installed
> > Summary: Optional tasks for ant
> > JUnit:
> > Name   : junit
> > Arch   : i386
> > Version: 3.8.2
> > Release: 3jpp.3.fc8
> > Size   : 544 k
> > Repo   : installed
> > Summary: Java regression test package
> >
> > Any ideas?  Is there any way to disable the JUnit testing?
> 
> Is junit library in same directory as ant-junit.jar. If it isn't then
> you should either create a symlink or add the directory containing
> junit.jar to the classpath as well (-lib option).
> 
> Looking at the build.xml it looks like a build property
> test.skip(=true) should skip the unit tests.
> 
> 
> Onkar
> 
> ------------------------------------------------------------------------------
> 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
> _______________________________________________
> Cruisecontrol-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user



------------------------------------------------------------------------------
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.