-
大小: 7.53MB文件类型: .rar金币: 1下载: 0 次发布日期: 2023-10-17
- 语言: 其他
- 标签: Ant Ant-contrib Android
资源简介
官网下载完整的Ant,包括Ant-contrib。
代码片段和文件信息
#!/usr/bin/python
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License Version 2.0
# (the “License“); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing software
# distributed under the License is distributed on an “AS IS“ BASIS
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
“““
runant.py
This script is a translation of the runant.pl written by Steve Loughran.
It runs ant with/out arguments it should be quite portable (thanks to
the python os library)
This script has been tested with Python2.0/Win2K
created: 2001-04-11
author: Pierre Dittgen pierre.dittgen@criltelecom.com
Assumptions:
- the “java“ executable/script is on the command path
“““
import os os.path string sys
# Change it to 1 to get extra debug information
debug = 0
#######################################################################
# If ANT_HOME is not set default to script‘s parent directory
if os.environ.has_key(‘ANT_HOME‘):
ANT_HOME = os.environ[‘ANT_HOME‘]
else:
ANT_HOME = os.path.dirname(os.path.dirname(os.path.abspath(sys.argv[0])))
# set ANT_LIB location
ANT_LIB = os.path.join(ANT_HOME ‘lib‘)
# set JAVACMD (check variables JAVACMD and JAVA_HOME)
JAVACMD = None
if not os.environ.has_key(‘JAVACMD‘):
if os.environ.has_key(‘JAVA_HOME‘):
if not os.path.exists(os.environ[‘JAVA_HOME‘]):
print “Warning: JAVA_HOME is not defined correctly.“
else:
JAVACMD = os.path.join(os.environ[‘JAVA_HOME‘] ‘bin‘ ‘java‘)
else:
print “Warning: JAVA_HOME not set.“
else:
JAVACMD = os.environ[‘JAVACMD‘]
if not JAVACMD:
JAVACMD = ‘java‘
launcher_jar = os.path.join(ANT_LIB ‘ant-launcher.jar‘)
if not os.path.exists(launcher_jar):
print ‘Warning: Unable to locate ant-launcher.jar. Expected to find it in %s‘ % \
ANT_LIB
# Build up standard classpath (LOCALCLASSPATH)
LOCALCLASSPATH = launcher_jar
if os.environ.has_key(‘LOCALCLASSPATH‘):
LOCALCLASSPATH += os.pathsep + os.environ[‘LOCALCLASSPATH‘]
ANT_OPTS = ““
if os.environ.has_key(‘ANT_OPTS‘):
ANT_OPTS = os.environ[‘ANT_OPTS‘]
OPTS = ““
if os.environ.has_key(‘JIKESPATH‘):
OPTS = ‘-Djikes.class.path=\“%s\“‘ % os.environ[‘JIKESPATH‘]
ANT_ARGS = ““
if os.environ.has_key(‘ANT_ARGS‘):
ANT_ARGS = os.environ[‘ANT_ARGS‘]
CLASSPATH = ““
if os.environ.has_key(‘CLASSPATH‘):
CLASSPATH = “-lib “ + os.environ[‘CLASSPATH‘]
# Builds the commandline
cmdline = (‘%s %s -classpath %s -D
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 10175 2013-12-23 09:52 Ant\bin\ant
文件 7472 2013-12-23 09:52 Ant\bin\ant.bat
文件 2857 2013-12-23 09:52 Ant\bin\ant.cmd
文件 3410 2013-12-23 09:52 Ant\bin\antenv.cmd
文件 861 2013-12-23 09:52 Ant\bin\antRun
文件 1536 2013-12-23 09:52 Ant\bin\antRun.bat
文件 2199 2013-12-23 09:52 Ant\bin\antRun.pl
文件 3223 2013-12-23 09:52 Ant\bin\complete-ant-cmd.pl
文件 4315 2013-12-23 09:52 Ant\bin\envset.cmd
文件 1116 2013-12-23 09:52 Ant\bin\lcp.bat
文件 4422 2013-12-23 09:52 Ant\bin\runant.pl
文件 3299 2013-12-23 09:52 Ant\bin\runant.py
文件 1817 2013-12-23 09:52 Ant\bin\runrc.cmd
文件 21134 2013-12-23 09:52 Ant\etc\ant-bootstrap.jar
文件 4797 2013-12-23 09:52 Ant\etc\changelog.xsl
文件 11023 2013-12-23 09:52 Ant\etc\checkst
文件 1368 2013-12-23 09:52 Ant\etc\checkst
文件 4779 2013-12-23 09:52 Ant\etc\checkst
文件 18570 2013-12-23 09:52 Ant\etc\coverage-fr
文件 18994 2013-12-23 09:52 Ant\etc\jdepend-fr
文件 11757 2013-12-23 09:52 Ant\etc\jdepend.xsl
文件 29010 2013-12-23 09:52 Ant\etc\junit-fr
文件 36826 2013-12-23 09:52 Ant\etc\junit-fr
文件 19230 2013-12-23 09:52 Ant\etc\junit-nofr
文件 6092 2013-12-23 09:52 Ant\etc\log.xsl
文件 17960 2013-12-23 09:52 Ant\etc\maudit-fr
文件 37833 2013-12-23 09:52 Ant\etc\mmetrics-fr
文件 6215 2013-12-23 09:52 Ant\etc\tagdiff.xsl
文件 11253 2013-12-23 09:52 Ant\fetch.xm
文件 4445 2013-12-23 09:52 Ant\get-m2.xm
............此处省略1659个文件信息
相关资源
- Let Us C - Yashwant Kanetkar
- Optical Coherence and Quantum Optics
- ggplot2.Elegant.Graphics.for.Data.Analysis.2nd
- apache-ant-1.9.13
- Tecnomatix Plant Simulation 8.2破解教程以及
- 仿微信的二维码扫描跟微信一模一样
- LoadingAnim
- 安卓无线点餐源代码
- 大家来找茬手机小游戏开发
- 通过ClipDrawable 实现茶杯注满效果
- 从服务器获取数据,上传数据
- app打开最近任务后台进程
- 安卓连连看
- 仿美团外卖网络获取资源界面优化.
- 通过图片可以测试年龄和性别
- 语音合成和语音听写,科大讯飞,代
- 当下最流行的相机挂件,在人脸的眼
- 仿苹果、小米基于Gridview的带时间的相
- 动态壁纸源码
- 安卓备份文件ab文件解压工具
- CANTest 通信测试
- instantclient-jdbc-windows.x64-18.3.0.0.0dbru.
- 简单的新闻APP简单的新闻APP
- wireless_tools.29+libnl-1.1+wpa_supplicant-2.6
-
Antennas for ba
se Stations in Wireless Comm - LPPL 学习资料
- 安卓音乐播放器源码
- 瓶颈资源之模拟与改善分析--以LCD生产
- MPChart使用教程
- apache-ant-1.9.4
评论
共有 条评论