Forum LAMS for Tech-Heads - General Forum: Re: Ant compile the lams_central and lams_common source file fail!!!


 
Search: 

2: Re: Ant compile the lams_central and lams_common source file fail!!!
In response to 1 05/10/11 05:06 PM
[ Reply | Forward ]
Hi Leo,

I'm finding it hard to understand what you are trying to do. So if you could send me your code on email, I can have a look.

Thanks,

Ernie

Posted by Ernie Ghiglione

3: Re: Re: Ant compile the lams_central and lams_common source file fail!!!
In response to 2 05/12/11 02:12 AM
[ Reply | Forward ]
I add a method in LearningDesignDao.java:

public List getAllLearningDesignsInXtjy(){
  //here is nothing ,I just for a test
}

then add this method in ILearningDesignDao.java:

public List getAllLearningDesignsInXtjy();


at last I call this method in WorkspaceManagementService.java:

this.learningDesignDAO.getAllLearningDesignsInXtjy();

that's all,and I run the ant deploy-jar target. I get a compile
error :

[javac] F:\projects\trunk\src\lams2.3.4\lams_central\src\java\org\lamsfoundation\lams\workspace\service\WorkspaceManagementService.java:1253: Can not find symbol
    [javac] symbol: method getAllLearningDesignsInXtjy()
    [javac] position: interface org.lamsfoundation.lams.learningdesign.dao.ILearningDesignDAO
    [javac]         List<LearningDesign> list = this.learningDesignDAO.getAllLearningDesignsInXtjy();

Posted by leo luo

5: Re: Re: Re: Ant compile the lams_central and lams_common source file fail!!!
In response to 3 05/12/11 10:44 PM
[ Reply | Forward ]
Hi Leo,

This should works.

Just make sure you do a complete re-build:

cd /usr/local/lams2
cd lams_build/
ant rebuild-db
ant assemble-ear
ant deploy-ear
ant deploy-tools
ant copyfiles


Thanks,

Ernie

Posted by Ernie Ghiglione

4: Re: Re: Ant compile the lams_central and lams_common source file fail!!!mea
In response to 2 05/12/11 02:16 AM
[ Reply | Forward ]
means the ant compilter can't find the new method what I add.

Posted by leo luo

Reply to first post on this page
Back to LAMS for Tech-Heads - General Forum