资源简介
apache-ant-1.6.2
代码片段和文件信息
#!/usr/bin/python
# Copyright 20012003-2004 The Apache Software Foundation
#
# Licensed 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 ‘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 = os.environ[‘CLASSPATH‘]
# Builds the commandline
cmdline = (‘%s %s -classpath %s -Dant.home=%s %s ‘ + \
‘org.apache.tools.ant.launch.Launcher %s -lib %s %s‘) \
% (JAVACMD ANT_OPTS LOCALCLASSPATH ANT_HOME OPTS ANT_ARGS \
CLASSPATH string.join(sys.argv[1:] ‘
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 8628 2004-07-16 09:53 apache-ant-1.6.2\bin\ant
文件 3622 2004-07-16 09:53 apache-ant-1.6.2\bin\ant.bat
文件 2687 2004-07-16 09:53 apache-ant-1.6.2\bin\ant.cmd
文件 3263 2004-07-16 09:53 apache-ant-1.6.2\bin\antenv.cmd
文件 713 2004-07-16 09:53 apache-ant-1.6.2\bin\antRun
文件 1262 2004-07-16 09:53 apache-ant-1.6.2\bin\antRun.bat
文件 2020 2004-07-16 09:53 apache-ant-1.6.2\bin\antRun.pl
文件 3015 2004-07-16 09:53 apache-ant-1.6.2\bin\complete-ant-cmd.pl
文件 4145 2004-07-16 09:53 apache-ant-1.6.2\bin\envset.cmd
文件 927 2004-07-16 09:53 apache-ant-1.6.2\bin\lcp.bat
文件 4238 2004-07-16 09:53 apache-ant-1.6.2\bin\runant.pl
文件 3087 2004-07-16 09:53 apache-ant-1.6.2\bin\runant.py
文件 1649 2004-07-16 09:53 apache-ant-1.6.2\bin\runrc.cmd
文件 20575 2004-07-16 09:54 apache-ant-1.6.2\docs\ant2\actionlist.html
文件 15228 2004-07-16 09:54 apache-ant-1.6.2\docs\ant2\features.html
文件 3028 2004-07-16 09:54 apache-ant-1.6.2\docs\ant2\FunctionalRequirements.html
文件 15611 2004-07-16 09:54 apache-ant-1.6.2\docs\ant2\original-specification.html
文件 24632 2004-07-16 09:54 apache-ant-1.6.2\docs\ant2\requested-features.html
文件 20959 2004-07-16 09:54 apache-ant-1.6.2\docs\ant2\requested-features.txt
文件 8508 2004-07-16 09:54 apache-ant-1.6.2\docs\ant2\VFS.txt
文件 21694 2004-07-16 09:54 apache-ant-1.6.2\docs\antnews.html
文件 49044 2004-07-16 09:54 apache-ant-1.6.2\docs\ant_in_anger.html
文件 18523 2004-07-16 09:54 apache-ant-1.6.2\docs\ant_task_guidelines.html
文件 2515153 2004-07-16 09:54 apache-ant-1.6.2\docs\appendix_e.pdf
文件 6332 2004-07-16 09:54 apache-ant-1.6.2\docs\breadcrumbs.js
文件 32312 2004-07-16 09:54 apache-ant-1.6.2\docs\bylaws.html
文件 21279 2004-07-16 09:54 apache-ant-1.6.2\docs\contributors.html
文件 10606 2004-07-16 09:54 apache-ant-1.6.2\docs\cvs.html
文件 203015 2004-07-16 09:54 apache-ant-1.6.2\docs\external.html
文件 76186 2004-07-16 09:54 apache-ant-1.6.2\docs\faq.html
............此处省略1445个文件信息
相关资源
- ANSYS HFSS Antenna Design Kit 2.15
- Symantec Backup Exec 2012 中文管理指南
- 量化策略开发流程蒙特卡洛方法等五
- A Modern Approach to Quantum Mechanics
- Computer Architecture: A Quantitative approach
- Antenna Theory Balanis Answers
- Antconc 软件
- Constantine Balanis-Introduction to Smart Ante
- a semantic web primer 2nd
- Jenkins+SVN+Ant持续集成环境配置笔记
- mantis入门使用介绍PPT
- Phantom omni 力反馈仪API
- Cisco ACI培训手册_Lab_03_Tenant Applicatio
- HANA 2.0 SP03 Tenant DB
- GEANT4 使用手册
- AntConc-3.43
- 官网完整的Ant,包括Ant-contrib
- 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破解教程以及
- CANTest 通信测试
- instantclient-jdbc-windows.x64-18.3.0.0.0dbru.
- wireless_tools.29+libnl-1.1+wpa_supplicant-2.6
-
Antennas for ba
se Stations in Wireless Comm - LPPL 学习资料
- 瓶颈资源之模拟与改善分析--以LCD生产
- apache-ant-1.9.4
- 如何搭建CI环境,持续构建环境搭建
评论
共有 条评论