LoginSignup
0
1

More than 5 years have passed since last update.

オフライン環境でeclipseプラグインをインストールする

Posted at

背景

あとで書く。

環境

$APPSDIR='C:\Users\Public\apps'

内容

インターネットに接続できる環境でeclipseにプラグインのミラーを取得するための引数を渡して実行する。

$cmd = "$APPSDIR\pleiades\eclipse\eclipse.exe"
$applications = @"
org.eclipse.equinox.p2.metadata.repository.mirrorApplication
org.eclipse.equinox.p2.artifact.repository.mirrorApplication
"@ -split "`r*`n"

@"
EclEmma,http://update.eclemma.org/
Spock,http://www.jspresso.org/external/updates-snapshot/e44
Gradle,http://www.nodeclipse.org/updates/gradle-ide-pack/
GlassFish,http://download.oracle.com/otn_software/oepe/mars/
"@ -split "`r*`n" | %{
    $name, $src = $_ -split ","
    $dst = "C:\Users\Public\Downloads\eclipse-plugin\$name"
    md -fo $dst
    $applications | %{
        $param = "-verbose","-application $_","-source $src","-destination $dst"
        start $cmd $param -Work (split-path $cmd) -Wait
    }
}
0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1