什么是artifacts.xml? [英] What is artifacts.xml?

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

问题描述

我一直在对Java项目进行静态分析,通常归结为运行 javac2 @a_list_of_all_the_java_files_in_the_project ,其中 javac2 是我修改的编译器。除了找到正确的库以使所有编译都很困难。

I've been doing static analysis on Java projects, which usually boils down to running javac2 @a_list_of_all_the_java_files_in_the_project, where javac2 is my modified compiler. Except, finding the right libraries to make everything compile is difficult.

我现在正在使用一个项目(顺便说一下,eclipse SDK 3.7.1),它有一个文件 artifacts.xml 在根文件夹中。此文件看起来很有用。到目前为止,我的理解是告诉eclipse打开文件夹作为eclipse项目时使用哪些库。如果是这样,我想在本地下载这些库,并在我的自定义编译命令中引用它们。

I'm working with a project now (incidentally, eclipse SDK 3.7.1) that has a file artifacts.xml in the root folder. This file looks useful. My understanding so far is that it tells eclipse which libraries to use when opening the folder as an eclipse project. If so, I'd like to download these libraries locally and reference them in my custom compilation command.

有人可以解释 artifacts.xml 的目的,还可以提供有关我的方法的反馈?最终我想要的是使用非标准编译器在命令行上编译项目。

Can someone explain the purpose of artifacts.xml, and optionally offer feedback on my approach? Ultimately all I want is to be able to compile the project on the command line using a nonstandard compiler.

前几行或 artifacts.xml

<?xml version='1.0' encoding='UTF-8'?>
<?artifactRepository version='1.1.0'?>
<repository name='Bundle pool' type='org.eclipse.equinox.p2.artifact.repository.simpleRepository' version='1'>
  <properties size='2'>
<property name='p2.system' value='true'/>
<property name='p2.timestamp' value='1315600353875'/>
</properties>
<mappings size='3'>
   <rule filter='(&amp; (classifier=osgi.bundle))' output='${repoUrl}/plugins/${id}_${version}.jar'/>
   <rule filter='(&amp; (classifier=binary))' output='${repoUrl}/binary/${id}_${version}'/>
   <rule filter='(&amp; (classifier=org.eclipse.update.feature))' output='${repoUrl}/features/${id}_${version}.jar'/>
 </mappings>
 <artifacts size='405'>
    <artifact classifier='osgi.bundle' id='org.eclipse.ecf.provider.filetransfer.ssl' version='1.0.0.v20110531-2218'>
    <properties size='1'>
        <property name='download.size' value='8460'/>
    </properties>
  </artifact>


推荐答案

这是Eclipsep2安装的文件系统用于描述可安装工件的存储库。该文件有时被压缩到 artifacts.jar 文件。

This is the file that the Eclipse 'p2' install system uses to describe a repository of installable artifacts. The file is sometimes compressed in to an artifacts.jar file.

Eclipse p2在此描述: http://wiki.eclipse.org/Equinox/p2

Eclipse p2 is described here: http://wiki.eclipse.org/Equinox/p2

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

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