首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >蚂蚁中的build.xml

蚂蚁中的build.xml
EN

Stack Overflow用户
提问于 2010-06-16 01:06:43
回答 2查看 319关注 0票数 0

有人能告诉我这些标签在build.xml文件中的作用吗?

代码语言:javascript
复制
1)<property file="" location="."/>
2)<property environment=""/>
3)<property name="" value=""/> 
4)<path> id="classpath.base"
5)<pathelement> location="$some.jar"/> 
6)<path> id="classpath.build"> 
7)<path> id="classpath.test">
8)<target></target>

谢谢

EN

回答 2

Stack Overflow用户

发布于 2010-06-16 01:31:10

为了教人如何钓鱼,这里有标签和 and 标签的文档。

票数 1
EN

Stack Overflow用户

发布于 2015-04-17 18:13:27

<property environment=""/>是系统环境变量

<property name="" value=""/>是带有值的定义变量

location属性指定相对于项目基目录(或绝对文件名)的单个文件或目录,而path属性接受以冒号或分号分隔的位置列表。path属性旨在与预定义的路径一起使用-在任何其他情况下,应该首选具有location属性的多个元素。

Targets包含任务元素。buildfile的每个任务元素都可以有一个id属性,以后可以通过提供给

代码语言:javascript
复制
<project name="MyProject" default="dist" basedir=".">
    <description>
        simple example build file
    </description>
  <!-- set global properties for this build -->
  <property name="src" location="src"/>
  <property name="build" location="build"/>
  <property name="dist"  location="dist"/>

  <target name="init">
    <!-- Create the time stamp -->
    <tstamp/>
    <!-- Create the build directory structure used by compile -->
    <mkdir dir="${build}"/>
  </target>

  <target name="compile" depends="init"
        description="compile the source " >
    <!-- Compile the java code from ${src} into ${build} -->
    <javac srcdir="${src}" destdir="${build}"/>
  </target>

  <target name="dist" depends="compile"
        description="generate the distribution" >
    <!-- Create the distribution directory -->
    <mkdir dir="${dist}/lib"/>

    <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
    <jar jarfile="${dist}/lib/MyProject-${DSTAMP}.jar" basedir="${build}"/>
  </target>

  <target name="clean"
        description="clean up" >
    <!-- Delete the ${build} and ${dist} directory trees -->
    <delete dir="${build}"/>
    <delete dir="${dist}"/>
  </target>
</project>
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/3047379

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档