开发者

Ant script with dependencies

开发者 https://www.devze.com 2023-02-07 17:48 出处:网络
I have a project in Java EE that includes classes from other project . I tried adding the classes that are used in this project directly.

I have a project in Java EE that includes classes from other project . I tried adding the classes that are used in this project directly. These classes are created in the folder with a javac command just before the javac for the module which I am trying to build.

When I looked at the error the error contains the classes in CTDUtility.bin path. How can I get it done?

    <fileset dir="${CTDUtility.bin}">
        <include name="**/*.class"/>
    </fileset>  

    </开发者_Python百科javac>

Thanks in advance


When defining the classpath, you only need to provide the directory containing the classes, not the class files themselves.

e.g.

<path id="compile.classpath">
     <pathelement location="${CTDUtility.bin}" />
</path>
0

精彩评论

暂无评论...
验证码 换一张
取 消