English 中文(简体)
在单独的 JVM 中运行目标
原标题:Run a target in a separate JVM
  • 时间:2012-05-24 21:03:11
  •  标签:
  • ant
  • exec

在 Wsimport 任务中有一个有趣的错误, 它似乎会随着任务完成而摧毁一个类加载器的内容。 NetBeans 喜欢在操作过程中运行蚂蚁脚本, 而这个错误在运行包含任务脚本后引起各种破坏 。

为了解决由虫子造成的破坏, 我想强迫蚂蚁建立一个单独的子程序, 用于二次援引蚂蚁,

看来"ant"和"antcall"的任务 使得目标的援引 在同一JVM... 虽然我可能错了。

在用户可能有多个蚂蚁装置的情况下, 执行似乎笨拙, 因为用户正在运行的蚂蚁可能不是当蚂蚁试图找到可执行文件时解决的可执行文件 。

是否有一种安全的方法可以安全地获取目前用来在不同的JVM中运行目标的蚂蚁?

最佳回答

您可以使用 ant. home 属性的值 。

<project default="test">
    <target name="test">
        <echoproperties>
            <propertyset>
                <propertyref prefix="ant."/>
            </propertyset>
        </echoproperties>
        <echo>Ant Home: ${ant.home}</echo>
    </target>
</project>
问题回答

暂无回答




相关问题
i want to continously run my java threads

I am running my java application where i have used threads... i am running this application using ant command on the terminal.. But when i close my terminal or press ctrl+c,then java program which was ...

Subant targets instead of ant

I m having a problem with subant and have no ideas any more. Can anyone help? Using Ant to replace some strings for other (i.e Productname and Version for "Foo" and "1.2") I used ...

java ant buildfile for project with dependencies

I am new to ant, but am trying to create an ant script that builds my current proeject with another project as a dependency. I have the ant script building my current project, but am unsure how to add ...

Building Apache Hive - impossible to resolve dependencies

I am trying out the Apache Hive as per http://wiki.apache.org/hadoop/Hive/GettingStarted and am getting this error from Ivy: Downloaded file size doesn t match expected Content Length for http://...

Ivy, ant and start scripts

I have a project that uses ant to build and ivy for dependencies. I would like to generate the start scripts for my project, with the classpath, based on the dependencies configured in Ivy, ...

热门标签