开发者

Ant script with dependencies

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜