首页 \ 问答 \ Ant在javac没有消息就失败了(Ant fails without message at javac)

Ant在javac没有消息就失败了(Ant fails without message at javac)

我编写了一个Ant build.xml文件,它通过WSDL获取了许多源文件并编译它们。 这些系统一直处理旧的,现在被破坏(因此无法进行比较)的系统,但是在这个更新,更快的系统上,构建过程没有完成。

构建文件的相关部分如下所示(已更新):

<target name="obtain-files">
  <java classname="org.apache.axis.wsdl.WSDL2Java">
    <arg line="--all --server-side --skeletonDeploy --factory --wrapArrays --output src ${srcurl}" />
  </java>
</target>

<target name="compile" depends="obtain-files">
  <javac srcdir="${src}" destdir="${build}" verbose="yes" />
</target>

成功通过WSDL服务下载/创建.java文件,但在此之后,Ant只会停止并返回命令行。

相关应用的版本:

# java -version
java version "1.6.0_14"
Java(TM) SE Runtime Environment (build 1.6.0_14-b08)
Java HotSpot(TM) 64-Bit Server VM (build 14.0-b16, mixed mode)
# javac -version
javac 1.6.0_14
# ant -version
Apache Ant version 1.6.5 compiled on January 6 2007

我假设有一个问题,javac Ant没有传回来。 有什么方法可以从javac获取一些调试信息吗? 我已经尝试将<record />标记添加到目标但是这不会提供比运行ant -v更多的信息。

任何其他建议也会很棒!


I've written an Ant build.xml file which obtains a number of source files via WSDL and compiles them. These have been working on an old, now destroyed (and therefore unavailable for comparison), system but the build process isn't completing on this newer, faster system.

The relevant section of the build file looks like this (updated):

<target name="obtain-files">
  <java classname="org.apache.axis.wsdl.WSDL2Java">
    <arg line="--all --server-side --skeletonDeploy --factory --wrapArrays --output src ${srcurl}" />
  </java>
</target>

<target name="compile" depends="obtain-files">
  <javac srcdir="${src}" destdir="${build}" verbose="yes" />
</target>

The .java files are downloaded/created via the WSDL service successfully, however after that point Ant simply stops & returns to the commandline.

Versions of the relevant apps:

# java -version
java version "1.6.0_14"
Java(TM) SE Runtime Environment (build 1.6.0_14-b08)
Java HotSpot(TM) 64-Bit Server VM (build 14.0-b16, mixed mode)
# javac -version
javac 1.6.0_14
# ant -version
Apache Ant version 1.6.5 compiled on January 6 2007

I'm assuming that there's a problem with javac that Ant isn't passing back. Is there any way I can get some debugging information from javac? I've tried adding a <record /> tag to the target but that doesn't give any more information than running ant -v does.

Any other suggestions would be great, also!


原文:https://stackoverflow.com/questions/2789549
更新时间:2021-09-01 06:09

最满意答案

如果Boost很好,请查看Boost.Filesystem的create_directory()


If Boost is fine, take a look at create_directory() from Boost.Filesystem.

相关问答

更多
  • 1)你真正的目标应该是编写可移植的C ++ - 通过保持语言清洁而不是使用特定的编译器来获得可移植性。 2)你想要的一些东西,比如音频i / o,本身就是平台依赖的。 但是,您可以干净地隔离特定模块中的平台依赖项,并在每个平台上有条件地编译一组平台支持文件。 3)多线程之类的东西可以使用标准库以独立于平台的方式完成。 1) Your real goal here should be to write portable C++ -- you get portability by keeping your la ...
  • 那将是tempfile模块。 它具有获取临时目录的功能,并且还具有创建临时文件和目录的一些快捷方式,命名或未命名。 例: import tempfile print tempfile.gettempdir() # prints the current temporary directory f = tempfile.TemporaryFile() f.write('something on temporaryfile') f.seek(0) # return to beginning of file p ...
  • 解决方案是直接调用bash : "d-copy-aws": "bash -c \"docker cp ~/.aws constraint-listener:/root\" && echo aws credentials copied", Solution is to call bash directly: "d-copy-aws": "bash -c \"docker cp ~/.aws constraint-listener:/root\" && echo aws credentials copied" ...
  • 对于大多数项目使用标准C或C ++。 必要时仅使用平台特定的功能。 如果可能的话,将这些文件放入独立文件的包装中,以便构建(makefile)可以用正确的版本替换适当的平台。 避免使用#ifdef LINUX或#ifdef WINDOWS或类似的条件编译。 那些真的很难调试,并且当关键字没有提供给编译器时容易出错。 Use standard C or C++ for most of the project. Only use platform specific functions when necessar ...
  • 过了一段时间,我可以回答我自己的问题。 至少在我的情况下,使用C ++中的OpenGL更方便。 我们刚从C ++代码构建了一个共享库,并使用DllImport将其链接到.NET dll。 我们用于构建C ++库的工具是CMake,但是您可以使用其他构建系统,例如VS2015的新功能。 此解决方案的一个特别好处是您可以在其他任何地方重用此代码:iOS应用程序,Windows桌面应用程序,Mac,Linux等。 After some time I can answer my own question. At l ...
  • 你需要一个#define才能做到这一点。 为了使代码看起来干净,您需要使用一个定义Linux函数的代码,以便在编译Windows时转换为等效的Windows函数。 在源文件的顶部,您将在Windows特定部分中具有此功能: #include #define mkdir(dir, mode) _mkdir(dir) 然后你可以调用这样的函数: mkdir("/tmp/mydir", 0755); 以下是其他一些可能有用的内容: #define open(name, ...) _o ...
  • 如果Boost很好,请查看Boost.Filesystem的create_directory() 。 If Boost is fine, take a look at create_directory() from Boost.Filesystem.
  • 这可以通过更新xamarin并在VS中使用SDK路径的快捷方式来解决 this is resolved by updating the xamarin and using shortcuts for the SDK path in VS
  • 就像这样的东西而言 - 你没有。 或者至少,你尽量不去。 如果你最终需要使用GUI,你会想要跨平台的东西(我很确定Qt有很好的跨平台支持,wxWidgets也可能)。 无论哪种方式,您的目标是尽可能多地编写标准C ++代码,并尽可能少地调用系统库/ API。 如果最终需要使用系统API,请将它们包装在函数中,并在这些函数中使用#ifdef以确保您调用正确的API。 通常,您的编译器将提供一些宏,使您可以在一定程度上确定正在运行的操作系统,以及32位与64位。 void DoSometh ...
  • 当我从“android-ndk-r14b”切换到“android-ndk-r13b”时,我遇到了同样的问题并且可以解决它。 也许它适用于旧版本的Android NDK,但我还没试过。 我的猜测是来自“android-ndk-r14b”的“clang.exe”版本需要在文件路径中反斜杠之前的转义符号 - “C:\\ Users \\ Documents ...”而不是“C:\ Users \ Documents ......” I faced the same problem and could resolv ...

相关文章

更多

最新问答

更多
  • 获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)
  • 如何通过引用返回对象?(How is returning an object by reference possible?)
  • 矩阵如何存储在内存中?(How are matrices stored in memory?)
  • 每个请求的Java新会话?(Java New Session For Each Request?)
  • css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)
  • 无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)
  • xcode语法颜色编码解释?(xcode syntax color coding explained?)
  • 在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)
  • 从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)
  • 从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))
  • 西安哪有PLC可控制编程的培训
  • 在Entity Framework中选择基类(Select base class in Entity Framework)
  • 在Android中出现错误“数据集和渲染器应该不为null,并且应该具有相同数量的系列”(Error “Dataset and renderer should be not null and should have the same number of series” in Android)
  • 电脑二级VF有什么用
  • Datamapper Ruby如何添加Hook方法(Datamapper Ruby How to add Hook Method)
  • 金华英语角.
  • 手机软件如何制作
  • 用于Android webview中图像保存的上下文菜单(Context Menu for Image Saving in an Android webview)
  • 注意:未定义的偏移量:PHP(Notice: Undefined offset: PHP)
  • 如何读R中的大数据集[复制](How to read large dataset in R [duplicate])
  • Unity 5 Heighmap与地形宽度/地形长度的分辨率关系?(Unity 5 Heighmap Resolution relationship to terrain width / terrain length?)
  • 如何通知PipedOutputStream线程写入最后一个字节的PipedInputStream线程?(How to notify PipedInputStream thread that PipedOutputStream thread has written last byte?)
  • python的访问器方法有哪些
  • DeviceNetworkInformation:哪个是哪个?(DeviceNetworkInformation: Which is which?)
  • 在Ruby中对组合进行排序(Sorting a combination in Ruby)
  • 网站开发的流程?
  • 使用Zend Framework 2中的JOIN sql检索数据(Retrieve data using JOIN sql in Zend Framework 2)
  • 条带格式类型格式模式编号无法正常工作(Stripes format type format pattern number not working properly)
  • 透明度错误IE11(Transparency bug IE11)
  • linux的基本操作命令。。。