#!/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 -Dant.home=%s %s ' + \
'org.apache.tools.ant.launch.Launcher %s %s %s') \
% (JAVACMD, ANT_OPTS, LOCALCLASSPATH, ANT_HOME, OPTS, ANT_ARGS, \
CLASSPATH, string.join(sys.argv[1:], ' '))
if debug:
print '\n%s\n\n' % (cmdline)
sys.stdout.flush()
# Run the biniou!
os.system(cmdline)
没有合适的资源?快使用搜索试试~ 我知道了~
淘宝框架bui后台管理系统模板.rar
共208个文件
html:43个
jar:30个
pom:24个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 145 浏览量
2023-04-28
08:21:08
上传
评论
收藏 5.34MB RAR 举报
温馨提示
淘宝框架bui后台管理系统模板是一款基于bootstrap的流行的前端框架,集成导航,表单及验证,编辑表格,图表,日期等多种插件,可以快速开发一个中小型项目。
资源推荐
资源详情
资源评论
收起资源包目录
淘宝框架bui后台管理系统模板.rar (208个子文件)
ant 10KB
antRun 861B
ant.bat 7KB
antRun.bat 1KB
lcp.bat 1KB
build.bat 31B
envset.cmd 4KB
antenv.cmd 3KB
ant.cmd 3KB
runrc.cmd 2KB
dpl.css 90KB
dpl-min.css 78KB
dpl-min.css 72KB
bui.css 55KB
bui-min.css 51KB
bui-min.css 48KB
main.css 9KB
main-min.css 8KB
prettify.css 832B
page.css 156B
page-min.css 124B
tab-140-120.gif 6KB
table-191-450.gif 5KB
checkbox.gif 3KB
check_icon-100-100.gif 3KB
tree_icon-80-100.gif 3KB
tree.gif 3KB
radio_icon-64-40.gif 3KB
calendar-200-300.gif 3KB
separator-2-340.gif 1KB
load-16-16.gif 673B
left-slib.gif 132B
net.html 16KB
advalid.html 13KB
operation.html 11KB
grid.html 11KB
group.html 11KB
config.html 10KB
dialog-grid.html 9KB
form-dialog-grid.html 9KB
example-dialog.html 8KB
quick.html 8KB
depends.html 8KB
code.html 7KB
form-grid.html 7KB
remote.html 7KB
basicValid.html 7KB
index.html 6KB
area.html 6KB
dyna-menu.html 6KB
edit.html 6KB
example.html 6KB
introduce.html 6KB
loader.html 6KB
column.html 5KB
line.html 5KB
pie.html 5KB
radar.html 5KB
menu.html 5KB
example.html 4KB
code.html 4KB
introduce.html 4KB
example.html 4KB
code.html 4KB
code.html 4KB
second-menu.html 4KB
code.html 3KB
introduce.html 3KB
resource.html 3KB
success.html 2KB
success.html 2KB
fail.html 1KB
test.html 24B
operation.html 0B
tab.html 0B
INSTALL 126B
ant.jar 1.84MB
yuicompressor.jar 831KB
bcel-5.1.jar 504KB
ant-nodeps.jar 400KB
ivy-1.3.1.jar 354KB
commons-httpclient-3.0.1.jar 273KB
ant-contrib-1.0b3.jar 219KB
ant-junit.jar 100KB
ant-commons-net.jar 84KB
ant-jsch.jar 39KB
ant-apache-oro.jar 39KB
commons-logging-1.0.4.jar 37KB
ant-jai.jar 22KB
ant-bootstrap.jar 19KB
ant-testutil.jar 15KB
ant-launcher.jar 12KB
ant-netrexx.jar 10KB
ant-apache-bcel.jar 9KB
ant-jdepend.jar 8KB
ant-javamail.jar 8KB
ant-swing.jar 7KB
ant-junit4.jar 7KB
ant-jmf.jar 7KB
ant-antlr.jar 6KB
共 208 条
- 1
- 2
- 3
资源评论
紫微前端
- 粉丝: 4283
- 资源: 869
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功