日期:2014-05-20  浏览次数:20684 次

求教: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/