English 中文(简体)
能够把XML档案列入XML号大楼档案?
原标题:can one include an XML file in an ant XML build file?
  • 时间:2012-04-18 15:05:42
  •  标签:
  • ant

当我使用马克茨时,我可以包括普通卷宗,在其中,我界定了一些共同的定义,例如分类,等等。

我也想与我的编造文件一样。 我愿在我的树林中的每一根树中创造一根 build子,这样,我就可以建造任何部分的树苗,而不必每次打上顶楼。

这就是我是如何用手提书做的,是很 n的,因为我可以从树中的任何一杯子中打出,并且利用休养的树块,它将在我所在的地方建设以下的树部分。

建造xmls的问题在于,我发现我重复了每座建筑群(如班轮、编造旗和做事者)的相同定义。

如果我可以包括一个Xml文档,那么我就可以把所有共同东西放在共同的xml档案中,根植于树根,并包括每个建筑的xml。 (这是我与马克茨案做的,我把一切放在共同点上)。

我不想用v.变量来界定我用于整个树的物,而更喜欢使用一个文档,一个共同文档。

I am new at using ant, and so I might have overlooked this feature. If someone has an example of how to this also, this will be useful.

che,

最佳回答

Check out the documentation for including XML files and external Ant files: http://ant.apache.org/faq.html#xml-entity-include

包括完整 Ant Building file within the present 页: 1

<?xml version="1.0"?>
<project name="test" default="test" basedir=".">

  <target name="setup">
    ...
  </target>

  <import file="./common.xml"/>

  ...

</project>

页: 1

问题回答

暂无回答




相关问题
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, ...

热门标签