Luke, thank you very much for your help!
By defaul i have this string in my windows.properties file: j2eelibs=${jboss.home}/common/lib
But this dir does not exist:
Microsoft Windows XP [Версия 5.1.2600]
(С) Корпорация Майкрософт, 1985-2001.
>cd C:\tool_adapters\moodle\lams_tool_mdlassignment
C:\tool_adapters\moodle\lams_tool_mdlassignment>ant deploy-tool
Buildfile: C:\tool_adapters\moodle\lams_tool_mdlassignment\build.xml
generate-hbm-files:
BUILD FAILED
C:\tool_adapters\moodle\lams_tool_mdlassignment\build.xml:239: c:\lams\jboss-4.0.2\common\lib does not exist.
Total time: 0 seconds
Then i put j2eelibs=${jboss.home}/lib and run ant again:
Buildfile: C:\tool_adapters\moodle\lams_tool_mdlassignment\build.xml
generate-hbm-files:
[echo] Building hbm.xml files using XDoclet
[hibernatedoclet] - Running <hibernate/>
[hibernatedoclet] Generating mapping file for org.lamsfoundation.lams.tool.mdasgm.model.MdlAssignmentUser.
[hibernatedoclet] org.lamsfoundation.lams.tool.mdasgm.model.MdlAssignmentUser
[hibernatedoclet] Generating mapping file for org.lamsfoundation.lams.tool.mdasgm.model.MdlAssignmentSession.
[hibernatedoclet] org.lamsfoundation.lams.tool.mdasgm.model.MdlAssignmentSession
[hibernatedoclet] Generating mapping file for org.lamsfoundation.lams.tool.mdasgm.model.MdlAssignment.
[hibernatedoclet] org.lamsfoundation.lams.tool.mdasgm.model.MdlAssignment
clean-build:
[delete] Deleting directory C:\tool_adapters\moodle\lams_tool_mdlassignment\build\classes\java
[delete] Deleting directory C:\tool_adapters\moodle\lams_tool_mdlassignment\build\classes\test\java
[delete] Deleting directory C:\tool_adapters\moodle\lams_tool_mdlassignment\build\lib
[delete] Deleting directory C:\tool_adapters\moodle\lams_tool_mdlassignment\build\deploy
[mkdir] Created dir: C:\tool_adapters\moodle\lams_tool_mdlassignment\build\classes\java
[mkdir] Created dir: C:\tool_adapters\moodle\lams_tool_mdlassignment\build\classes\test\java
[mkdir] Created dir: C:\tool_adapters\moodle\lams_tool_mdlassignment\build\lib
[mkdir] Created dir: C:\tool_adapters\moodle\lams_tool_mdlassignment\build\deploy
compile-java:
[javac] C:\tool_adapters\moodle\lams_tool_mdlassignment\build.xml:96: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
[javac] Compiling 30 source files to C:\tool_adapters\moodle\lams_tool_mdlassignment\build\classes\java
[javac] C:\tool_adapters\moodle\lams_tool_mdlassignment\src\java\org\lamsfoundation\lams\tool\mdasgm\service\MdlAssignmentOutputFactory.java:37: org.lamsfoundation.lams.tool.mdasgm.service.MdlAssignmentOutputFactory is not abstract and does not override abstract method getToolOutputDefinitions(java.lang.Object,int) in org.lamsfoundation.lams.tool.OutputFactory
[javac] public class MdlAssignmentOutputFactory extends OutputFactory {
[javac] ^
[javac] C:\tool_adapters\moodle\lams_tool_mdlassignment\src\java\org\lamsfoundation\lams\tool\mdasgm\service\MdlAssignmentService.java:97: org.lamsfoundation.lams.tool.mdasgm.service.MdlAssignmentService is not abstract and does not ove
rride abstract method getSupportedToolOutputDefinitionClasses(int) in org.lamsfoundation.lams.tool.ToolContentManager
[javac] public class MdlAssignmentService implements ToolSessionManager, ToolAdapterContentManager, IMdlAssignmentService,
[javac] ^
[javac] C:\tool_adapters\moodle\lams_tool_mdlassignment\src\java\org\lamsfoundation\lams\tool\mdasgm\service\MdlAssignmentService.java:621: warning: [deprecation] readLine() in java.io.DataInputStream has been deprecated
[javac] String str = inStream.readLine();
[javac] ^
[javac] 2 errors
[javac] 1 warning
BUILD FAILED
C:\tool_adapters\moodle\lams_tool_mdlassignment\build.xml:96: Compile failed; se
e the compiler error output for details.
Total time: 11 seconds
Thanks again!
Posted by Alex Lifanov