有什么不对的蚂蚁路径? [英] What's wrong with this Ant path?

查看:162
本文介绍了有什么不对的蚂蚁路径?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

注意:虽然这个问题的包括的GWT,这是一个真正的的蚂蚁的问题。所有我问的是:是蚂蚁路径下面我有一个合法的路径

Note: even though this question involves GWT, it's really an Ant question. All I'm asking is: is the Ant PATH that I have below a "legal" path?

我收到 ClassNotFoundExceptions 的类型( com.google.gwt.dev.Compiler ),被打包 GWT-dev.jar 内(其中你可以看到被配置为下面的道路上)。请问 gwt.path 看错任何人:

I am getting ClassNotFoundExceptions on a type (com.google.gwt.dev.Compiler) that is packaged inside gwt-dev.jar (which as you can see is configured to be on the path below). Does the gwt.path look wrong to anyone:

<path id="gwt.path">
    <pathelement location="${gen.bin.main.dir}"/>
    <fileset dir="${gen.lib.main.dir}">
        <filename name="gin-2.1.2.jar"/>
        <filename name="guice-3.0.0.jar"/>
        <filename name="guice-assistedinject-3.0.0.jar"/>
        <filename name="gwt-bootstrap-2.2.2.jar"/>
        <filename name="gwt-bootstrap-sources-2.2.2.jar"/>
        <filename name="gwt-dev.jar"/>
        <filename name="gwt-user.jar"/>
        <filename name="javax-inject-1.0.0.jar"/>
        <filename name="requestfactory-apt.jar"/>
        <filename name="requestfactory-client+src.jar"/>
        <filename name="validation-api-1.0.0.GA.jar"/>
        <filename name="validation-api-1.0.0.GA-sources.jar"/>
    </fileset>
</path>

如果现在那么我将寻求其他途径。

If now then I will explore other avenues.

推荐答案

要查看是否有蚂蚁路径是否正确使用Ant的触摸命令:

To see if an ant path is correct use the ant touch command:

<touch file="myfile"/>

这是类似于UNIX touch命令,并应建立在该路径名为myfile的空文件,如果路径是正确的。

This is similar to the unix touch command and should create an empty file named myfile in that path, if the path is correct.

在这种情况下,你想一些罐子添加到类路径?在这种情况下,你应该使用类路径中的元素,而不是路径。

In this case, are you trying to add some jars to the classpath? In that case you should use the classpath element and not path.

这篇关于有什么不对的蚂蚁路径?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆