首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > Java相关 >

sh转bat

2013-07-01 
求教:sh转bat#! /bin/bashfunction install_file {file$1group_id$2artifact_id$3version$4mvn instal

求教:sh转bat
#! /bin/bash

function install_file {
  file=$1
  group_id=$2
  artifact_id=$3
  version=$4
  
  mvn install:install-file \
      -Dfile=$file \
      -DgroupId=$group_id \
      -DartifactId=$artifact_id \
      -Dversion=$version \
      -Dpackaging=jar \
      -DcreateChecksum=true
}

install_file \
  'lib/ADLParser-2009.jar' \
  'com.bjtxx' \
  'ADLParser' \
  '2009'
  
install_file \
  'lib/apache-commons-id-2009.jar' \
  'com.bjtxx' \
  'apache-commons-id' \
  '2009'

install_file \
  'lib/gwt2swf-0.6.0.jar' \
  'com.bjtxx' \
  'gwt2swf' \
  '0.6.0'

exit


求各位大神帮忙,多谢了,没有分了 请见谅
[解决办法]
http://zhidao.baidu.com/question/59940919.html
http://www.douban.com/note/185257401/

热点排行