Ivy xml and antTask

前端之家收集整理的这篇文章主要介绍了Ivy xml and antTask前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
XML file,tell which jar file should be retrieved.
 
<ivy-module version="2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

	xsi:noNamespaceSchemaLocation="http://ant.apache.org/ivy/schemas/ivy.xsd">

	<info organisation="xx" module="importHiveData" status="integration"/>



	<dependencies>

		<!-- from shared : public jars -->

		<dependency org="" name="antlr" rev="2.7.7"/>

		<dependency org="" name="commons-beanutils" rev="1.8.0"/>

		<dependency org="" name="commons-codec" rev="1.6"/>

		<dependency org="" name="commons-collections" rev="3.2.1"/>

		<dependency org="" name="commons-io" rev="2.4"/>

		<dependency org="" name="commons-lang" rev="2.6"/>

		<dependency org="" name="commons-logging" rev="1.1.3"/>

		<dependency org="" name="commons-net" rev="3.3"/>

		<dependency org="" name="commons-pool" rev="1.6"/>

		<dependency org="" name="dom4j" rev="1.6.1"/>

		<dependency org="" name="ezmorph" rev="1.0.6"/>

		<dependency org="" name="fluent-hc" rev="4.3"/>

		<dependency org="" name="ftplet-api" rev="1.0.6"/>

		<dependency org="" name="ftpserver-core" rev="1.0.6"/>
		<dependency org="" name="mina-core" rev="2.0.4"/>
		<dependency org="" name="httpclient" rev="4.3"/>

		<dependency org="" name="jsch" rev="0.1.50"/>

		<dependency org="" name="json-lib" rev="2.4-jdk15"/>

		<dependency org="" name="jsoup" rev="1.8.1" />

		<dependency org="" name="junit" rev="3.8.1"/>

		<dependency org="" name="log4j" rev="1.2.17"/>

		<dependency org="" name="poi" rev="3.9-20121203"/>

		<dependency org="" name="poi-excelant" rev="3.9-20121203"/>

		<dependency org="" name="poi-ooxml" rev="3.9-20121203"/>

		<dependency org="" name="poi-scratchpad" rev="3.9-20121203"/>

		<dependency org="" name="selenium-server-standalone" rev="latest.integration"/>

		<dependency org="" name="slf4j-api" rev="1.7.7"/>

		<dependency org="" name="slf4j-log4j12" rev="1.7.7"/>

		<dependency org="" name="sqljdbc4" rev="xxx"/>

		<dependency org="" name="stax-api" rev="1.0.1"/>

		<dependency org="" name="testng" rev="xxx"/>		

		<dependency org="" name="unboundid-ldapsdk" rev="se"/>

		<dependency org="" name="xmlbeans" rev="2.3.0"/>

		<dependency org="" name="xpp3" rev="1.1.4c"/>

		<dependency org="" name="httpcore" rev="4.3"/>
		
		<dependency org="" name="poi-ooxml-schemas" rev="3.9-20121203"/>
		
		<dependency org="" name="xidcheck" rev="1.0.8"/>
		<dependency org="" name="jython" rev="2.72"/>
		
		<dependency org="" name="xidcheck" rev="1.0.8"/>
		<dependency org="" name="jython" rev="2.72"/>

		<dependency org="" name="ldap" rev="2013.08.30.1433"/>
		<dependency org="" name="utilities" rev="2013.08.30.1433"/>
		<dependency org="" name="jaxen" rev="1.1.10"/>	
	</dependencies>

	

</ivy-module>
 
 
ant task like this:
<pre name="code" class="html">
<project xmlns:ivy="antlib:org.apache.ivy.ant" name="TelemetryAuto" default="run_automation" basedir="../">


	<taskdef resource="net/sf/antcontrib/antlib.xml"/> 


	<property name="src" value="${TestName}/src" />


	<property name="dst" value="${TestName}/classes" />


	<property name="lib" value="conf/lib" />


	<property name="log" value="${TestName}/log" />


	<property name="testngReport" value="test-output" />


	


	<!-- Resolve and retrieve libs by IVY -->


	<target name="ivyresolve" description="--> retreive dependencies with ivy">


	<property name="ivy.default.ivy.user.dir" value="${basedir}/ivy"/>


		<ivy:settings id="ivy.mysettings" file="../ivy/ivysettings.xml" />


		<ivy:resolve settingsRef="ivy.mysettings" file="../ivy/ivy.xml" useCacheOnly="false"/>


		<ivy:retrieve pattern="${basedir}/conf/lib/[artifact](-[revision]).[ext]" />


	</target>
原文链接:https://www.f2er.com/xml/296602.html

猜你在找的XML相关文章