当前位置: 代码迷 >> JBoss >> 用ant 编译 openacs开源软件时出现的有关问题jboss-4.2.2.GA\server\default\lib not found
  详细解决方案

用ant 编译 openacs开源软件时出现的有关问题jboss-4.2.2.GA\server\default\lib not found

热度:10719   发布时间:2013-02-26 00:00:00.0
用ant 编译 openacs开源软件时出现的问题jboss-4.2.2.GA\server\default\lib not found.
用 ant编译编译开源软件openacs时出错.
D:\work\skyhopper\acs_server\openacs-src-0.3\openacs>ant
Buildfile: build.xml

make:

make:

make:
    [javac] Compiling 114 source files to D:\work\skyhopper\acs_server\openacs-s
rc-0.3\openacs\acs-ejb\build\jar

BUILD FAILED
D:\work\skyhopper\acs_server\openacs-src-0.3\openacs\build.xml:13: The following
 error occurred while executing this line:
D:\work\skyhopper\acs_server\openacs-src-0.3\openacs\acs-war\b.xml:9: The follow
ing error occurred while executing this line:
D:\work\skyhopper\acs_server\openacs-src-0.3\openacs\acs-ejb\b.xml:24: C:\Progra
m Files\jboss-4.2.2.GA\server\default\lib not found.

Total time: 0 seconds

////////////////
acs-ejb\b.xml如下
<?xml version="1.0" encoding="UTF-8"?>
<project basedir="." default="make" name="acs-war-impl">
    <property file="../build.properties"/>
    
    <target name="clean">
        <delete dir="build"/>
        <delete dir="dist"/>
    </target>
    <target name="make">
        <mkdir dir="build"/>
        <mkdir dir="build/jar"/>
        <copy todir="build/jar/META-INF">
            <fileset dir="src/conf"/>
        </copy>
        <mkdir dir="build/jar/META-INF/wsdl"/>
        <manifest file="build/jar/META-INF/MANIFEST.MF" mode="update">
            <attribute name="Class-Path" value="js.jar"/>
        </manifest>

        <taskdef classname="com.sun.xml.rpc.tools.ant.Wscompile" name="wscompile">
            <classpath path="${wscompile.lib}"/>
        </taskdef>
        
        <javac destdir="build/jar" fork="yes" includeantruntime="false" srcdir="src/java" target="1.5"  debug="on">
            <classpath>
                <fileset dir="${j2ee.lib}"> <include name="**/*.jar"/> </fileset> 
                <fileset dir="lib"> <include name="**/*.jar"/> </fileset> 
                <path path="@{classpath}"/>
            </classpath>
            <compilerarg line="-Xlint:unchecked"/> 
        </javac>
  相关解决方案