-
大小: 5.25MB文件类型: .gz金币: 1下载: 0 次发布日期: 2023-09-17
- 语言: 其他
- 标签: apache ant 1.9.1 bin.tar.gz
资源简介
apache-ant-1.9.1-bin.tar.gz
代码片段和文件信息
#!/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
- 上一篇:VMD译文.docx
- 下一篇:Xilinx FPGA高级设计及应用
相关资源
- Apache2.2.15
- Foundations Of Semantic Web Technologies
- 关于量子彩色图像加密论文
- Getting Started with Apache OFBiz Manufacturin
- PlantomGo幻影围棋源程序
- plant-simulation基础培训教程(中文)
- apache httpd 权威指南第三版
- mbedtls-2.16.5-apache.tgz
- 赛门铁克SEPM12杀毒软件卸载工具Syma
- geant4 advanced 讲解
- k-means++ the advantages of careful seeding
- Apache pdfbox chm 官方帮助文档
- Apache Hive Essentials-Packt Publishing(2015)
- apache commons-lang API chm版
- Microstrip Antenna Technology
- instantclient-odbc-windows.x64-11.2.0.3.0.zip
- 包库全文查询软件DxAssistantV3.1
- ADC和DAC基础 Walt Kester 和James Bryant,美
- Apache FTPServer的配置与使用&API
- Vue+Ant Design Vue学习经验分享1.doc
- Apache_Spark_Graph_Processing
- org.apache.tools.ant
- apache-hadoop-3.1.0-winutils-master.zip
- Apache Kafka Cookbook(PACKT2015)
- 广成usb can软件ECANtools canusb技术
- InstantMessaging.rar
- wpa_supplicant
- apache-maven-3.3.9.rar
- apache-tomcat-8.0.30.tar.gz
- apache-tomcat-7.0.26.tar.gz
评论
共有 条评论