#!/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)
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
本片内容:本篇内容主要开发了相关比较不错主要是关于后台管理系统的一个页面管理框架,大家可以给予系统样式的相关的框架进行开发,自己想要的组建。包含着的组件非常的丰富啊,紫色的主题,如果说有些小伙伴还可以做一下二次开发。 适用人群:主要面向于前端开发爱好者。后端开发爱好者以及即将毕业做毕设的大学生们都可以使用该模板。 创作目标:主要的创作目标就是为了帮助大家能够快速搭建登录页面,登录功能,从而实现登陆的一个前后端的一个实现机制。
资源推荐
资源详情
资源评论
收起资源包目录
前端HTML5页面-后台管理系统-快速开发模板 (209个子文件)
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
.DS_Store 6KB
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
menu.html 5KB
radar.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
共 209 条
- 1
- 2
- 3
资源评论
洛神灬殇
- 粉丝: 1w+
- 资源: 32
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- apk_com.huawei.ar.measure_120000320.apk
- ActivePerl-5.16.2.1602-MSWin32-x86-296513
- 2_附件1:2024春广东开放大学作业及教学平台操作指引.docx
- Mysql数据库考试题
- Cadence-16-6-电阻封装与3D模型
- 2023年12月青少年软件编程Python等级考试五级真题(含答案和解析)
- 全国及31个省级社会消费品(商品)零售总额1981-2023年
- ntpdate centos离线安装三剑客 ntp-4.2.6p5-29.el7.centos.x86-64.rpm
- 免费无需登录api.txt
- 基于Pytorch的数据升维的线性网络模型搭建训练测试显示
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功