forked from aeris170/MARS-Theme-Engine
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCreateMarsJar.ps1
More file actions
14 lines (11 loc) · 752 Bytes
/
CreateMarsJar.ps1
File metadata and controls
14 lines (11 loc) · 752 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Get-ChildItem -Recurse -Include *.class | Remove-Item -Force
Get-ChildItem -Directory -Recurse | ForEach-Object {
$folder = $_.FullName -replace ($pwd -replace "\\", "\\"), "." # get relative paths
# if contains .java files, compile them
if (Get-ChildItem $_.FullName -Include *.java -Recurse) {
Write-Host "Compiling $folder"
& "C:\Program Files\Java\jdk-14.0.2\bin\javac.exe" $folder\*.java
}
}
& "C:\Program Files\Java\jdk-14.0.2\bin\javac.exe" .\*.java
& jar cmf mainclass.txt Mars.jar PseudoOps.txt Config.properties Syscall.properties Settings.properties MARSlicense.txt mainclass.txt MipsXRayOpcode.xml registerDatapath.xml controlDatapath.xml ALUcontrolDatapath.xml Mars.java Mars.class docs help images mars themeengine screenshots