-
Notifications
You must be signed in to change notification settings - Fork 1
/
CW-IDE.ps1
21 lines (15 loc) · 894 Bytes
/
CW-IDE.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
$usage = `
'usage: .\CW-IDE.ps1
Open Code Warrior Eclipse IDE for build and debugging of project'
function endWithError { write-host $usage; exit; }
# Support help
#if($args[0] -match '^$|^(-h|/h|/\?|--help)$') {endWithError}
# Limit the allowed number of parameters.
#if($args[0] -match '.') {endWithError}
# Prepare required environment variables and system search path.
.\setEnv.ps1
# The Eclipse based Code Warrior IDE is started with a local, project owned workspace.
# TODO Specify the path to the Code Warrior IDE (i.e. the Eclipse executable) and remove this comment and the next two lines
write-host ("CW-IDE.ps1: You need to configure this script prior to first use: Specify location of Code Warrior IDE")
Write-Host "Press any key to continue ..."; $null = $host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown")
C:\ProgramFiles\NXP\CW-MCU-v10.7\eclipse\cwide.exe -data .\workspaceCW