[prev in list] [next in list] [prev in thread] [next in thread]
List: mifos-developer
Subject: Re: [Mifos-developer] FW: Question about setting up MIFOS
From: "Kiran Chakravarthy" <kiranc () aditi ! com>
Date: 2006-06-27 14:17:07
Message-ID: 36A41529D41B654CAB688AF7676200EC01F4F3EC () blrsnrmsg00 ! aditi ! tech
[Download RAW message or body]
bill benac wrote:
> >
> > I've encountered an error while building the SVN-obtained
> > code in eclipse.v.312. A month ago I saw the same error while
> > building older CVS-obtained code with eclipse.v.213. It
> > appears this bug is widely encountered in other projects:
> > http://issues.apache.org/bugzilla/show_bug.cgi?id=6606. The
> > output when I right-click build.xml and run ant is:
> >
> > ------------------
> > Buildfile: C:\docs\mifos\code\build.xml
> >
> > BUILD FAILED
> > C:\docs\mifos\code\build.xml:40: taskdef A class needed by
> > class org.apache.tools.ant.taskdefs.optional.junit.JUnitTask
> > cannot be found: junit/framework/Test
> >
Yes this is related to the above mentioned bug, the ant-junit.jar is to
be removed from the lib folder of the ant installation. Ant would then
find ant-junit.jar and junit.jar in the mifos lib folder itself.
> >
> > Well, that looks like an issue with the build.xml or my usage
> > of it. If I just try looking at how well Eclipse does
> > building within the IDE, I see some different issues. Eclipse
> > is in Java Perspective, and I see the red x icon on both the
> > src and test folders. The problems in the test folder are
> > caused by trying to run some tests for classes that appear
> > not to exist. Below I show the files with the problems and
> > the tests I needed to comment out::
> >
> > /mifos/test/org/mifos/framework/components/cronjob/CronjobTest
> > Suite.java
> > //testSuite.addTestSuite(TestSavingsIntCalcHelper.class);
> > //testSuite.addTestSuite(TestSavingsIntPostingHelper.class);
> > /mifos/test/org/mifos/framework/components/ComponentsTestSuite.java
> > // testSuite.addTestSuite(TestScheduler.class);
> >
> > The problems in the src folder are as follows:
> >
> > /mifos/src/org/mifos/application/accounts/business/AccountBO.java
> > import org.mifos.framework.util.helpers.DateUtils;
> >
> > That import does not resolve, so later methods in this file
> > such as relying on it fail such as:
> >
> > ------------------
> > protected boolean isCurrentDateEquallToInstallmentDate() {
> > for (AccountActionDateEntity accountActionDateEntity
> > : getAccountActionDates()) {
> > if (accountActionDateEntity.getPaymentStatus().equals(
> > AccountConstants.PAYMENT_UNPAID)) {
> > if (accountActionDateEntity
> >
> > .compareDate(DateUtils.getCurrentDateWithoutTimeStamp()) == 0) {
> > return true;
> > }
> > }
> > }
> > return false;
> > }
> > ------------------
> >
> > But the getCurrentDateWithoutTimeStamp() fails since it can't
> > find DateUtils.
> >
The latest code from SVN(java.net- src and test) compiles fine through
Eclipse IDE, could you try a complete checkout again and let us know in
case you still have problems.
kiran
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic